Quantcast
Channel: SCN: Message List - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 7775

Re: Access the Category field values from BTCATEGORIES/Categories; Node/attribute: BTCATEGORYFIRST/CAT01

$
0
0

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.


BT_cate.JPG

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


Viewing all articles
Browse latest Browse all 7775

Trending Articles



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