Hello,
I have problem to refresh a collection wrapper. The situation is following:
- User enters a value in the field 1 (Client-ID = 100)
- Depending on this value a corresponding field 2 is populated with a value from collection wrapper (e.g. Corporate Group = „A“)
- User changes a value in the field 1 (e.g. Client-ID is now 200)
- The assigned Corporate Group for the Client 200 is “B”. However the collection wrapper has the old value corresponding to the Client-ID 100. The field keeps the wrong value “A”.
What did I try already:
In DO_PREPARE_OUTPUT of the IMPL-class
me->typed_context->btadminh->collection_wrapper->publish_current( ).
DATA lr_ent type ref to cl_crm_bol_entity.
lr_ent ?= me->typed_context->btadminh->collection_wrapper->get_current( ).
lr_ent->reread( ).
DATA lv_bol_core TYPE REF TO cl_crm_bol_core,
lv_bol_core = cl_crm_bol_core=>get_instance( ).
lv_bol_core->modify( ).
In GET_P Methode of field 1. Attempt to trigger a Roundtrip.
method: get_p
CASE iv_property.
…
WHEN if_bsp_wd_model_setter_getter=>fp_onclick.
rv_value = 'submitonenter'.
ENDCASE.
Unfortunately, nothing helped.
Thanks you guys in advance for your advices.
Best regards
Andrej