on 11-21-2005 9:11 AM
Hi,
I have created KM Document iview.In that Document i have given a link,but that link is displaying in new window.I want that link to be displayed in same area instead of seperate window,replacing the original document iview.Plz help to sort out this problem.
Thanking you
santosh saraf
Hi Santosh,
what kind of document have you put in there?
Best regards
Detlev
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Santosh,
there are two kinds of a link in the KM HTML editor, one for external links ond one for internal KM links.
Choosing the external link leads to the selection where the link should be open (active or new window). This at least is the case on SPS14.
Choosing the internal link always will render a new window as link target.
You could modify the editors implementation to always render "target=_self" instead of "target=_blank" for internal KM links. But that's not that nice (it would be really nice if the editor would also offer the options for KM links at it does for external links...).
Anyhow, you can use a workaround: Choose external link, choose active window, and as link URL, choose "/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/YourRepository/PathToYourFolder/YourFile.txt".
That works
Hope it helps
Detlev
PS: Please consider rewarding points...
Hi Santosh,
theoretically you could modify the implementation or try to reduce the upgrade to the component concerned - but that is really dangerous, for many side effects and class/method incompatibilities are possible.
For SP9 being really old and buggy, I definitely would advise to upgrade.
Hope it helps
Detlev
Hi Detlev / All,
I am trying to do something similar: I have a Document iView that points to a HTML file. In this HTML, i need to provide a link that will trigger a navigation event. So i did as usual: created the html and put the code:
<a href="#" onClick="return EPCM.doNavigate('NavTarget'); void(0);">Link</a>
However, when i run the iview it gives me a JavaScript Error, saying EPCM is undefined. Why can't I call EPCM from the KM Document iView?
I have tried to put it directly on the HREF portion of the link, like this:
<a href="<my URL>/irj/portal/index.htm?NavigationTarget=NavTarget">Link</a>
And it works, except for one detail: if i point the link to _blank, it opens a new window. If i point to _self or nothing, it opens a new portal inside the iView. But i need another behaviour: I need to swap the source page with the target page and adjust the TLN, just as doNavigate() does. Is there any "easy" way of doing it?
Thanks in Advance!
Thiago
Hi Thiago,
> Why can't I call EPCM from the KM Document iView?
For the document iView is URL isolated and therefore rendered within an iFrame which doesn't know EPCM. If you have the HTML under your control, which seems to be the case, you have first to relax the domain with JS and then you can call the parent.EPCM object.
This is also the reason for the behaviour of the second approach:
> Is there any "easy" way of doing it?
Use target _top.
Hope it helps
Detlev
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.