on 03-24-2008 9:46 AM
Hi,
I have a static Node XXX.I have created 10 dynamic dropdown UI elemets and 10 dynamic attributes for these dynamic dropdown UI elemets.e,i
if(firsttime){
//code
.....
XXXnodeinfo.setAttribute("Att1"om.dictionary.string").//attribte added
//code
.....
}
if(!firsttime)//not first time
{
......
.......
//here i want to remove all the previously created UI dropdowd
theContainre.removeAllChild();//remove from contener
// And againg I will add those dropdowd (as i have to do some position changing in them) so that the Ui lements will be places in the new position.
//But when i add those UI elements again,its showing attributes already available(duplicate attribute)
.....
........
//Please suggest me how to remove the dynamically ceated attributes.from the node...so that i can add those UI elements again.
}.I think every thing is clear.
Please suggest how to remove attributed along with the UI elements.My UI Elements and the attributes are Dynamic.
Regards
-Sandip
just add the following line of code,
wdContext.nodeNode().invalidate();
it will works fine...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Do delete a context attribute use the following code
wdContext.node<YourNodeName>().getNodeInfo().remove()
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can only reset the complete context. See https://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/progmodel/api/IWDContext.html#re...
Armin
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.