on 11-19-2018 9:58 AM
Hi Zayidu,
If you want multi selection in ALV just like that normal table then you can enable that as well like it is shown in the below url.
http://www.onsap.com/questions/139/how-to-have-multiple-selection-in-web-dynpro-alv
Else if you want it to be a check box then there is cell action event, in that event you can check if that check box is selected and you will get the row number.
http://abaperstreet.blogspot.com/2014/07/using-checkbox-in-alv-webdynpro-with.html?m=1
Now here get the table binding node context and set that particular record as selected. You can see in the below url how to set select the item.
https://blogs.sap.com/2013/05/23/multi-select-rows-in-webdynpro-alv-with-out-using-ctrl-key/
Using this combination of multiple blogs you can solve your requirement.. 🙂
BR,
Mahesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When user check any box, event ON_DATA_CHECK should be raised (if_salv_wd_table_settings~set_cell_action_event_enabled) , so if you handle it you could change record color (wdui_table_cell_design)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Raymond,
Thank you so much for your reply.
But still, I couldn't achieve the functionality in the way you said to implement; in fact, the debugger doesn't open/stop at that event handler ON_DATA_CHECK's method when I check an item.
Requesting you to please give the sample code or any other idea.
Thank you..
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.