Skip to Content
author's profile photo Former Member
Former Member

DATA Flow Across Component & Within Component


Hi Experts,

If I need to pass the data within a component between views / cross comonent do i need to use context node binding or I need to pass it through IV_DATA_Collection parameter of out bound plug ? What is better in terms of performance / recmended practice ?

If i use component controller for context node binding rather that custom controller will it affect the performance ? If yes How ?

Regards,

Rohit Tripathi

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on Jan 07, 2014 at 07:34 AM

    Hi Rohit,

    Data Transfer using Binding(Component Controller and Custom controller) is a two way process whereas Data Transfer using iv_data_collection (Inbound /Outbound plugs) is a one way process.

    So you can choose one from these two based on your business requirement.

    Component controllers are basically used to transfer data between two different components and custom controllers are used to transfer data between two views in the same component .

    You can only get the data from custom controllers in other component if the view is under focus in UI otherwise you wil not be able to get the data that's why sap has provided component controllers to pass the data between two different components..

    Thanks,

    Kumar...

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 07, 2014 at 07:57 AM

    Hi Rohit ,

    Mostly all depend upon requirement.

    For controller binding and transfer data with plug i would suggest u to check

    Rajarama U and other members reply in

    .

    And for use component controller for context node binding rather that custom controller will it affect the performance ?

    Both the controller different in their life timespan .so if you talk about diff component data handeling we use
    component controller(having long time span),and with in same component use custom controller.So both have different use in these cases so no comparisson.

    But if we talk about which one to be use from both in same component custom controller is recommended.

    Regards @Harish Kumar

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 07, 2014 at 08:53 AM

    Hi Rohit,

    You can use custom controller to pass data between view in same component.

    Component controller also you can use but mostly it will be useful to bind context node between dofferent components.

    Outbound plug also will be useful in case of navigation between views.

    Regards,

    Deepika.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 07, 2014 at 09:39 AM

    Hi,

    Data flow can be done via custom and component controller in both the ways....

    If you want to share the data within a component then you can use using both custom controller and component controller, but for the sharing the data to other component , you can have only 2 ways

    first is to using a component controller pass the collection to the window controller and expose it outside and second is define a work area component repository in spro for a specific component and define its outbound plugs and navigate using a descriptor object....

    Use a Navigation link to share the data between views using a custom controller and write this code in event handler.

    me->view_manager->navigate(
    source_rep_view = me->rep_view
    outbound_plug = 'NameofOutboundPlug' "Navigaltion Link ID -> runtime repository -> target view
    data_collection = iv_data_collection ).

    if you use workarea component repository then follow this link where i created a custom work area component repositorty http://scn.sap.com/message/14353783#14353783

    Regards,

    Sumeet

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2014 at 10:53 AM

    Thanks a lot , Sumeet, Deepika, Harish and Kumar Gaurav. Very Helpful 😊

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.