cancel
Showing results for 
Search instead for 
Did you mean: 

Removing Dynamic attributes from node

Former Member
0 Kudos

Dear Experts,

I have two nodes node1,node2,i created dynamic attributes for both the nodes.node1 attributes are displaying when the user enter into first screen.node2 table come when the user click action button.i want remove the second node attributes after user click the action.

I tried with

wdContext.<node>.getContext().reset();

But above mthod deletes total dynamic attributes.is there any method to remove the partcular node attributes.

It's urgent........

I will provide the points.

Thanks,

Santhosh

Accepted Solutions (1)

Accepted Solutions (1)

lokesh_kamana
Active Contributor
0 Kudos

Hi,

This method is suitable to ur requirement

wdContext.node.invalidate ();

As you are invalidating the node when you are performing an action .so that after each each time you press the action this invalidate method will be called.

The data in the node if it is there it will be invalidated..

Hope it helps you.

any doubts get back to me.

Thanks & regards,

Lokesh.

Answers (5)

Answers (5)

Former Member
0 Kudos

Dear Experts,

Thanks for ur quick replys.I already tried with all the methods.when i give below method wdContext.node<NodeName>().getContext().reset(false);

it removes all dynamic attributes.

*GS

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

can u tell more on above.that method not excist.if u faced same issue.please give reply.

Thanks,

Santhosh

former_member201361
Active Contributor
0 Kudos

hi,

As u have created the Dynamic Context Attributes , using the Reset method will clear the entire Dynamic Node .

I think if u can further eloborate ur requirements u might get the right answer. Have u tried to invalidate the node?

Thanks and Regards

Fazal B

Former Member
0 Kudos

Hi Santhosh,

Try this:

wdContext.node<nodeName()>.removeElement(give your node element which you want to remove);

Thanks n Regards,

Jhansi Miryala

Former Member
0 Kudos

Hi,

Try the follwing code..

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

GS

Former Member
0 Kudos

Hi,

Use this..

wdContext.node<NodeName>().getContext().reset(false);

Regards

LakshmiNarayana

former_member201361
Active Contributor
0 Kudos

hi,

Try using the Invalidate method

wdContext.node<ur Node>.invalidate ();

if u are trying with reset all the dynamic nodes will be Removed .

Thanks and regards

Fazal B