‎2009 Dec 28 4:15 AM
Hi,
We have a table control which will display set of records,user can select the records with the help of a check box.
If the no.of records are more,a vertical scroll bar will appear.Suppose if user selects first 3 records and then scrolls down.The selection is removed.
When scrolling up or down it removes the selection done, meaning all the rows which were checked already are unchecked.
Please advice,how to overcome this situation.
Thanks & Regards,
Keerthi
‎2010 Jan 04 1:49 AM
Hi Keerti,
You have mentioned that when user scrolls up or down the selection is removed. Fine. Do you have the same problem when user presses ENTER key? If so, you are missing to update the relevant field (meant for row selection) in the associated internal table. This should be part of your PAI module which is called within the table loop in the screen flow logic.
In case you have this problem only during scrolling and not with any other user action like ENTER and all, then your PAI module is having code to clear the selections. i.e. when user scrolls down, the system will execute the PAI only for visible lines in the table control. So your code may assume that there are no selections and clears the value of that ROW SELECTION field in all the rows of the internal table.
Please check either of the above two cases. Hope this helps.
Cheers
Suresh
‎2009 Dec 28 4:47 AM
‎2009 Dec 28 4:54 AM
Hi Keerthi,
You need to populate a one character field , as marker/checkbox in the PAI of module program.
Populate this field in PAI , just befor handling the scroll functionality of your table control.
Hope you understand it.
‎2009 Dec 28 5:39 AM
‎2009 Dec 28 6:55 AM
Hi,
the dictionary structure which is the type of internal using which you are showing the data on the internal table must have the field withthe same name of SELCTIOn COLUMN name.
then in the PAI modify the internal table with the value of that field..
and then in PBO table control loop...assign that value to the selection column variable..for that particular row..
if you have any concern please revert back.
Hope it helps..
Yadesh
‎2009 Dec 28 11:08 AM
Hi Keerthi,
I think u hav written the code to fill the internal table which u r passing into the table control in the PBO.
So when the PAI occurs as u scroll then PBO also fire and in so in ur internal table the data is again fetch from ur query and the tick is removed from the internal table.
Please check this.. Is it the problem.
‎2010 Jan 04 1:49 AM
Hi Keerti,
You have mentioned that when user scrolls up or down the selection is removed. Fine. Do you have the same problem when user presses ENTER key? If so, you are missing to update the relevant field (meant for row selection) in the associated internal table. This should be part of your PAI module which is called within the table loop in the screen flow logic.
In case you have this problem only during scrolling and not with any other user action like ENTER and all, then your PAI module is having code to clear the selections. i.e. when user scrolls down, the system will execute the PAI only for visible lines in the table control. So your code may assume that there are no selections and clears the value of that ROW SELECTION field in all the rows of the internal table.
Please check either of the above two cases. Hope this helps.
Cheers
Suresh
‎2010 Jan 04 6:12 AM
Hi Keerti,
I see the thread Answered. However I got only 2 points. Do you still have issues?
Cheers
Suresh