‎2010 Aug 13 4:11 PM
Hi experts,
I have question regarding selecting rows in table control. How can I select a row when a button is pressed. I cannot use the selection column in this case. Is there any option to achieve my requirement without using the selection column. Thanks.
regards,
sriram.
‎2010 Aug 13 4:32 PM
Please search in scn or google.
There are lot of materials regarding this.
‎2010 Aug 13 4:32 PM
Please search in scn or google.
There are lot of materials regarding this.
‎2010 Aug 13 4:38 PM
By,
Using the Get cursor syntax you can achive the Selected row in Table control.
DATA : selrow TYPE i,
selindex TYPE i .
* getting the cursor line in Table Control for selected row
GET CURSOR FIELD selfield LINE selrow.
selindex = <tablecontrol>-top_line + selrow - 1.
Prabhu
‎2010 Aug 13 5:22 PM
‎2010 Aug 13 4:50 PM
Probably you can create a last field LINE_SEL in your table control strucutre and assign it in table control properties at Screen Layout.
Then, when your button get pressed, you can move 'X' to the LINE_SEL field of your desire table row.
‎2010 Aug 13 10:13 PM
Hi Sriram.
Please do not ask questions in the forums that can be answered by a simple search. Your question has been asked and answered several times before. Please read our rules of engagement before posting in the SCN forums.
Regards,
Jan Stallkamp