on 08-20-2009 11:48 AM
Hi All,
I had created a node in design time and created value attributes of the node dynamically.The requirement is to remove the value attributes that were created dynamically.Can anyone please help me to solve this requirement.
Thanks in Advance.
Regards,
Jude.
Hi
Please refer the below forums:
https://forums.sdn.sap.com/click.jspa?searchID=30677935&messageID=1573858
Thanks
Susmita
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use this code to reset the attributes.
boolean hasAttr = false;
for (Iterator iter = wdContext.nodeResultSet().getNodeInfo().iterateAttributes(); iter.hasNext();) {
hasAttr= true;
break;
}
if(hasAttr == true)
{
wdContext.nodeResultSet().getContext().reset();
}
Hope it will help
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To delete all the attributes created dynamically
wdcontext.node<urnode>().reset(False).
it will delete all the attrbutes created at runtime.
to delete attrbutes created at designtime use.
wdcontext.node<urnode>().reset(True).
Thanks
Avik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hai Avik,
Me too have a same task.
I have created a table and assigned a value attribute for each columns at run time.
Now, i need to remove the created attributed and need to create a new one at run time on button action .
how can i achive this.
i tried your code sample
wdcontext.node<urnode>().reset(False).
but i shows an error
wdcontext.nodeTableNode().reset(False).
.reset(false) as undefined method.
I am using NWDS7.0.15, can u suggest me some other code ....
Thanks
Krish.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.