Hi,
I need to fetch the btadminh->processtype value here and since I cannot use iterator in get_p and have only iv_index.
I tried below code it gives error :
typed_context is unknown. it is neither in any of the data or specified tables.
Can anyone help me out?
METHOD GET_P_
DATA: lr_current TYPE REF TO if_bol_bo_property_access.
DATA: htmlb_event_ex TYPE REF TO IF_HTMLB_DATA.
DATA: lv_index TYPE I.
DATA: lv_column TYPE STRING.
* Get the Current Index
cl_thtmlb_util=>get_event_info(
EXPORTING
iv_event = htmlb_event_ex
IMPORTING
ev_index = lv_index
ev_column = lv_column ).
* Get the Current entity
IF lv_index IS NOT INITIAL.
lr_current ?= me->typed_context->result->collection_wrapper->find( iv_index = lv_index ). -> Here i get the error
* Get the GUID of the Object to be navigated
IF lr_current IS BOUND.
lv_guid = lr_current->get_property_as_string( iv_attr_name = 'GUID' ).
* Get the Process Type of the Object to be navigated
lv_prcstyp = lr_current->get_property_as_string( iv_attr_name = 'PROCESS_TYPE' ).
CASE iv_property.
WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
rv_value = cl_bsp_dlc_view_descriptor=>field_type_picklist.
WHEN OTHERS.
ENDCASE.