Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Table control

Former Member
0 Likes
872

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

1 ACCEPTED SOLUTION
Read only

SureshRa
Active Participant
0 Likes
830

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

7 REPLIES 7
Read only

Former Member
0 Likes
830

Hi Vasan,

Can u please explain ur question iam not understand

Read only

Former Member
0 Likes
830

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.

Read only

Former Member
0 Likes
830

HI

You need to pass this selected Check boxes in PAI To the Interanal table of program in PAI.

Check the Following thread which gives you proper insight.

Cheerz

Ram

Read only

Former Member
0 Likes
830

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

Read only

Former Member
0 Likes
830

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.

Read only

SureshRa
Active Participant
0 Likes
831

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

Read only

SureshRa
Active Participant
0 Likes
830

Hi Keerti,

I see the thread Answered. However I got only 2 points. Do you still have issues?

Cheers

Suresh