Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

how to maintain checked and unchecked results in pagination

Posted on 2006-11-27
13
Medium Priority
?
479 Views
Last Modified: 2012-05-05
i want to implement paging;results will come from DB;IN EVERY PAGE  i should display  10 records;each record has checkbox;in the first page i checked 5 records and in the next page i checked another 5 records and i navigate between first page and second page the checked and unchecked results should be populated.how to proceed this??how to maintain checked and unchecked results.can i anybody provide pseudo code??
0
Comment
Question by:chaitu chaitu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
13 Comments
 
LVL 29

Expert Comment

by:bloodredsun
ID: 18021420
Just store the results in the session and check for them when you output the checkbox.

A better way would be with Ajax but that may be a little advanced for this.
0
 
LVL 10

Expert Comment

by:jaggernat
ID: 18024347
keep the form-bean(which holds the field values including checkbox values) in session . that will maintain state of all your checkboxes though out the session while you switch pages.For table you can use Display table tag.
Nice n Easy.

http://displaytag.sourceforge.net/11/
0
 
LVL 20

Author Comment

by:chaitu chaitu
ID: 18054443
how to maintain checked and unchecked results;;
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 10

Expert Comment

by:jaggernat
ID: 18058197
if form-bean is in session, it will automatically maintain checked and unchecked results
0
 
LVL 20

Author Comment

by:chaitu chaitu
ID: 18066719
I have not this form-bean before;can u  provide some examples how to use this??
0
 
LVL 20

Author Comment

by:chaitu chaitu
ID: 18066725
used this form-bean before;;;
0
 
LVL 20

Author Comment

by:chaitu chaitu
ID: 18066789
we need to implement this kind of paging in so many places, so please tell me how to use form-bean and provide some examples.
0
 
LVL 20

Author Comment

by:chaitu chaitu
ID: 18066847
here main thing we shouild remember is  when  user checks 1 record or 2 , 3 records  first it should remove from the unchecked results and then it should add into checked results and vice-versa.
0
 
LVL 20

Author Comment

by:chaitu chaitu
ID: 18128806
the example u priovide is not much elaborative?

i want this kind of functionality.

http://www.common-controls.com/cc2/listcontrol/sample107/userRightsBrowse.do
0
 
LVL 1

Accepted Solution

by:
DarthMod earned 0 total points
ID: 18221860
PAQd, 500 points refunded.

DarthMod
CS Moderator
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question