cancel
Showing results for 
Search instead for 
Did you mean: 

Customizing code within OVS Reset button

Former Member
0 Kudos

Hi,

I have an OVS help with input fields and Reset button. But, i am not sure on how to write code when Reset button is executed. I was unable to find much in SDN as well. Can someone please let me know, how to get this implemented ?

Thanks in advance,

Gaurav.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi gaurav ,

suppose u have a input fielld binded to context node cn_input and u want to reset the input field,

u may include the following piece of code :



 resetting the input fields  binded to context node cn_input

  DATA :lo_nd_cn_input TYPE REF TO if_wd_context_node ,
        lo_el_cn_input TYPE REF TO if_wd_context_element ,
        ls_cn_input    TYPE wd_this->element_cn_input.

* navigate from <CONTEXT> to <CN_TRY1> via lead selection
  lo_nd_cn_input = wd_context->get_child_node(
  name = wd_this->wdctx_cn_input ).

  lo_el_cn_input = lo_nd_cn_input->create_element( ).
  lo_nd_cn_input->bind_element(
  new_item = lo_el_cn_input set_initial_elements = abap_true ).

I hpe it wud help u

regards,

amit

Former Member
0 Kudos

Hi,

Can someone please point out if my requirement can be achived ?

Thanks,

Gaurav.

Former Member
0 Kudos

Good day!

I've faced the same problem. Did any anyone solve this?

Former Member
0 Kudos

Hi,

give me a brief idea about the fields or structure that you are using and i might be able to help you on that.