Skip to Content
avatar image
Former Member

Event for Tree

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Nov 03, 2008 at 04:36 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 03, 2008 at 01:27 PM

    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 ?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • avatar image
    Former Member
    Nov 05, 2008 at 04:01 PM

    Solved thx

    Add comment
    10|10000 characters needed characters exceeded