Hi Experts,
I have created a New Custom Component Set with the required OBJECT-MODEL Table, Custom GenIL class. I have a root entity and dependent entities. One of the dependent BOL entity ( say zpremise ) needs to be displayed as drop down. So I am setting the collection for the zpremise bol object in the get_objects which is called from the UI when I request the relationship.
I have two views one is premise and other in contract so in the premise view do_prepare_output i am calling the relationship as below
zr_collection ?= zr_root->get_related_entities ('ZpremiseRel)"
I am getting the required collection. Using get_first, get_next method of the cl_crm_bol_entity class I am setting a custom table in the context node class which later I am using in the get_v method of the addr attribute of the premise context node ( base entity Zpremise ) to populate the drop down values.
I have registered for the server round trip in the get_p method of addr. Whenever I select any value from the drop down it always shows me the last value as selected when i request for the current value in the Premise view.
Further I have bound the premise entity to custom controller as I need the addr value of premise entity in other views (contract view ) of the same component.
But I am unable to get the current selected entity.
The below code is written in do_prepare_output of contract view.
zr_curr_entity ?= zr_cuco->typed_context->premise->collection_wrapper->get_current( ).
zr_curr_entity is not bound.
Can you please guide me on how I can get the selected entity from the drop down list.
Thanks & regards,
Mohsin.