cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the row where is pressed enter??

Former Member
0 Kudos

Hi guys

How can I find out the row where user pressed on enter on same field, that have action to fill some other fields automatic.

Now I' ve done this only for the last row with get_element( index = number of rows in the table ), but I need not just for the last one. I'm using standard tables  and the layout is standard.

Please share your ideas with me

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

chengalarayulu
Active Contributor
0 Kudos

Darko,

use  wdevent->get_context_element( name = 'CONTEXT_ELEMENT ) - instead of get_element....

this will work perfect.

Former Member
0 Kudos

Thank you for your answer

It works great

Former Member
0 Kudos

Good Darko !!!

amy_king
Active Contributor
0 Kudos

Hi Darko,

In an action handler method, you can also use explicit importing parameter, CONTEXT_ELEMENT (type IF_WD_CONTEXT_ELEMENT) which is equivalent to

wdevent->get_context_element( name = 'CONTEXT_ELEMENT ) . The system will create this parameter for you if you choose the option "Transfer UI Event Parameters" when creating an action with the wizard, but you can also input it manually into the method signature.

Cheers,
Amy

Answers (0)