Paul's profilePaul Galvin's SharePoint...BlogListsSkyDrive Tools Help

Blog


    April 16

    Walk-through: Fix Employee Training Template Available Seats Unregister Bug

    As many people know, the Employee Training template provided by Microsoft here has a bug that we can reproduce following these steps:

    • Create a class with a max size of 10 students.
    • Register --> Total available seats properly decrements by one.  Result: 9 available seats.
    • Unregister: --> Bug.  Total available seats should increment by one.  It does not.  Result: 9 available seats as per SharePoint, but in fact, there are 10 available seats.

    Solution: Use SharePoint Designer to correct the workflow.

    First, open up the site.  The folder list for me looks like this:

    image

    If we have a look at the "Attendee registration" workflow, we see that there is a step labeled "Enforce seating policy".  It looks like this:

    image

    This step in the workflow updates the item by incrementing the "Filled Seats" metadata column on the course.  If we pull that up in more detail, we see this:

    image

    That's all the information we need to fix the unregistration workflow.

    If we flip over to the unregistration workflow, there is no similar workflow step.  Add it as follows:

    1: Expand "Attendee unregistration" and open up the XOML (see first screen shot if you're lost).

    2: Add a new workflow variable, "New Filled Seats" of type "Number".

    3: Assign a value to "New Filled Seats" as shown:

    image

    4: Decrement the Filled Seats by 1:

    image

    5: Update the related Course item:

    image

    6: Make sure all the steps are in the right sequence.  For me, it looks like this:

    image

    7: Finish the workflow to re-build it.

    8: Test.

    </end>

     Subscribe to my blog.

    Technorati Tags: ,

    Comments (2)

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Paul Galvinwrote:
    Brenda, they do display for me. Which browser are you using? Maybe there's a problem with live.com?
    Mar. 18
    http://paulgalvin.spaces.live.com/Blog/cns!1CC1EDB3DAA9B8AA!970.entry the images do not display in this blog post. Any way you can fix that? Or is this post located somewhere else where the images are viewable?
    Mar. 10

    Trackbacks

    The trackback URL for this entry is:
    http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!970.trak
    Weblogs that reference this entry
    • None