on 09-03-2007 7:58 AM
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
Hi Hariprasath,
Go through this link. It might help you.
http://help.sap.com/saphelp_nw70/helpdata/en/13/4cde139306304480e89d815ffcf891/frameset.htm
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
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.