on 05-16-2007 2:35 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If there is some child node of nodeARM and that is used in your view, invalidate that node as well.
Regards,
Ashwani Kr Sharma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.