on 02-18-2009 12:48 PM
Hello SDN!
I have a ValueNode with set of attributes. This ValueNode belong to context root. In my app I add some attributes programmatically. Sometimes I need to remove these added attributes.
I've tried validate() method but nothing happens.
How I can remove these attributes?
P.S. I'm working with nw2004s
Regards, Lev
Please try using this..
wdContext.node"node name"().getNodeInfo().getAttribute("Attribute name").remove();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Lev,
In NW04s you will not be able to use wdContext.getNodeInfo().getAttribute("name").remove(); This is available only on later releases. You should be able to delete dynamically added nodes and attributes using the reset API. [http://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/progmodel/api/IWDContext.html#reset()]
For NW04s it is not possible to delete a particular attribute from a node.
Regards,
Sanyev
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lev,
To delete all the Dynamically added Attributes , use Reset method as shown below
wdContext.getContext.reset();
if u want to remove only a few selected Attributes , then use remove method as shown below.
wdContext.nodeInventor().getNodeInfo().getAttribute("ur Attribute name").remove();
Hope it helps
Thanks and Regards
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.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.