cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable the NavigationTarget on portal url?

Former Member
0 Kudos

Hello,

I would like to include the NavigationTarget in the portal url whenever the user browses from one role to another in order to allow him to save the current location in his browser's favorites (not the portal ones). How can I enable that?

Roy

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Roy,

To enable Navigation Target by URL, simply change the navigationMethod to byURL in the Top level Navigatipn PAR file.

Download the PAR & open the header.jsp file.

Search for

<nav:navNodeAnchor />.

By default it will be like

<nav:navNodeAnchor navigationMethod="byEPCM" />

Replace this with

<nav:navNodeAnchor navigationMethod="byURL" />

Save & redeploy.

You can find the navigation target for every click within the Portal TLN after this.

In your framework modify the title bar property & enable Add to Browser Favorites.

Also change this property for the pages / I views which you want to add to your browser favorites.

Regards,

Santhosh

Former Member
0 Kudos

Hi Santhosh,

I've downloaded the PAR com.sap.portal.navigation.toplevel and examined it.

It's got two jsp files: toplevelnavigation.jsp and toplevelnavigationJS.jsp and two script files: toplevelnavigation.js and toplevelnavigation.js.org but neither of them contains this tag that you've mentioned.

I don't even see that the "nav" tag library is being used there.

To be honest, I'm not sure that you'll find it in the default framework page as it uses EPCM throughout it's implementation so it's not just a matter of tag change.

Am I missing anything?

Rgds,

Roy

Edited by: Roy Cohen on Aug 4, 2008 4:18 PM

Former Member
0 Kudos

Hi Roy

In any Portal place you can find menu Options (it's near with History, Back and Forward menus in the top right corner) Inside Options you can find menu Add to Portal favorites.

Regards

Dmitriy

Former Member
0 Kudos

Hi Dimitry,

Like I said, the customer's requirement is to use the IE add to favorites facility and not the portals and for that to happen I need to find a way to enable the NavigationTarget in the URL when using the standard framework page.

Roy

former_member193577
Active Contributor
0 Kudos

Hi Roy,

This can be done when using External Facing Portal - there all content of portal is in one frame, and portal gets refreshed with each click.

When navigating using the light framework page you will see that the address bar changes on each navigation (clicking on TLN/DTN).

You can see the following blog for some info:

Regards,

Tal.

Former Member
0 Kudos

Thanks for that Tal but that requires using of the light framework page which has got limitation we cannot afford (for example: Object Based Navigation and Relative navigation). It is also problematic when using the ESS/MSS business package.

I was thinking to enhance the Default Framework Page, perhaps with a hook method that on every click will concatenate the current NavigationTarget to the url...

Rgds,

Roy

Former Member
0 Kudos

Hi Roy,

I Agree with you.

Light Frame work Page will not support the Webdynpro Iviews.

I struggled lot with Light Framework page.

Thanks

Srikanth

Former Member
0 Kudos

So any idea how to enable NavigationTarget on the default framework?

Former Member
0 Kudos

Roy,

Is it acceptable for you to implement some custom component (iView) with the Add To Favourites button ?

If yes, then you can use EPCM javascript API to get current URL (EPCM.getSAPTop().gHistoryFrameworkObj.GetActiveTrackingEntryValue().getUrl() ).

Regards,

Andrei

Former Member
0 Kudos

Hi Andrei,

The user's requirement is to be able to save it from the browser's "add to favorites" not the portals. That's why I think the NavigationTarget should be there at all times, the same way it's there for the lightweight framework.

Rgds,

Roy