cancel
Showing results for 
Search instead for 
Did you mean: 

Opening of IView in New Window

Former Member
0 Kudos

Hi All,

I have iView which is common to two different roles. In both roles I have to open in the same window but since a link cannot be provided with two different PCD locations. I want that iView to be displayed in a new window.

So on click of link how we can open an iView new window?

My other question is how do we workaround the problem i'm facing as i want that open the same link for two different roles. if i assign the iView to different role and call it then I'm affecting my Detailed navigation view. which i don't want to get effected.

Please consider it urgent

Regards

Srikant

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Srikant,

In one of the iview property u can specify that open in new window.

What i would suggest for ur porblem is that use EPCM.doNavigate as the href when u click on the link...

Syntax

<A HREF="myLink" onclick="return EPCM.doNavigate('target')">

This is HTML Link</A>

The navigation target specifies the location of an iView or a page in the current user role. The target can be obtained from the portal catalog as a value that is concatenated by folder id s, roles or other objects.

The navigation target has to be prefixed with the corresponding navigation connector name that is used for retrieving the navigation structure. When accessing iViews and pages in the role from the Portal Content Directory (PCD), you have to add the prefix ROLES:// to the URL.

Example:

We have created a custom role (MyRole) and assigned an iView (MyIView) to it:

portal_content (root folder)>>MyRole (folder)>>MyRole (role)>>MyTest (folder)>> MyIView (iView)

The corresponding navigation target is:

ROLES://portal_content/MyRole/MyRole/MyTest/MyIView

Also u can try this link for more details

http://help.sap.com/saphelp_nw04/helpdata/en/18/3fb84033a8b533e10000000a155106/frameset.htm

Regards

gEorgE

Former Member
0 Kudos

Hi George,

I have already done what you suggested, What my requirement is I need to open an iView on click of link in new window. Any suggestions for this requirement??

Thanks in advance

Srikant

Former Member
0 Kudos

Hi

Try out with the window.open() function.

Regards

Rajeev

Former Member
0 Kudos

Hi,

Try this one

<A HREF=”myLink” onclick=”javascript:window.open(‘target_URL’)”>

If ur going for window.open(), then i suggest u to see the link it will be highly use full

http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/open_0.asp

Regards

gEorgE

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos

Hi,

The EPCM.doNavigate('target') takes several arguments, one of which let's you specify to open in new window.

EPCM.doNavigate('target',2)

0 (or missing): Same window

1: New window without navigation

2: New window (with navigation)

The API is defined as:

EPCM.doNavigate(String target, [int mode, String winFeat, String winName, int history, String targetTitle, String context])

Hope this helps.

Daniel

Answers (0)