cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically removing context attribute

Former Member
0 Kudos

Hi all,

does anybody know a better way of getting rid of dynamically created attributes than using the IWDContext.reset() functionality?

Best regards,

Christian

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

We had the similar requirement .We have mailed to Uwe regarding this.Please find the reply below .

there is currently no way to remove a single attribute in NW04. There is only the possibility to reset the metadata to the state that has been declared in the design time. This can be achieved using IWDContext.reset(boolean), reachable via wdContext.getAPI(). The method removes all attributes and nodes, that have been added at run time ("dynamically"), via one of the add…Attribute or add…Child methods of IWDNode. So, if you have added the root attribute at runtime, this method will remove it, but it removes all other dynamically added attributes and nodes, too.

NW05 will allow to remove single attributes and child nodes, but still only if they have been dynamically added before.

Regards

Anil