cancel
Showing results for 
Search instead for 
Did you mean: 

Event for Tree

Former Member
0 Kudos

Hi,

i have a tree and i want to do something when i clicked links in tree.

how can i do some events when any link in tree was clicked? ( where can i take the fcode or value which links in tree were clicked ).

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

First of all, there are no FCodes in Web Dynpro programming. All the eventing is done via OO. There are actions and event handlers. Check the online help. It lists all the actions available for each UI. For the TreeItem there is an onAction action:

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/8d/088b41b4b3b25fe10000000a1550b0/frameset.htm

When triggered, the event handler code will have access to the ID, the reference to the context element, and the tree path:

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/af/4bae42e5adcd6ae10000000a155106/frameset.htm

Answers (2)

Answers (2)

Former Member
0 Kudos

Solved thx

Former Member
0 Kudos

Hi ,

When do want o event to fired ? When u expand the Node or when u click the Links in the tree nodes or items ?

Former Member
0 Kudos

i want to do something when i clicked the links of sub items in tree like that;

*item1

-sub item1 -


> link

-sub item2 -


> link

*item2

-sub item1 -


> link

-sub item2 -


>link

thanks.