Well the user is not necessarily choosing areas; they are assigning items to delivery drivers. They can assign as many as want, the only condition needs to be that all items picked have the same area ID, then the item record is updated to reflect the driver that has the item, as well as the driver record is updated to reflect what area they have been dispatched to. The List of items to be delivered comes from a table where the query identifies them based on their value in the status column. So basically the list shows all unassigned items, and you pick and choose which items and which drivers. I would like some way to show an error or alert if the server recognizes that of the selected items they need to contain the same Area id. Hope this helps.
John
Main Topics
Browse All Topics





by: tbaumPosted on 2006-01-09 at 13:50:02ID: 15654412
If I am correctly understanding your problem, this may be a solution.
Change your 'area' object from a set of check boxes to a set of radio buttons. That way a user can only select one area at a time. Based on the radio button selected, enable/disable the checkboxes. On form submit, have all disabled checkboxes ensure that they are unchecked.
To help with this, you can either give all of your checkboxes IDs that are based in part on the area (so you can find them later) or you can have each checkbox register its' name in an array based on the area it is assosiated with. You can then use the array to enable/disable the checkboxes.
Near the mark of what you are looking for?