cancel
Showing results for 
Search instead for 
Did you mean: 

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?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Its working for me as well, thank you

Answers (3)

Answers (3)

former_member184578
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

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.