Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 9057

Issue with event handler of Check box

$
0
0

Hi All,

My requirement is to change the value of 'X' to '1'.

 

For a check box field,

I have created a dummy server event in Get_P method. When I checked the field on UI, it unchecked immediately.

Then I created event for that and when I read the lr_entity but it was initial.

 

Please see the details below.

 

method GET_P_NET_VALUE.

   CASE iv_property.
    WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
      rv_value = cl_bsp_dlc_view_descriptor=>FIELD_TYPE_CHECKBOX.

 

      WHEN if_bsp_wd_model_setter_getter=>fp_server_event.
      rv_value = 'EVENTCHECK'.
  ENDCASE.

endmethod.

 

19-Oct-14 11-43-41 PM.png

 

Event hanlder code:

method EH_ONEVENTCHECK.
* Added by wizard: Handler for event 'EVENTCHECK'

 

  data : lv_flag type char1,
         LR_COL type ref to cl_bsp_wd_collection_wrapper,
         lr_entity type REF TO if_bol_bo_property_access.

 

lr_col = me->typed_context->btadmini->collection_wrapper.
  lr_entity ?= lr_col->get_current( ).

 

   if lr_entity is bound.
    lv_flag = lr_entity->get_property_as_string( iv_attr_name = 'NET_VALUE' ).
    endif.

endmethod.


Viewing all articles
Browse latest Browse all 9057

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>