How to retain check box selection while navigating

Hi,

     I have a check box in table widger for selecting the required record of the table ,when navigating to next page the selected record's check box selection is disabled how to retain it while navigating to next page.


Thanks,

R.karthik

Hi 

Are you looking to store that value in the database? If so, you can use the On Change property of the checkbox to execute an action which stores that value in the db against that record.

If you're just looking to persist that value between pages, you can store the selected values in a List variable (via the On Change property as well) and pass that list variable into the second page as an input parameter.

Ossama

Ossama Ghanem wrote:

Hi 

Are you looking to store that value in the database? If so, you can use the On Change property of the checkbox to execute an action which stores that value in the db against that record.

If you're just looking to persist that value between pages, you can store the selected values in a List variable (via the On Change property as well) and pass that list variable into the second page as an input parameter.

Ossama

 Hi Ossama,

                       i need to retain the value while navigating to page up and down 

 

Hi R.kar,

Every time When you do the page change the query executed again and then we do the table refresh to bind the latest data with the table and thus any previous selection doesn’t remain on the table.

In your case you can keep the selected id’s in a separate list and when you change the page check if the record on the page exists on the list or not , if yes set the checkbox to true against that record.

This will anyways going to be a overhead , the other option is to show the selected record in a second table in the same screen somewhere so that you don’t need to iterate on page change every time .


Regards,

-PJ-