Clear context attribute using SET_ATTRIBUTE_NULL method of interface IF_WD_CONTEXT_NODE
The SET_ATTRIBUTE_NULL method clears the value to an individual field of context element.
The abap code below clears out the CARRID field within the context structure CARRIERS.
Data: context_node type ref to if_wd_context_node.
***** Clear webdynpro field
* bind field to required context node
context_node = wd_context->get_child_node( name = 'CARRIERS').
* CARRIERS' is the name of the context node
* Clear field
context_node->SET_ATTRIBUTE_NULL( name = 'CARRID' ).
"Web Dynpro Name of Context Element
|