on 03-05-2009 1:54 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.