cancel
Showing results for 
Search instead for 
Did you mean: 

How do I dynamically recreate parts of the context structure?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

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.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

If your requirement is to modify/add the attributes inside the node during the rebuild then you can try the following

wdContext.getChildNode().getNodeInfo().addAttribute()

Regards, Anilkumar