cancel
Showing results for 
Search instead for 
Did you mean: 

Clearing the input fields

Former Member
0 Kudos

Hi frnds,

I am working on one webdynpro application . In a view i'm taking inputs from user for so many input fields.

I have designed a clear button to clear all the fields. If that button is pressed then all the fields should be cleared.

Is there any class and method available to achieve this requirement.

Regards,

Ramya R

Accepted Solutions (1)

Accepted Solutions (1)

manish_bisht5
Explorer
0 Kudos

HI Ramya,

Use Invalidate Method to clear the context node to whom your UI fields are bind.

Ex:

DATA lo_nd_test TYPE REF TO if_wd_context_node.

   lo_nd_test = wd_context->get_child_node( name = wd_this->wdctx_test ).

   lo_nd_test->invalidate( ).

Thanks

Manish

Former Member
0 Kudos

Thank you so much manish

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ramya,

I don't this such class or method exists.

You must clear the corresponding values in your context.

Kr,

Christophe