Hi Guys,
I too get the same problem.
How to access the Category field values from UI Component/view : BTCATEGORIES/Categories; Node/attribute: BTCATEGORYFIRST/CAT01 .
I have tried through relations and i am getting the cat_guid and concatenate_desc values but not the CAT01 values.
I have written the below code for fetching the values.
lr_comp ?= me->comp_controller.
lr_entity1 ?= lr_comp->typed_context->btadminh->collection_wrapper->get_current( ).
if lr_entity1 is bound.
lr_categoryset = lr_entity1->get_related_entity( 'BTHeaderCategorySet' ).
if lr_categoryset is bound.
lr_btcategory = lr_categoryset->get_related_entities( 'BTCategorySchemaAll' ).
if lr_btcategory is bound.
lr_btschemacategory = lr_btcategory->get_related_entity( 'BTCategoryFirst_S' ).
if lr_btschemacategory is not bound.
lr_btschemacategory = lr_btcategory->create_related_entity( 'BTCategoryFirst_S' ).
endif.
endif.
endif.
endif.
- I have checked that, these attributes are value attributes.
- Even i have created a component context node and using that component usage procedure.
Please provide me the solution.
Regards,
Manoj