cancel
Showing results for 
Search instead for 
Did you mean: 

Tree expansion

former_member211296
Participant
0 Kudos

Hi experts,

I successfully working the tree application. I need to change some modifications in the tree expansion. when I expand the tree, instead of the selected element all the elements are expanded in the folder. But I need to expand only the selected element. I already bound the boolean context attribute in the expanded property.

If using the following coding it behaves something different:

<b>and using the following coding :</b>

private void iterateNode(final IPrivateLocation_View.ITreeNodeNode folderContent, final IPrivateLocation_View.ITreeNodeElement selectedElement)

{

int size = folderContent.size();

for(int i=0;i<size;i++)

{

final IPrivateLocation_View.ITreeNodeElement folderContentElement = (IPrivateLocation_View.ITreeNodeElement)folderContent.getElementAt(i);

if( folderContentElement!= selectedElement)

{

folderContentElement.setIsexpanded(false);

iterateNode( folderContentElement.nodeChild(), selectedElement);

} else

{

folderContentElement.setIsexpanded(true);

}

}

}

<b>onActiontreeselect</b>

wdContext.currentContextElement().setlocation(selectedElement.getlocation());

iterateNode(wdContext.nodeTreeNode(), selectedElement);

when I click the tree elements all the elements all are collapsed. I unable to find any better solution for the above coding. please let me know how to overcome this problem.

Kind Regards,

Hariprasath.R

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Hariprasath,

Go through this link. It might help you.

http://help.sap.com/saphelp_nw70/helpdata/en/13/4cde139306304480e89d815ffcf891/frameset.htm

Regards,

Murtuza