cancel
Showing results for 
Search instead for 
Did you mean: 

Clear the input field of attribute based on changing the value of another.

Former Member
0 Kudos

Dear All,

I have defined two attributes as input fields.If I change the value in first attribute automaticlly second attribute's value should be cleared .Please let me know how can I achieve this.

Thanks,

Reddy.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sudhir,

first of all there is no On change event for input field. So when you entered value in one input field means, you can do

onenter of that input field or you have to create any(butoon or link ) seperately.

In OnEnter of input field this type of code..

DATA lo_el_context TYPE REF TO if_wd_context_element.
  DATA ls_context TYPE wd_this->element_context.
 
* get element via lead selection
  lo_el_context = wd_context->get_element( ).
 
** get single attribute
  lo_el_context->set_attribute_null(
    EXPORTING
      name =  `INPUT2`   // INPUT Sis sec input field.
 ).

cheers,

Kris.

Former Member
0 Kudos

Thanks Solved.It would have been gr8 IF WDA supports onblur,onchage,onfocus eevnts like Java Script.