on 09-16-2010 9:53 PM
I have UI Table (NOT Alv). The table columns are UI InputField.
I need to capture the table index when User enters data into the table cell which is on InputField Enter event.
Is making the cell row selected the only way to capture the table index?
Or if there another way?
Thanks,
Tatyana
HI,
In the ONevent action handler method you will have WDEVENT has importing parameter.
data : cont_element type ref to if_d_context_element.
data lv_index type I.
cont_element = wd_event->get_context_element( ).
lv_index = cont_element->get_index( )."this will retuen the index
Regards,
MAdhu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was too quick.
Madhu, the answer goes to you. Because you were more specific pointing out on wdevent.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Chris, thanks a lot!
It works now.
Tatyana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
all actions triggered in a table cell report the element that is bound to the table cell editor.
so there is no need to have lead selection set - you can query from the element returned in the action which index of the node it is using the IF_WD_CONTEXT_ELEMENT->GET_INDEX method.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tatyana,
So what is the purpose of capturing the table index? what if use don't press enter but tab to move to next row?
You can do it either by selecting rows from table UI or loop through all elements and check whether the attribute has value in it.
Thanks,
Duy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.