Web Question

Web Question

Old forum URL: forums.lhotka.net/forums/t/6554.aspx


greengumby posted on Wednesday, March 04, 2009

Hi,

I have a case where a user assigns employees to a calandar year clicking new on a gridview.

This creates a new blank record and offers them a DropDownList to pick the employee.

The problem lies that as they build up records the amount of employees they are aloud to pick from decreases. ie Can't pick the same person twice.

One other little hurdle is this is done in a wizard style scenario and all database updates are done at the end of the Wizard.  Hence I am making changes to the objects and storing in Session.

So I thought have a businessbase acting as a Parent Wizard  and then have a EmployeeAssignmentList with EmployeeAssignmentInfo.

Now this is where my question lies :)

At first I thought add another List of AllowedEmployees and then the Wizard could use the OnChildChanged event to keep the AllowedEmployees in sync with what they have inserted. However should they Edit the record again then the DropDownList will not have the SelectedValue of the item being edited.

Next I thought I only really need the AllowedEmployees when editing one record at a time so I thought maybe using a Lazy Loading style scenario and Generate the AllowedEmployees as I need them.

Could anyone offer any suggestions as to handle this problem bearing in mind its a Web Application

Thanks

Jeremy

 

Copyright (c) Marimer LLC