cancel
Showing results for 
Search instead for 
Did you mean: 

event handling in Network UI element in Webdynpro

Former Member
0 Kudos

Hi ,

I am developing a hierarchial graph using Network UI element.I want to incorporate event handling so that the graph will respond to user actions like on double clicking a node an URL will be opened.I can notproceed with the event handling.

Can anyone tell me the procedure to do this from webdynpro java.

Regards

Nayeem

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Nayeem,

The Network UI element has lots of events defined for it which can be handled to get the desired functionality.

Go to the View in which you have added the Network Element, select the Element and go to the

properties tab.

Under events , you can see a list of events defined for this UI element.

Select the event you wish to handle and press the Create button which gets visible once

an event say onNodeSelected is selected

You can then give a name to the action say UserClicked and save it .

In the properties tab of the UI element , the action will be registed against the event .

Now select the event again and press the go button.

It will redirect you to the java editor of the view where in you can place your event handling logic.

Alternatively, if you have created the UI element dynamically then you can add the event to the UI element by using the following code


 IWDNetwork network = (IWDNetwork)view.createElement(IWDNetwork.class);
network.setOnNodeSelected(/*Your Action handler already defined in the View*/);

Regards,

Ashish