cancel
Showing results for 
Search instead for 
Did you mean: 

Reg:clearing all the fileds on the screen

Former Member
0 Kudos

Hi Experts

I am working with wdabap application where my scenario is when i click on clear button the fields (like table ,form, input fields etc) should be cleared and a blank screen should displayed.

can you please help me how to write the code in clear action using webdynproabap .

Thanks&Regards

Deepika

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

Not sure what you meant by blank screen.

If you want to clear/reset the values of the fileds, then you can invalidate the corresponding context node.

Refer to the following thread:

Hope this helps!

Thanks,

Srilatha

Former Member
0 Kudos

Hi Srilatha

ya i want to clear the data in fields can you please give me the syntax how to write it in wdabap by using invalidate method.

Thanks & Regards

Deepika

Edited by: deepika_indian on Jul 28, 2010 10:22 AM

Former Member
0 Kudos

Hello,

Here is the code snippet:


    DATA lo_nd_node_flight TYPE REF TO if_wd_context_node.

    DATA lo_el_node_flight TYPE REF TO if_wd_context_element.
    DATA ls_node_flight TYPE wd_this->element_node_flight.

*   navigate from <CONTEXT> to <NODE_FLIGHT> via lead selection
    lo_nd_node_flight = wd_context->get_child_node( name = wd_this->wdctx_node_flight ).

    lo_nd_node_flight->invalidate( ).

Regards,

Srilatha

Former Member
0 Kudos

hi Deepika,

IF_WD_CONTEXT_NODE has several methods and one of them is invalidate.

Your code snipet could be like this.

DATA lo_nd_yournode TYPE REF TO if_wd_context_node.

  • navigate from <CONTEXT> to <lo_your_node> via lead selection

lo_nd_yournode = wd_context->get_child_node( name = wd_this->wdctx_yournode ).

  • invalidate the node

lo_nd_yournode->invalidate( ).

PS : replace the yournode with your nodename.