cancel
Showing results for 
Search instead for 
Did you mean: 

how to get ui element id

Former Member
0 Kudos

hi,

i want to get the id of link_to_action and using that id i am calling request_focus()

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi praveenkumar ,

If you want to get the ID of the event you click you can get it by :-

data: lo_event_id type string.

*get the id of the table on which the action has been invoked

CALL METHOD wdevent->get_string

EXPORTING

name = 'ID'

receiving

value = lo_event_id.

Put this code under in the action of the event.

Reply in case of iny issue.

Thanks & Regards,

Monishankar C

Answers (1)

Answers (1)

gill367
Active Contributor
0 Kudos

Hi

If you want to get the id of link_to_action UI element then just go to layout and see what is the id.

or if you want to dynamically fetch the id when link_to_Action is fired then use the code written above.

thanks

sarbjeet