cancel
Showing results for 
Search instead for 
Did you mean: 

how to trigger the outbound plug of the interface view to inbound of view?

Former Member
0 Kudos

Hi, Experts,

Action:

1. Create two component: component1 and component2.

2. When click a button( Search_button ) in the component1, the window is navated to the component2.

3. In the view( view_in_component2 ) in the component2, a table is displayed.

The step 1 and step 2, successful.

In the step 3, I write the code in the onPlugDefault( is inbound plug of the interfaceview of the component2 😞

//@@begin javadoc:onPlugDefault(ServerEvent)

/** Declared validating event handler. */

//@@end

public void onPlugDefault(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

{

//@@begin onPlugDefault(ServerEvent)

wdThis.wdFirePlugOutboundInComponent2InterfaceView();

//@@end

}

}

and embed the interfaceview of the component2 and view_in_component2 to the window of the component2( window_component2 ), and connect the OutboundInComponent2InterfaceView to the InboundInViewComponent2.

When I run the application, The system tell me:

Cannot navigate via outbound plug OutboundInComponent2InterfaceView of view component2 because there is no navigational link attached to it.

I found the code: wdThis.wdFirePlugOutboundInComponent2InterfaceView() occured the error, But I don't know how to navigate the interfaceview to the view( view_in_component2 ).

The following is infomation:

com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Cannot navigate via outbound plug OutboundInComponent2InterfaceView of view Component2InterfaceView because there is no navigational link attached to it.

at com.sap.tc.webdynpro.progmodel.view.View.navigate(View.java:541)

at com.sap.tc.webdynpro.progmodel.view.View.navigate(View.java:462)

at besuretech.com.wdp.InternalComponent2InterfaceView.wdFirePlugOutboundInComponent2InterfaceView(InternalZhMainCompInterfaceView.java:162)

at besuretech.com.component2InterfaceView.onPlugDefault(ZhMainCompInterfaceView.java:84)

at besuretech.com.wdp.InternalZhMainCompInterfaceView.wdInvokeEventHandler(InternalZhMainCompInterfaceView.java:105)

at com.sap.tc.webdynpro.progmodel.generation.DelegatingInterfaceView.invokeEventHandler(DelegatingInterfaceView.java:85)

at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.navigate(ClientApplication.java:826)

at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.navigate(ClientComponent.java:881)

at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doNavigation(WindowPhaseModel.java:498)

at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:144)

at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)

at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)

at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:313)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)

at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)

at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)

at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)

at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)

at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)

at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

Do you give me some hint? Thanks a lot!

Best regards,

tao

Edited by: wang tao on Aug 30, 2008 3:56 PM

Edited by: wang tao on Aug 30, 2008 3:58 PM

Edited by: wang tao on Aug 31, 2008 4:51 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

when you are navigating between application you need to define exit plug and with correct parameters. check out following link which will guide you how to navigate between two applications.

[Inter-Application-Navigation in Web Dynpro|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/91b6ad90-0201-0010-efa3-9626d2685b6e]

Regards,

Jawed Ali

P.S.

This navigation scheme will not work if you integrate iviews in portal.

Edited by: Jawed Ali on Sep 1, 2008 10:15 AM

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

in addition to snehal.. bind context for table element properly..

first bind first view's context to controller's cntext then controller's context to second view's context..so that your table context elements value can b displayed on second view as as well...

you can go through this doc for how to navigate from first view to second:

[https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/web-application-server/a-c/creating%20your%20first%20web%20dynpro%20application.pdf]

Regards,

Khushboo

snehal_kendre
Active Contributor
0 Kudos

Hi,

In the diagram view of your window, there is an option

Embed Interface view,

It will ask you to create component instance. If you have already created a one for your used webdynpro component then just select it. else a create a new one,

After that you will be able to see to view in your window, one is your same component view and other one is embeded interface view,

bydefault interface view comes with an default inbound plug,

just create an navigation link between your outbound plug and default inbound plug of interface view,