cancel
Showing results for 
Search instead for 
Did you mean: 

navigation in tabstrip

Former Member
0 Kudos

Hi all,

I am using a tabstrip inside a view.There are 4 tabs.first 3 tabs are each bound to a view.on second tab there is a simple profile page which captures data about a user say(employee).there is a submit button in the same view.onclick of this button the data should be shown in a table, in the third tab view.i have created a outbound plug in the view of second tab and an inbound plug in the view of third tab view and linked them through navigation link.

But when i click on the submit button ,when the application is up there is a exception thrown.

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

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

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

at com.sap.emp.info.wdp.InternalRegistration.wdFirePlugToViewUsers(InternalRegistration.java:719)

at com.sap.emp.info.Registration.onActionToViewUsers(Registration.java:407)

at com.sap.emp.info.wdp.InternalRegistration.wdInvokeEventHandler(InternalRegistration.java:226)

at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)

at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)

at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleAction(WebDynproMainTask.java:100)

at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:299)

at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:635)

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

at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:249)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)

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

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

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:385)

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

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

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

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

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

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

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

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

at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)

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:94)

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

in tabstrip can i have navigate to other tab view through event handling and firing plug.

one more thing, on click of the fourth tab i want to go back to the login page.there is no view attached to the fourth tab.

i dont know how to ask but i hope i am clear with my problem, if not reply for clarification.

any help will be appreciated.

thanks in adv.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

If u gave the navigation links and all properly there wont be any error so just try to create ur plugs again and link properly and one more thing in the case of the tabstrips ::

U r having ur views within ur tabstrip ViewUIelement and even if u fire the plug the outbound plug will be fired but u cant see that view fired out unless and untill u select the tab of the tabstrip manually,

So if u want to do that u can right an event onSelect for tabstrip and in that u have to write code to display ur result view. and in ur first View u need to call this OnSelect Method of ur Tabstrip.

I dont know if this is possible so just try it out.

Regards,

Sirisha.

Former Member
0 Kudos

Hi,

There is no navigation link between viewRegistration and view users....

And firing the plug wont change the tab strips ?

It will change the view alone..

Regards

Bharathwaj

Former Member
0 Kudos

Hi Shriram,

In Tab Strip, if you have embeded separate views when the Tab Strip loads (Parent component where the Tab Strip UI element is placed and the views are embeded using ViewContainerUIElement) all the embeded views will get loaded. The embeded views, deign time and wdDoModifyView() gets executed once.

If you create an action and attach it to the "TabStrip.onSelect()" then all the embeded view's wdDoModifyView() gets executed.

My suggestion is define a method in the interface controller and pass the data to the inferface controller method. "TabStrip.onSelect()" based on the "tab.id" invoke the method written in the interface controller.

Regards,

Santhosh.C

Former Member
0 Kudos

Hi,

After creating the outboundplug you need to attach a link to that.

Please check weather you have a link for "ToViewUsers" plug or not.

Regards, Anilkumar