on 06-24-2009 11:37 AM
Hi all,
I have a context node and there are some attribute under this node.
How to clear all the attribute under this node?
Do I need to set all the value to space for all the attributes ?
Or we have a 'clear method' that can do this for me?
Thanks and Regards,
Aaron
Hello Aaron,
Use this coading to Clear all attribute of Node.
Data lo_node type ref to If_wd_context_node.
lo_node = wd_context->get_child_node( name = 'Node name ').
lo_node->invalidate( ).
This would clear all attribute value.
Regards,
Varun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aaron,
After using the method INVALIDATE(), may be for clearing the values of the field with default values(not null), you can try using method SET_ATTRIBUTE_NULL by passing index & attribute name.
This sets values of a attribute to NULL for a given row. If your node cordinality is 0:n or 1:n, you might have to do this for all the indexes(elements).
Regards,
Manne.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
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.