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

Re: Getting a list of Context nodes

$
0
0

Hi Maren Ezhno,

 

You will get all context nodes by using m_models and typed_context there are 2 ways..

 

first way..


declare the context node type.. here i am using context_node_asp.

 

and result variable..

that result you need to store in one table type..

 

DATA:

      lr_cn_asp TYPE REF TO cl_bsp_wd_context_node_asp,

      rv_result TYPE string.


FIELD-SYMBOLS: <node> TYPE lbsp_model_item.


LOOP AT me->m_models ASSIGNING <node>.

         lr_cn_asp ?= <node>-instance.

         rv_result = <node>-model_id.

         TRANSLATE rv_result TO UPPER CASE.

     ENDTRY.

   ENDLOOP.


In rv_result you will get context node name...


Second way.

 

declare like this.. if you'r working in same view.

Data : lr_context type ref to cl_bsp_wd_context.

 

lr_context ?= me->typed_context.

 

context.JPG

in lr_context you will get all context nodes which are there context class..

 

you can come to know to see this pic..

nodes.JPG

 

Thanks & Regards,

Srinivask


Viewing all articles
Browse latest Browse all 7775

Trending Articles



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