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

Re: Passing a value between Embedding view and Embedded view

$
0
0

Hi Yordan

 

( please try with the following code )

 

Create a value node in the component controller of main component which contains a value attribute ACCOUNTID . .

 

Suppose if you get the ACCOUNTID value in any event

first get the value node instance in the event

 

types : begin of ty_account,

           accountid type i,                           "same as value attribute

           end of ty_account.

 

data : lr_value type ref to cl_bsp_wd_value_node,

         lr_struc  type ref to ty_account,

         lr_col    type ref to cl_crm_bol_bo_col,

         ls_account type ty_account.

 

field-symbols : <fs_doc> type any.

 

create object lr_col.

 

create object lr_value

   exporting

     iv_data_ref = lr_struc.

 

ls_account-accountid = <your accountid value>

 

append ls_account to <fs_doc>.

 

  CALL     METHOD lr_value->if_bol_bo_property_access~set_properties

    EXPORTING

          is_attributes = <fs_doc>

 

lr_col->if_bol_bo_col~add( lr_value )

 

( now get the component controller instance and add the value node collection )

 

<comp_instance>->typed_context->collection_wrapper->set_collection( lr_col ).

 

( now in the component controller you have account id value )

 

---> now goto second component and create a value node with Accountid attribute in the component controller and add the node to the interface controller

---> now in the wd_usage_initialize method of main component component controller write the binding code

--->now you can use the account id value in the custom component

 

 

It will work . . .let me know if any issue with this

 

 

Regards

Dinesh Gurram


Viewing all articles
Browse latest Browse all 7775

Trending Articles



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