cancel
Showing results for 
Search instead for 
Did you mean: 

Link in KM Document Iview

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

detlev_beutner
Active Contributor
0 Kudos

Hi Santosh,

what kind of document have you put in there?

Best regards

Detlev

Former Member
0 Kudos

Hi,

I have used HTML(edit Online)document.I want to provide link in between the document,but it should open in same window,instead of other window.Will it be possible?if so,plz help me out.

Thanking you

santosh saraf

detlev_beutner
Active Contributor
0 Kudos

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...

Former Member
0 Kudos

Hi,

I dont find any option for active window in HTML edit online.Is there any possibility that i can configure that option in EP or i can download it from somewhere.As i dont want to use any HTML code,Plz help me to sort out this problem.

Thanking You

Santosh Saraf

detlev_beutner
Active Contributor
0 Kudos

Hi Santosh,

you must be on a SPS < 14. I'm not sure from which KMC SP on the target could be chosen, but at least on SP14 it can. ==> Consider to upgrade your installation.

Hope it helps

Detlev

Former Member
0 Kudos

Hi,

Iam using SPS 09.Without upgrading,is there any possibility to get done.

Thanking you

santosh saraf

detlev_beutner
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

detlev_beutner
Active Contributor
0 Kudos

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