on 12-01-2008 5:07 AM
How could we add a leaf node to a recursive tree under the selected node, if selected node is a leaf element then I need to make it as a node and under that the new element should be added.
thanks in advance
Dhanu.
Say you have the following context structure:
Things (node, 0:n)
-- Children (recursive node -> Things)
Then you can do something like
IThingsElement selectedThing = (IThingsElement) wdContext.nodeThings().getTreeSelection();
if (selectedThing != null && selectedThing.nodeChildren().size() == 0)
{
IThingsElement newThing = selectedThing.nodeChildren().createAndAddThingsElement();
}
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please go through the pdf
Creating a Web Dynpro Tree
Regards,
ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.