Welcome to EMC Consulting Blogs Sign in | Join | Help

Paul Galvin's Blog

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: ,
Published 16 April 2008 13:04 by Anonymous

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

Phil said:

Paul: Firstly, congrats on your MVP status!

Great job of outlining the steps needed to fix the unregister bug in this template.

I have a need to modify this template and I'm not quite sure how to do it. Often we have users who show up for a class and take the class at the last minute, bypassing the registration signup. I'd like the ability to add those users into the class after they have been moved to Past Registrations. But the issue of course is that the field CreatedBy is read-only and gets populated when the user signs up for the class initially.

Any suggestions on how to go about doing this? My initial inclination would be to somehow set up and input process for the Past Registrations list that the users could go to, but that presents its own set of problems (ie users marking themselves as attending a class when they really didn't)

Your thoughts?

July 31, 2008 17:25

Leave a Comment

(required) 
(optional)
(required) 
Submit
Powered by Community Server (Personal Edition), by Telligent Systems