cancel
Showing results for 
Search instead for 
Did you mean: 

Question about Expand command in JNET

former_member188498
Active Participant
0 Kudos

Hi,

Is was wondering if it's possible to dynamically add a set of nodes to existing graph in JNET?

For example we have an organizational chart and when a user double clicks on the node,

the node should expand and show only immediate child nodes.

Is something like this possible to achieve?

Regards,

Ladislav

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Technically speaking your requirement is very much posible.

What you have to do is subscribe to the double click event and then create of set of child nodes for the selected on and push the delta (if supported) to the client or the new xml to the client.

Regards

Ayyapparaj

former_member188498
Active Participant
0 Kudos

Hi,

I am trying to implement DoubleClick event for Network UI element but the problem is that the event handler

in Web Dynpro has only one parameter, like this:

public void onActionNodeDblClk(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

so I am unable to access the node which has been doubleclicked.

Shouldn't it have additional parameters, like Node etc?

Regards,

Ladislav

former_member185086
Active Contributor
0 Kudos

Hi Ladislav

(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent)That is default parameter given by framework to us.

We have to define and we can define as much we want of any kind (IWDNode,IWDNodeElement ArrayList etc)

Ok follow

1. Create Action and Click next here put the name of parameter and select Browse --Select Java Native type

---Select Browse --Now write IWDNode

2. In the same way u can define different parameter also

3.Now u need to do the parameter mapping for this select the UI element --right click -- select parameter mapping --This UI have huge set of action so be clear that to whom action u want parameter mapping

for this case I think onNodeAdded is required(It has 4 parameter ).

Hope it will help you.

Best Regards

Satish Kumar

former_member188498
Active Participant
0 Kudos

Thanks,

I forgot about that possibility.

Regards,

Ladislav

Answers (1)

Answers (1)

former_member185086
Active Contributor
0 Kudos

Hi

Take the help for dynamically add a set of nodes form following threads

1.[Creating Hierarchies|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/10744] [original link is broken] [original link is broken] [original link is broken];

It might helpful for you

Best Regards

Satish Kumar