cancel
Showing results for 
Search instead for 
Did you mean: 

how to clear entered values.

Former Member
0 Kudos

Hi all:

how should I clear those entered value on the screen after saving, because after saving , data are kept on the screen.

thank you very much .

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Use Invalidate method to clear the node.

Eg.Data: l_node type ref to if_wd_context_node.
l_node = wd_context->get_child_node( 'NODENAME' ). 

l_node->invalidate().

Thanks,

Radhika.

Answers (1)

Answers (1)

saket_abhyankar
Active Participant
0 Kudos

You can also proceed as follows:



  DATA lo_node TYPE REF TO if_wd_context_node.

  lo_node = wd_context->get_child_node( name = wd_this->wdctx_NODENAME ). " Replace NODENAME with your node name

  lo_node->set_attribute_null( 'ATTRNAME' ). " Replace ATTRNAME with name of attribute to which input field (which is to be cleared) is bound

Regards,

Saket.