Stump the Panel » Site Managers and Site Collection Managers

Employee registration template

(5 posts)
  • Started 2 days ago by eric
  • Latest reply from Dessie Lunsford
  1. 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 http://www.sharepointblogs.com/dez/archive/2007/09/19/employee-training-and-scheduling-template-a-couple-fixes-part-2.aspx as well as what I've blogged about on my blog.

    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.

    <td class="ms-vb">
    <xsl:variable name="CourseID" select="@ID"/>
    a href="../Lists/Registrations/Unregister.aspx?ID={../../../Registrations/Rows/Row[@Course_x0020_ID=$CourseID and contains(@Author, $UserID)]/@ID}"Remove

    </td>

    Anyone see what is funny with this?

    edit: took off the <> on the a href as it was breaking the display.

    Posted 2 days ago #
  2. Eric,
    Seeing as how it's my blog post you're following along with :) let's see if I can help you with the issue.

    Try changing your "remove" xsl code to:


    a href="Lists/Registrations/Unregister.aspx?ID={../../../Registrations/Rows/Row[@Course_x0020_ID=$CourseID and contains(@Author, $UserID)]/@ID}">Remove

    Notice the difference?

    Let me know if this fixes it.

    - Dessie

    Posted 2 days ago #
  3. 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.

    That still renders an ID of 3 when it should return a value of 2, which is the actual ID of the course.

    Posted 1 day ago #
  4. 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.

    All is well.

    Posted 1 day ago #
  5. Glad to hear its working.

    - Dessie

    Posted 1 day ago #

RSS feed for this topic

Reply

You must log in to post.