2007 May 06 10:10 AM
Hi Friends,
I have final data in my table control now the user wants to select only few records from the displayed data, for that I kept a check box for selection, But my question is I am unable to read the selected data.
Actually user requirement is he has to update only the selected data from the displayed data in the table control.
Can any one tell me how to read the selected records after displaying in the table control.
Thanx in advance,
Line
Hi Friends,
I have final data in my table control now the user wants to select only few records from the displayed data, for that I kept a check box for selection, But my question is I am unable to read the selected data.
Actually user requirement is he has to update only the selected data from the displayed data in the table control.
Can any one tell me how to read the selected records after displaying in the table control.
Thanx in advance,
Line
2007 May 06 11:27 AM
Hi
If your table control has a check box, your internal table should have a field for it. Its value will be X if the checkbox is setted else it'll be SPACE.
So in the PAI u should read only the records where that flag is X:
LOOP AT ITAB WHERE MARK = 'X'.
ENDLOOP.
Max
2007 May 06 11:43 AM
Thanx for your reply,
I have the field in the internal table also, I will check and let u know if any issues.
Line
2007 May 06 11:47 AM
Hi Max,
I have a field check box in the internal table, but the field is empty when the data is populating in the table control. My requirement is after dispalying the data user wants only few records to be updated. Actually the user is selecting the check box after the data is displayed in the table control.
Pls suggest me what to do.
Line
2007 May 06 12:06 PM
Hi Max,
User Selected data need to store in different database table.
Regards,
Line
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |