on 10-05-2005 8:44 AM
Hi,
How can I delete dynamically created nodes during the execution of the application?
Regards
MK
Hi MK,
Use
wdContext.getContext().reset();
OR
wdContext.getContext().reset(true);
Regards,
Shubham
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi MK,
The above statements, will do the following.
Arbitrarily resets the context to its initial state. All nodes are invalidated, and all dynamically added nodes and attributes are destroyed from the metadata.
They will clear the data in all the Value Nodes created at design time also.
So, if you want to only delete the dynamic nodes and still keep the data in the Static nodes created at design time use:
wdContext.getContext.reset(false);
While using this statements, you don't have to specify the name of the dynamic nodes you want to delete. It will delete all the dynamic nodes.
Regards,
Shubham
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
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.