on 06-01-2011 8:52 AM
Hello all,
I have a table ui element which is filed by more entries, and after clicking on an entry, i click on a button to set the actuel date in this entry, until now everything is working fine, but after changing the date, the lead selection will be set on the first entry of the table again, and not that one that have been changed.
so how can I keep the lead selction on the same entry after changing it, so that the user knows which row he changed.
thank you all
but after changing the date, the lead selection will be set on the first entry of the table again, and not that one that have been changed.
I wonder how this happens ?. When you select a row and edit , the lead selection is not altered automatically. Are you sure that you are not binding the table once again ?.
Normal circumstances you do not get this behavior. You get this when you have Filter/Sort , Bind new table or remove element from context etc.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
you can do this lead selection by index by method available for conext ie if_wd_context_node->set_lead_selection() .
Use importing parameter for your index
Regards
Kuldeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Have you checked by removing lead selection of node.
Or you can set lead_selection based on index, i mean you are changing some row get taht lead selection andset lead selection index.
Cheers,
Kris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Scafandri ,
LEAD SELECTION IS A PROPERTY OF A NODE. YOU CAN CHECK AND UNCHECK THAT PROPERTY UNDER NODE PROPERTIES.
OR IF YOU WANT TO SET SELECTED ROW AS LEAD SELECTION THEN USE THE BELOW LINK IT WOULD BE HELPFUL
In onclick event of alv table,
first get the index value of selected row using r_param->get_index( ).
Then using this value set lead selection like below
lo_nd_itab->set_lead_selection_by_index ( above index value ).
Then selected row will become the leadselection.
Regards
Srinivas
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
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.