cancel
Showing results for 
Search instead for 
Did you mean: 

How do I dynamically recreate parts of the context structure?

Former Member
0 Kudos
148

have an application in which I need to dynamically rebuild part of the context.

On first entering the application I build the necessary parts by calls to IWDNodeInfo.addChild(), but when I want to rebuild that part of the context there seems that there is no way for me to remove the previous nodes! The only way I have found to do this is to call IWDContext.reset() function which destroys all the non-declarative context data.

Does anyone have another idea for how to achieve this?

Walter

View Entire Topic
Former Member
0 Kudos

Walter,

There is no other way except IWDContext.reset();

As a hint -- try to split dynamic structures between different controllers (context exists per controller). Then you will be able to reset specific parts.

VS

Former Member
0 Kudos

Thank you! Splitting the structures between different custom controllers is an excellent idea.