on 02-07-2005 3:09 PM
Hi Everybody,
does anybody know if it's possible to reload view (simulate things which happen when lifespan is set to when_visible and view is switched off and on again)?
In my case I've got a dynamically created context items and elements in layout. When the view is triggered by an input plug - everything is ok as the view replaces another one (and lifespan is set to "when_visible"). But the content of the view should be recreated also when a portal event is received.
Thank you!
Best regards,
Nick
Does wdContext.reset() + re-creating dynamic context nodes work for you? If no, please provide more details...
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Valery,
there is no method reset in wdContext (I'm on SP7).
What I tried is:
- save boolean property "refreshNeeded"=true into context,
- call action, which reacts on input plug (thus context nodes will be overriden/additionally created - I've not found methods to remove anything from NodeInfo - so old context attributes/subnodes remain)
- add to wdDoModify view check if context "refreshNeeded" is set to true to recreate layout elements and reset "refreshNeeded" back to false.
So far this doesn't work for me - I'm still in debugging to find out how to make it working (seems to be possible).
I just thought there should be an easier way to do things.
Best regards,
Nick
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.