on 07-05-2005 1:30 PM
Hello,
I have a certain Context which contains many Nodes. Part of the nodes contain attributes, part of them contain other nodes and part of them contain attributes as well as other nodes. I would like to iterate the whole context and print it's content. I beleive a recursive methos would be helpfull here. Can someone please help me with that?
Roy
Start with wdContext.getRootNode().getNodeInfo().iterateChildren() and iterateAttributes().
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/javadocs/nw04/sp12... dynpro runtime environment/com/sap/tc/webdynpro/progmodel/api/iwdcontext.html#getrootnode()
As you can see there's even a getRootNodeInfo() which is short for getRootNode().getNodeInfo().
PS. You need to call wdContext.getContext() to get a IWDContext instance.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
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.