cancel
Showing results for 
Search instead for 
Did you mean: 

remove previous data from context

Former Member
0 Kudos

Hi Friends,

I am trying to delete the previously added elements in a context,

one way is to access every element in a loop.

is there any other way so that I can clear the contextElement node in one line code?

Thanks

Naveen

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Naveen,

Not exactly the whole context, but node (and any subnodes) clean-up is really a one liner:

wdConext.node<NodeName>().invalidate();

VS

Former Member
0 Kudos

Thanks Valery!

Answers (0)