Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8695

Re: Bind Two Different Context node

$
0
0

Hi Girish,

 

You can bind the context nodes of different components as long as they are the nodes of CUSTOM / COMPONENT Controllers.

 

So to bind follow the below process:

 

Firstly, Bind your View's Context Node to Component Controllers in both the components.

 

Create Component Usage of the any one component into other component.

Redefine the WD_USAGE_INITILIZE Method of the Component Controller where you have created component usage.

 

Put the following Code to bind.

 

case iv_usage->usage_name.

     when 'YOUR USAGE NAME'.

 

       iv_usage->bind_context_node( iv_controller_type  = cl_bsp_wd_controller=>co_type_component

                                    iv_target_node_name = 'BTADMINI'

                                    iv_node_2_bind      = 'BTADMINI' ).

 

PROVIDE YOUR CONTEXT NODE NAMES INSTEAD OF "BTADMINI"

 

     when others.

       super->wd_usage_initialize( iv_usage ).

   endcase.

 

 

Once this is done, both the View's context node will share same data.

 

Regards,

Naresh


Viewing all articles
Browse latest Browse all 8695

Trending Articles



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