cancel
Showing results for 
Search instead for 
Did you mean: 

invalidate() and View.resetview() methods are not working

Former Member
0 Kudos

Hi All,

I have been trying to clear contexts in views, i tried

wdContext.nodeARM.invalidate(); -


>WdDoExit() method and InPlug

if(!firstTime)

{

view.resetView()----


>WdDoModifyView()

}

Both are not clearing my cotexts.

Always my views shows previous context data. Can any one help me on this

Thanks and Regards

Ravi Golla

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

What is the scenario? What kind of invalidation do you want to achieve?

If you want to simply clear off all the data stored in the context then do this.


/* If you want to invalidate all nodes,including dynamically added nodes 
and attributes are along with the metadata.*/
wdContext.getContext().reset();

// To preserve the data in node collections created at design time
wdContext.getContext().reset(false);

<b><i>Do read the warning message given in javadoc for the reset() method.</i></b>

Bala

former_member186016
Active Contributor
0 Kudos

If there is some child node of nodeARM and that is used in your view, invalidate that node as well.

Regards,

Ashwani Kr Sharma