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

How to navigate to the 2nd view of 1st web dynpro component by clicking the button on the main view of 2nd web dynpro component?

Hi Gurus,

Suppose we have two web dynpro components, WD1 (with window WD1_W) and WD2 (with window WD2_W). WD1 has two views, WD1_V1 (main view) and WD1_V2 (second view, which we can't make the default view). Now, in the main view of WD2 (lets say WD2_V), we have one button and if we click it , we want to go to or call WD1_V2.

I tried to create the another inbound plug for window WD1_W (other than the default plug) and then created a navigation link with the outbound plug of WD2_V (in WD2_W), but it's navigating to the WD1_V1 only (i.e., the default one).

I'd be thankful, if you can help me out to resolve the above scenario.

Best Regards,

Shivam

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 03, 2013 at 09:17 AM

    Hi All,

    Thanks for your valuable replies.The problem is solved now. To do so, I performed few steps, which are as follows :

    Use the WD2 in the component usage of WD1 and vice-versa.

    On Component 1 - 'WD1'

    As per the scenario,we have 2 views, WD1_V1 and WD1_V2

    On WD1_V2, Create an inbound plug - 'IP_P_VIEW2' .

    Below actions are necessary in the window 'WD1_W' of WD1

    1.Create an inbound plug say,'IP_W_COMP1' of type 'standard' and check the

    interface check box.

    2.Create an outbound plug 'OP_W_COMP1' .

    3.In the handler event - HANDLEIP_W_PLUG. Fire the outbound plug.

    (code snippet : Fire_out_OP_W_COMP1_plg ( ).

    4.In the window tab,right click on the 'OP_W_COMP1' plug and create a navigation link to view 2
    of comp1,i.e (OP_W_COMP1->rightclick->create navigation link->select destination view as
    'WD1_V2' and plug 'IP_P_VIEW2'.

    On Component 2 :'WD2'

    We have one view , WD2_V. Create an outbound plug for this view, say OP_V_COMP2

    In the window of component 2 (say, 'WD2_W') following actions are necessary.

    1. Right click on the window name->embed view->select your

    component 1(WD1).

    2. Now after above step, window WD1_W with all the plugs(IP_W_COMP1 and OP_W_COMP1)
    will appear.

    3. Now create the navigation link for OP_V_COMP2 with IP_W_COMP1.

    Best Regards,

    Shivam

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 30, 2013 at 06:54 PM

    Hi Shivam,

    Create another new window WD1 with only WD1_V2 , which is the default view.

    Now while calling from WD2_V call this new window, with respective navigation links as similar what u specified in your post, for this new window .

    Hope ur problem will be solved, u will get the WD1_V2 on pressing button in WD2_V.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 30, 2013 at 07:16 PM

    Hi Shivam,

    You can call the view as below.

    Pass the view to be called inside the window and call the window.

    Refer the screenshot.


    PopUP.png (73.6 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 31, 2013 at 04:40 AM

    Hi,

    In the First Component WD1 of Window WD1_W right click on View 2 WD1_V2 and set it as default.

    If you are using WD1 for some other purposes where V1 should be Default view, Create another Window in WD1 (say WD1_W2) and in that drag and drop V2 and make it as default.

    Then call WD1_W2 from WD2.

    Hope this helps u.,

    Regards,

    Kiran

    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.