|
Re: Multiple check box checked at a time....... [message #173337 is a reply to message #173242] |
Sun, 21 May 2006 23:18 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
![](/forum/images/custom_avatars/67467.jpg) |
djmartin
Messages: 10181 Registered: March 2005 Location: Surges Bay TAS Australia
|
Senior Member Account Moderator |
|
|
To action multiple check-boxes you need to 'scan' the rows that have been retrieved.
If the set of rows is short you do the following.
1) Store the current row number and the number of the first row currently displayed. Search the reference manual and this forum for 'top_record' and 'current_record'.
2) Go to the 'first_row'.
3) If the check-box is set, process the row.
4) If this is NOT the last row go to the next row. Repeat step 3 and step 4.
If this IS the last row then reset the screen by going to the stored 'top_record' and then going to the stored 'current_record'.
If the set of rows is very long then each time you set a check-box store the MINIMUM and MAXIMUM row number for a checked record. Then use the logic detailed above but starting at the minimum row and finishing at the maximum row.
David
|
|
|