Skip to Content

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

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

    Add comment
    10|10000 characters needed characters exceeded