cancel
Showing results for 
Search instead for 
Did you mean: 

Portalnavigation & URL parameters

Former Member
0 Kudos

Hi all,

I have some questions regarding portal navigation and passing parameters in URLs. Hope somebody can provide some help.

<u>Situation (EP6 NW04 SP15):</u>

We have a custom developed (by 3rd party) iView which shows some content from a backend system (non-sap). The content is delivered through the portal server so no direct connection from client to backendsystem.

What we now want to do is create some "deeplinks" to this iView, so that some specific content is showen directly without the need to navigate within the iView.

Currently the iView dynamicly creates links for navigation within the content by generating a static href to:

/irj/servlet/prt/portal/prtpos/pcd!253aportal!255fcontent!252fevery!255fuser

!252fgeneral!252f[...]!255f[...]!255fnew!252fframeworkPages!252fframeworkpage

!255f[...]!252fcom!252esap!252eportal!252einnerpage!7b!3b1!7d.com!252esap

!252eportal!252edetailedNavigationTree!7bHideMode!7d_com!252esap!252eportal

!252edynamicNavigationArea!7bHideMode!7d_com!252esap!252eportal!252etargetsiView

!7bHideMode!7d_com!252esap!252eportal!252etargetsiView!255f!7bHideMode

!7d-/prttarget/com!252e[...]!252e[iView].content/prteventname/content/prteventdata/contentUri

!3d!252fcontent!252f230!252f230!26navigationgroup!3d/prtroot/pcd!3aportal_content!2fevery_user

!2fgeneral!2f[...]!2fframeworkPages!2fframeworkpage_[...]!2fcom.sap.portal.innerpage

([...] is a placeholder for some custom names which I do not want to post here)

This URL seems to be a liitle complicated...

According to information given in SDN and by SAP support a URL like http://myServer:50000/irj/portal?NavigationTarget=ROLES://portal_content/myFolder/myRole&myParameter...

should pass myParameter to the target iView.

However we were not able to achieve the desired behaviour with a URL like this.

For example we tried with:

https://[host]:[port]/irj/portal?NavigationTarget=

navurl://7907b53f1ee20851ae34d6998e78b3af&&contentUri=%252fcontent%252f230%252f230

<u>Q1:</u> Are there any specific attributes for the iView we need to set so that myParameter is passed and received? Is there any special coding needed?

<u>Q2:</u> Is there any sample available with which I can proove that this feature is working and the target iView receives the parameters? I thought about creating a simple app which makes no other output but the received parameters. Is anything like this available allready or can somebody provide some coding (would be great and much appreciated)?

<u>Q3:</u> Any comments on the created URLs?

Thanks and kind regards,

Alexander Sperling

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Have you tried setting the iview to "url isolation mode" and set the iview property "parameters to pass from page request" and tested out. I was able to work in such a manner. These properties can be found by opening up the Iview object in Portal Content.

Regards,

Harish

(Please award points for helpful answers)

Former Member
0 Kudos

Hi Harish,

thanks for your answer. I tried with these parameters but this didn't have any impact on the behaviour...

Kind regards,

Alex

detlev_beutner
Active Contributor
0 Kudos

Hi Alexander,

Q2: Create a portal project; create an AbstractPortalComponent; write into the response whatever you get from the request / ServletRequest.

Hope it helps

Detlev

Former Member
0 Kudos

Hi Detlev,

thanks for your tip.

I was able to create a little app which proves that the parameter in the URL gets submitted to the iView.

Any idea/comments on the other questions?

Kind regards,

Alex

detlev_beutner
Active Contributor
0 Kudos

Hi Alexander,

ääähhhm - with this proven, I do not understand why caring about Q1?! You just saw that it works?!?!

Are you sure that you have used the right property name?

Hope it helps

Detlev

Former Member
0 Kudos

Hi Detlev,

ok - you're right. Q1 is solved, too.

So that would mean that the problem is the coding of the mentioned component. The URL parameters are passed to that component but they are ignored.

I thought maybe you have some comments on the way the links are created. Although I've not much experience in developing portal appliactions it seems that those URLs are more complicated than needed.

Regards,

Alex

detlev_beutner
Active Contributor
0 Kudos

Hi Alexander,

maybe you like ShortURLs or QuickLinks?! See http://help.sap.com/saphelp_nw04/helpdata/en/97/b0ef8b24a64ae884f0ab246e54cae5/frameset.htm and around.

Hope it helps

Detlev

Former Member
0 Kudos

Hi Detlev,

sorry, I don't get the point of your answer. ShortURLs or QuickLinks are a nice way to do things, but I talked about the links that are created within the iView (for navigating through the content).

But afterall this is something that we do not need to discuss here because the coding is not in my hand.

Nevertheless, thanks for your help!

Regards,

Alexander

Former Member
0 Kudos

As Detlev mentioned, verify whether you are using the

correct case and spelling of the parameters you are trying

to pass. As far as my experience goes it pretty straight

forward to pass these parameters, no need to set any thing

on the target iview, at all.

Prasad Nutalapati