on 09-29-2005 9:01 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.