cancel
Showing results for 
Search instead for 
Did you mean: 

Navigating between views of different components

Former Member
0 Kudos

Hello everyone!

I know how to create a navigation link from one view in a WD component to another view in the same component. Is there way I can create a navigation link from one component to the other component in a WD project?

I have one view in a component which has a button. On clicking this button, I want a second view in a second component to start. In addition, there is a value that I want to pass to this second view in a second component. As far as I know there is no way of creating an inbound plug for the second view in the second component mapped to an outbound plug of the first view in the first component. I have added the component usages, thats no problem. But I want the other view from the other component to fire when a button in the first component is clicked. A value has also to be passed between the two of course.

Thanks,

Sameer

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

See this thread

Kind Regards

Mukesh

Former Member
0 Kudos

Hi Mukesh,

Thanks for the links, they did help me quite a bit. However, I am getting a WDRuntimeException - Cannot navigate from view KselectComponentInterfaceView because it is not part of the current view assembly.

I have embedded the interface view of the view in the first component and I can access methods and such. But when I fire the plug to go to the next view, I get the error above.

This is my code where the exception pops up -

public void onActionConfigure(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String componentToMap )

{

//@@begin onActionConfigure(ServerEvent)

wdThis.wdGetKselectComponentInterfaceViewController().wdFirePlugToConfigureViewExitPlug(componentToMap);

//@@end

}

The plug is defined in the Interface view naturally, not in the view where the above code is.

Thanks,

Sameer

Former Member
0 Kudos

Hi

See this Samples and help

<a href="https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/751d003a-0b01-0010-8996-afbaa3fd5339">How to Navigate Inside Web Dynpro Component Interface Views</a>

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a137c339-0b01-0010-a688-a87...

Kind Regards

Mukesh