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

Re: Adding attachment block from the standard | collection is not filled

$
0
0

Hi Deepika,

 

I have added it like this in the WD_USAGE_INITIALIZATION:

 

CASE iv_usage->usage_name.

   WHEN 'CUATTACHCRM' OR 'CUATTACHCRM_DET'.

       CALL METHOD iv_usage->bind_context_node

         EXPORTING

           iv_controller_type  = cl_bsp_wd_controller=>co_type_custom

           iv_name             = 'ZCOMPONENT/ContentManagementCuCo' "#EC NOTEXT

           iv_target_node_name = 'CMBO'                      "#EC NOTEXT

           iv_node_2_bind      = 'CMBUSOBJ'.                 "#EC NOTEXT

 

       CALL METHOD iv_usage->bind_context_node

         EXPORTING

           iv_controller_type  = cl_bsp_wd_controller=>co_type_custom

           iv_name             = 'ZCOMPONENT/ContentManagementCuCo' "#EC NOTEXT

           iv_target_node_name = 'ERPADMINH'                 "#EC NOTEXT

           iv_node_2_bind      = 'PARENTNODE'.               "#EC NOTEXT

*

      lr_cuco ?= me->get_custom_controller( controller_id = 'ZCOMPONENT/ContentManagementCuco'  ).

      ls_attr-next_run_reread = abap_true.

       GET REFERENCE OF ls_attr INTO lr_attr.

       CREATE OBJECT lr_value_node

         EXPORTING

       iv_data_ref = lr_attr.

       lr_value_node->if_bol_bo_property_access~set_properties( ls_attr ).

       lr_cuco->typed_context->attributes->collection_wrapper->clear( ).

       lr_cuco->typed_context->attributes->collection_wrapper->add( lr_value_node ).

 

 

       CALL METHOD iv_usage->bind_context_node

         EXPORTING

           iv_controller_type  = cl_bsp_wd_controller=>co_type_custom

           iv_name             = 'ZCOMPONENT/ContentManagementCuCo' "#EC NOTEXT

           iv_target_node_name = 'ATTRIBUTES'

           iv_node_2_bind      = 'ATTRIBUTES'.

 

   ENDCASE.



Doesn't work at the moment :/


Viewing all articles
Browse latest Browse all 7775

Latest Images

Trending Articles



Latest Images

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