cancel
Showing results for 
Search instead for 
Did you mean: 

How to delete(remove) dynamically created attributes from a node

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

just add the following line of code,

wdContext.nodeNode().invalidate();

it will works fine...

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Do delete a context attribute use the following code

wdContext.node<YourNodeName>().getNodeInfo().remove()

Regards

Ayyapparaj

Former Member
0 Kudos

Hi Ayyapparaj,

Fulmarks given to you.Thanks for the answer.

Regards

-Sandip

Former Member