cancel
Showing results for 
Search instead for 
Did you mean: 

How to get iview name from short url

former_member254395
Active Participant
0 Kudos

Hi Experts,

I am using portal 7.0 with classic framework page. In my current project, I am having a scenario like,

1. I need to get the iview properties like (Title and description ) from short url like ("navurl://ad0debc598858e6f2e5ddd3f42d8d9de")

Please help me on this. How to get the view deatils from the above short url.

Thanks

Rabin D

View Entire Topic
Former Member
0 Kudos

Rabin, go to: portal/irj > system administration > system configuration > runtime settings > short URL's. There you will find complete paths to the short url's you need. After that check the PCD objects you needed using the complete PCD id's.


Rabin Dhas wrote:

1. I need to get the iview properties like (Title and description ) from short url like ("navurl://ad0debc598858e6f2e5ddd3f42d8d9de")

Beware, the exact answer to this question is: you cant, since properties informations are not included in short or long URL's

cheers

former_member254395
Active Participant
0 Kudos

Thanks Lawrence Waterhouse for your quick response.

So you mean,

1. I can use the navigation api to get the complete PCD path for the short url

2. Then use the PCD API to get the iview properties by custom program 

Please correct me if I am wrong here.  Also can u help em to get the api library for portal 7.0

Former Member
0 Kudos

1. I can use the navigation api to get the complete PCD path for the short url

in fact those informations are stored in DB table NAV_HASHEDURLS, you can make a direct JNDI lookup


2. Then use the PCD API to get the iview properties by custom program

this is right


Also can u help em to get the api library for portal 7.0

your BASIS can help you on that: collect all libraries directly on the OS level of your EP

cheers

former_member254395
Active Participant
0 Kudos

Thanks for the quick response. I will try and update the details in the thread as well.

former_member254395
Active Participant
0 Kudos

Hi Lawrence Waterhouse,

for the point no 1, is there any api available to process instead of DB table.

Since  from client side, they are not ready to provide the std sap DB table  access.

Former Member
0 Kudos

There is no need to provide anything, JNDI DB access works without any administrative steps. But you can go with the navigation API if you want to:

cheers

former_member254395
Active Participant
0 Kudos

Hi Lawrence Waterhouse,

I tried the below code,

Hashtable environment = new Hashtable();

environment.put(INavigationConstants.ENV_PRINCIPAL, request.getUser());

INavigationService srv = (INavigationService) PortalRuntime.getRuntimeResources().getService(INavigationService.KEY);

String originalName  = srv.getNavigationNodeOriginalName(environment, "3edc1dae2601289f78ed02a86e82c7b8"); // for testing i hard-coded a hash

When I preview the iview, I am getting bellow error. I added the "com.sap.portal.navigation.api_service_api" jar for the application.

java.lang.ClassCastException: Cannot cast class com.sapportals.portal.navigation.cache.CachedNavigationService to interface com.sapportals.portal.navigation.INavigationService (found matching interface com.sapportals.portal.navigation.INavigationService loaded by sap.com/com.sap.portal.navigation.api_service@com.sap.engine.boot.loader.ResourceMultiParentClassLoader@6b5ff643@alive, but needed loader sap.com/BW_Portal_IView@com.sap.engine.boot.loader.ResourceMultiParentClassLoader@e9765a2@alive)

at comcast.portal.ga.iViewRequestHandler.doContent(iViewRequestHandler.java:72)

at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:213)

at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:129)

at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher$5.service(RequestDispatcherFactory.java:308)

at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:292)

at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher.service(RequestDispatcherFactory.java:298)

at com.sap.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:229)

at com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:107)

at com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:141)

at com.sap.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:206)

at com.sap.portal.prt.pom.PortalNode.service(PortalNode.java:590)

at com.sap.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:233)

at com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:107)

at com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:141)

at com.sap.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:520)

at com.sapportals.portal.prt.connection.ServletConnection._handleRequest(ServletConnection.java:224)

at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:101)

at com.sap.portal.prt.dispatcher.DispatcherServlet.service(DispatcherServlet.java:132)

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

at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:202)

at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:103)

at com.sap.portal.http.EnrichNavRequestFilter.doFilter(EnrichNavRequestFilter.java:49)

at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)

at com.sap.portal.prt.dispatcher.CustomHeaderFilter.doFilter(CustomHeaderFilter.java:58)

at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)

at com.sap.portal.http.EnrichNavRequestFilter.doFilter(EnrichNavRequestFilter.java:49)

at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)

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

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

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

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

at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:81)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:278)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)

at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)

at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)

at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.httpserver.filters.SessionSizeFilter.process(SessionSizeFilter.java:26)

at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:57)

at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:43)

at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:468)

at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:262)

at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)

at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)

at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)

at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)


Please help me with this.


I got the jar file from server location itself.


My portal version 7.4 sp13