on 10-18-2009 3:54 PM
Hi!
I have an editable UI table, which contains a Dropdown colum. The dropdown can have 3 values (A/B/C), and it's onselect event is ONSELECT_DROPDOWN.
The table has f.e 10 rows.
I would like to know in the ONSELECT_DROPDOWN event the index of the table row, where the user modified the value of the dropdown. How can I know it?
Thank you
Tamá
Hi,
you can use the following code in the action handler....to get the index...
DATA: l_count TYPE i.
l_count = context_element->get_index( ).
thanks...
AS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is working fine, thanx
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
{
It gives a dump, because I think it gives back the index of the lead selection.
DATA: l_count TYPE i.
l_count = context_element->get_index( ).
However, changing the value of a dropdown does not require to set the lead selection...
}
for your dropdown when you created the event handler...I guess you did not ceck the "check box = Transfer UI Event Parameters"
when you select this check box....WDA framework will automatically gives you "Context_Element" as an importing parameter...
In this case you will not get any dump....otherwise you need to declare a ref variable which can give you the context_element...which you already got the solution for. The dump you were getting is because you are trying to get to the context element without having any access to it....
Thanks...
AS..
Hi,
In that action handler, you will have a parameter context elemnet , it will have the value.
Regards,
Lekha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
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.