Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Navigation from child component to parent

I tried the said solution in this thread Regarding navigation from Interface View and I got the following exception.

com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Cannot navigate from view <EmbededComponentInterfaceView> because it is not part of the current view assembly
 at com.sap.tc.webdynpro.progmodel.view.View.navigate(View.java:538)
    at com.sap.tc.webdynpro.progmodel.view.View.navigate(View.java:462)
    at siemens.com.sm3k.shiftmgt.wnd.wdp.InternalShtEvtEvaWndInterfaceView.wdFirePlugGotoShtEvtDetail(InternalShtEvtEvaWndInterfaceView.java:144)
    at siemens.com.sm3k.shiftmgt.view.ShtEvtEvaView.onActionshowShtEvtDetail(ShtEvtEvaView.java:253)
    at siemens.com.sm3k.shiftmgt.view.wdp.InternalShtEvtEvaView.wdInvokeEventHandler(InternalShtEvtEvaView.java:391)

This happens when i fire the outbound plug using the following code.

wdThis.wdget<view nameWindowInterfaceView>().wdFirePlugOut();

_________________________________________________________________

Solution was as under:

Hi

Go to Interface view of your 2nd component and create an OutPlug there. you can see a default inbound plug there due to which you are able to navigate to 2nd view.

After creating out plug build your component to make the changes take affect.

Now create a button on click of which you will navigate to 1st view.

But you will not get this plug in you view controller of 2nd component as default. to get it, put interface view controller as required controllers under Properties tab of your 2nd view.

Now onAction of button put this code

wdThis.wdget<view nameWindowInterfaceView>().wdFirePlugOut();

Now build and deploy 2nd component.

You can get out plug in second view in navigation modeler of 1st component.

create an inbound plug in 1st view and make a navigation link.

you will be able to navigate back

Mandeep Virk

Former Member
Not what you were looking for? View more on this topic or Ask a question