Skip to Content
avatar image
Former Member

Screen navigation between two components

Hi,

I have created 2 web dynpro component 1 and component 2.

Component 1 has 1 view for ex: ABC and Component 2 has 2 views(XYZ1 and XYZ2, XYZ1 being the main view.)

We have a requirement where we need to navigate from Component A iview ABC to component B Iview XYZ2.

But after doing the component usage though I am able to navigate from Component 1 to Component 2 but it opens the main view which is XYZ1.

Is it possible can I directly move to view XYZ2 of component 2 from view ABC of component1.

Regards

Shakti

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Oct 04, 2011 at 09:34 AM

    In component 2, make xyz2 view as default view.

    procedure:

    double click on window, now on right hand side expand window then right click on xyz2 and select set as default.

    Regards

    Srinivas

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 04, 2011 at 03:41 PM

    Hi,

    Thats the Default View Setting.Check in the Component 2 which view is set as Default .? thinks that is XYZ1.. make XYZ2 as Defalut View in Component 2..

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 05, 2011 at 09:49 AM

    Hi,

    >

    > I have created 2 web dynpro component 1 and component 2.

    > Component 1 has 1 view for ex: ABC and Component 2 has 2 views(XYZ1 and XYZ2, XYZ1 being the main view.)

    >

    > We have a requirement where we need to navigate from Component A iview ABC to component B Iview XYZ2.

    >

    > But after doing the component usage though I am able to navigate from Component 1 to Component 2 but it opens the main view which is XYZ1.

    >

    > Is it possible can I directly move to view XYZ2 of component 2 from view ABC of component1.

    >

    >

    > Regards

    > Shakti

    I can think of 2 possible solutions.

    1. Create 2 windows in comp-2 - Window1 has XYZ1 as default and window2 has XYZ2 as default. Navigate to the appropriate interface view according to your requirement.

    2. You can introduce a Channel view , in this view you create 2 plugs ( to_view1, view 2), use this view as default view.

    create a plug parameter to identify which view (say iv_view type string ).

    create a event in component controller with parameter iv_view, create a method to fire this event and make it public.

    fire this event by calling this method from window inbound plug.

    You should subscribe this event in channel view by creating event handler method .

    Fire outbound plugs according to the event parameter iv_view.

    Add comment
    10|10000 characters needed characters exceeded