Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Managing field state across pages

Status
Not open for further replies.

RamHardikar

Programmer
Feb 16, 2001
109
0
0
GB
Form Design:

-We have huge amounts of data which is displayed page wise and the number of pages can go beyond 1000 pages. Each page contains a maximum of 30 records with 8 columns.
- First column contains the row identifier and rest of the columns have checkboxes.The form also contains buttons (Prev and Next) to navigate across pages. Also a Text box where the user can enter the page number to reach the required page directly.

Functionality:
- The user has an option to query the database based on a criteria, the Search Results of the query are shown to the user on a form containing Row Identifier and the check boxes with appropriate state(Checked/Unchecked).
-When a user gets the form he can check some/all of the check boxes and can save the form back into the database. A click on the header of a column will check all the respective checkboxes in that column across all the pages.
-When the user navigates between pages the previously checked/unchecked state of the check box should be reflected on the form.



Problem:
What could be an approach to handle the state of the checkboxes across pages?


 
attaching these values(i mean checkbox values) in the Prev and Next Navigation links...

please show your code so that someone here can suggest you a solution...

Thanks

-SecondToNone
 
Client side cookies would be one solution to what you want. When checkboxes are clicked, the cookie contains the values of all selected checkboxes.

Lee
 
Because the user could skip from page 1 to page 533 are you hoping to keep the state of all of the checkboxes from every possible page or only the one that were visited?
 
Also make sure to save a key value in that data because just saving its page and record position will not be enough if a record is added or removed then the whole thing will be thrown off if there is any ORDER BY going on.
 
I need to keep track of only those checkboxes that were checked or unchecked across every page. worst case could be tracking all the checkboxes across maximum available pages if the user clicks on the link header.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top