Skip to Content

input field on_enter event get trigger even though the field is set as read only

Jun 28, 2017 at 06:45 AM


avatar image
Former Member

Hi All,

I have an input field on my screen and I have assigned an on_enter event for it. In one of my scenario this input field is set to read_only (dynamically, not through binding property with context attribute) but still on enter that event gets triggered. how to control this.

Thanks in Advance,


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
avatar image
Former Member Jun 28, 2017 at 07:37 AM

Hii All,

Got my answer...

DATA: l_view_controller TYPE REF TO if_wd_view_controller,
lo_view TYPE REF TO if_wd_view,
lo_input TYPE REF TO cl_wd_input_field,
lv_read_only TYPE wdy_boolean.

l_view_controller = wd_this->wd_get_api( ).

lo_view ?= l_view_controller.
lo_input ?= lo_view->get_element( id ).
CALL METHOD lo_input->get_read_only
value = lv_read_only.

10 |10000 characters needed characters left characters exceeded