Stump the Panel Topic: Employee registration template http://www.endusersharepoint.com/STP/ Paul Grenier, Lead Moderator en Mon, 20 Apr 2009 04:29:27 +0000 Dessie Lunsford on "Employee registration template" http://www.endusersharepoint.com/STP/topic/employee-registration-template#post-5886 Wed, 15 Apr 2009 11:03:42 +0000 Dessie Lunsford 5886@http://www.endusersharepoint.com/STP/ <p>Glad to hear its working.</p> <p>- Dessie </p> eric on "Employee registration template" http://www.endusersharepoint.com/STP/topic/employee-registration-template#post-5885 Wed, 15 Apr 2009 10:59:29 +0000 eric 5885@http://www.endusersharepoint.com/STP/ <p>Ah nevermind, I see whats going on. The code I had above did work as it should after adding the ../ before lists. I thought the ID it was passing was the Course ID and User ID but in actuality, it is passing the actual default ID column value to the unregistration list.</p> <p>All is well. </p> eric on "Employee registration template" http://www.endusersharepoint.com/STP/topic/employee-registration-template#post-5877 Wed, 15 Apr 2009 08:02:58 +0000 eric 5877@http://www.endusersharepoint.com/STP/ <p>I had to add the ../ in front of Lists to remedy a 404 error. I moved all those displays to a separate web part page. </p> <p>That still renders an ID of 3 when it should return a value of 2, which is the actual ID of the course. </p> Dessie Lunsford on "Employee registration template" http://www.endusersharepoint.com/STP/topic/employee-registration-template#post-5872 Tue, 14 Apr 2009 18:28:08 +0000 Dessie Lunsford 5872@http://www.endusersharepoint.com/STP/ <p>Eric,<br /> Seeing as how it's my blog post you're following along with :) let's see if I can help you with the issue.</p> <p>Try changing your "remove" xsl code to:</p> <p><code><br /> a href="Lists/Registrations/Unregister.aspx?ID={../../../Registrations/Rows/Row[@Course_x0020_ID=$CourseID and contains(@Author, $UserID)]/@ID}"&gt;Remove<br /> </code></p> <p>Notice the difference?</p> <p>Let me know if this fixes it.</p> <p>- Dessie </p> eric on "Employee registration template" http://www.endusersharepoint.com/STP/topic/employee-registration-template#post-5868 Tue, 14 Apr 2009 15:50:18 +0000 eric 5868@http://www.endusersharepoint.com/STP/ <p>I swear these templates are going to be the death of me. I've created a site collection based on the the employee training template, made all the modifications in the series <a href="http://www.sharepointblogs.com/dez/archive/2007/09/19/employee-training-and-scheduling-template-a-couple-fixes-part-2.aspx" rel="nofollow">http://www.sharepointblogs.com/dez/archive/2007/09/19/employee-training-and-scheduling-template-a-couple-fixes-part-2.aspx</a> as well as what I've blogged about on my blog.</p> <p>One change We made to this was move all the my courses onto a new page as not to clutter the main page. In the linked page above it describes how to fix the XSLT so it creates the proper parameter value for unregistration. I've redone the a href so it points to the correct list now but it still isn't calculating the correct query string parameter to the registration list.</p> <p>&lt;td class="ms-vb"&gt;<br /> &lt;xsl:variable name="CourseID" select="@ID"/&gt;<br /> a href="../Lists/Registrations/Unregister.aspx?ID={../../../Registrations/Rows/Row[@Course_x0020_ID=$CourseID and contains(@Author, $UserID)]/@ID}"Remove</p> <p>&lt;/td&gt;</p> <p>Anyone see what is funny with this?</p> <p>edit: took off the &lt;&gt; on the a href as it was breaking the display. </p>