songohan
Posts: 89
|
| Posted: 09/23/2004, 3:07 AM |
|
Good day all!
Well I have one question. I have tu make registartion form with name, surename, address and stuff and also person must choose one of five workgroups to join. Now, wokgroups will be in list box.
What I do not know how to do, is how to limit number of users per workroup, there can max 20 people in one workgroup.
How to make it so that when one fills the form and clicks Submit, if workgroup is full gets note "please select another workgroup".
Many thanks
Andrej
|
 |
 |
Zulu
Posts: 33
|
| Posted: 09/23/2004, 7:41 AM |
|
count the number of people per workgroup from the db when the user selects the wokgroup and press add button. If the number is less than 20 allow the user submit the registration otherwise show an error msg to the error row that the workgroup is full. Write it on the validation code of the workgroup listbox.
There is another way of solving this:
Fill the listbox with workgroups that are not full yet (has less than 20) before showing (event) the form. However, it will be a trouble if there are more than 1 concurrent user trying to access the same workgroup.
I hope u are using CCS form for the registration.
|
 |
 |
|