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

How to call a component?


i have two web dynpro components comp1 & comp2.

In comp1, i have one button 'submit'. when i click 'submit' button, it should navigate to comp2.

Moreover i need to pass two parameters to the comp2.

How to do? It will be helpful if anyone can assist.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on May 30, 2007 at 10:46 AM

    Hi Mog,

    you need to define a component usage of comp2. then within the main window of ur comp1 embed the view of comp2 to which you want to navigate.

    create an outbound plug from view1 of comp1, this plug can have parameters that you need to pass.

    view2 of comp2 also needs to have an inbound plug, in the signature of its handler method define the parameters you are passing from comp1.

    under your window once view2 of comp2 is embeded create a navigation link between the two connecting views.

    in the action handler for submit button in view1 just fire the outbound plug with appropriate parameters.



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member


      I could understand partially, not fully.

      where should i define component usage?

      View or Window or Component of Comp1

      How should i bind view of comp2 into window of comp1?

      What code should i write within Onclick event of button?

      To connect from comp1 -->comp2

      Message was edited by:


  • author's profile photo Former Member
    Former Member
    Posted on May 30, 2007 at 04:06 PM


    there are several ways of combining components.

    One way might be to create a component MAIN_COMP which contains a view that provides a <b>ViewContainer-UI-Element</b>.

    In the Window-Editor the relevant Interface Views of COMP1 and COMP2 can be added to the View of MAIN?COMP.

    Passing data from COMP1 to COMP2 can be done

    a) with plugs that do have parameters

    b) by methods in the component controller that get/set data and also fire an event to which the view has subscribed

    c) there is also context-mapping

    I mostelz use b) but it depends on the scenario.

    Kind regards,


    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.