Skip to Content
0
Former Member
Dec 01, 2005 at 04:14 PM

Open iview in Central Area: EPCM.doNavigate

44 Views

Hi All,

The homepage of our portal contains a lot of iviews. One of these iviews is a km document iview, displaying an html document created in km. This km document should contain links towards portal iViews. When the user click onto a link, the approriate iview should open in the central area (NOT in a seperate window).

After same reading I concluded that the ideal way was via the EPCM.doNavigate() command. So I started a testcase.

The iview I wanted to open is located at pcd:portal_content/be.jorvbcm.developments/be.jorvbcm.iViews.iViews/Prikbord/be.jorvbcm.PrikbordBrowserAll

The html page looks like:

-


<HTML>

<HEAD>

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">

<!-- EPCF: BOB Core -->

<META http-equiv="Content-Script-Type" content="text/javascript">

<SCRIPT src="/irj/portalapps/com.sap.portal.epcf.loader/script/standard/js13_epcf.js?6.0723"></SCRIPT>

</HEAD>

<BODY>

<SPAN class=urFontStd>

<SPAN class=urTxtStd>

<P>

<SPAN class=urFontStd>

<SPAN class=urTxtStd>When clicking this URL a new iView should be loaded in the central area... .

</SPAN>

</SPAN>

</P>

<A HREF="#"

onclick="return EPCM.doNavigate('ROLES://portal_content/be.jorvbcm.developments/be.jorvbcm.iViews.iViews/Prikbord/be.jorvbcm.PrikbordBrowserAll')">

This is an HTML Link

</A>

</SPAN>

</SPAN>

</BODY>

</HTML>

-


However, when I click the link a javascript pops up telling me that I can not access the requested source.

Also, when I fill in anything different from "#" into HREF (for example "myLink"), I get the following exception:

[EXCEPTION]

#1#com.sapportals.portal.prt.runtime.PortalRuntimeException: iView not found: myLink.default

Anyone an idea what I am doing wrong en how I can solve it?

We are currently working on Portal6.0 SP14.

Kind regards

Joris