Skip to Content

Multiple views in used component in ABAP Web Dynpro

Hello,

we intend to write a reusable web dynpro component, but we face some problems with it:

the component has several views, and depending how it is called different views should be accessed. We already are that far that we know that probably we have to fire different outbound plugs, but we don't find the correct location in the component to include them. Are there some exemples on how to do this?

There is also the possibility to instantiate a component. Does this mean that an application can be called without instantiating all components immediately?

Thanks for any advise.

Regards.

Kris

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 12, 2012 at 01:35 PM

    One idea is to create a window with an inbound plug that has a parameter (or a set of parameters). Then, in the inbound plug of the window you can write code to fire different outbound plugs. Then, link each outbound plug to a different view.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Kris Claes

      How do you invoke it the second time? My preference is to control your plugs in the window not the view. A trick you can do is to make the "Empty View" the default view of the window. Then, you control your outbound plugs in the Window's default inbound plug.

  • author's profile photo Former Member
    Former Member
    Posted on Dec 12, 2012 at 12:29 PM

    before calling component which view needs to be called is decided?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 12, 2012 at 01:12 PM

    Hi Kris,

    Check out demo component WDR_TEST_CMPUSAGE in your system. There are others as well if you do a search for components named *usage*.

    Cheers,

    Amy

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 12, 2012 at 02:54 PM

    1. Define the component in the the component use tab in component.

    2. Goto view controller define in properties tab in used controller.

    3. Use the View container UI element in Layout tab and Contextual panel UI element under View switch UI element display selected view in application.

    4. Embed the used Component Views in View container.

    5. Based on View switch UI element create Navigation links in Window tab Window controller.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      If u need to use other component nodes and methods.

      1. node property in component controller check interface node

      2.if method component controller methods tab check interface method

      then U can use the method used in different controller in code wizard get the method.

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.