cancel
Showing results for 
Search instead for 
Did you mean: 

set id for dynamicly programmed link_to_action elements

Former Member
0 Kudos

Hello.

I create dynamicly a lot of link_to_action elements in an table.

if i click on an element, it call the onaction-action where i get my event.

now i can get the id of the link_to_url, but can i set the id for each link_to_action?

thanks

marcus

-


Edited by: Marcus Ventur on Jan 14, 2009 2:52 PM

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You don't need to set different id. Instead look at the importing parameters of the linkToAction event. It has an importing parameter of context_element:

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/3a/ebee412e5e6324e10000000a1550b0/frameset.htm

This gives you a direct reference to the context element (row) that the linkToAction originated from.

Former Member
0 Kudos

thanks, that works.

now i have the element.

but i don't know in which column the user has clicked....

have you an idea?

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Is this a table or an ALV? In a table you would define different linkToActions for each column. You can give them completely different onAction Event Handlers.

Former Member
0 Kudos

THANKS!!!

Answers (0)