Skip to Content
0

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

Jun 28, 2017 at 06:45 AM

20

avatar image

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,

P$G

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

1 Answer

Best Answer
Prathamesh Gandhi Jun 28, 2017 at 07:37 AM
0

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
RECEIVING
value = lv_read_only.

Share
10 |10000 characters needed characters left characters exceeded