cancel
Showing results for 
Search instead for 
Did you mean: 

linking Km docs in a xml form

Former Member
0 Kudos
198

Hi,

I'm trying to make a list of links as an xml form. The user can create new links to documents in the km content, and afther we show a list with the links and the option to go to the documents by clicking the title. I find a problem when I use the XFBrowser. This control only takes the direction of an archive refered to the root of km ( directory where /etc and /documents are located).

I put this value in a node of my xml called url.

I make a listshow form and I put a XFLabel whit the title of a link , and in the href property I put the value of the url node. But the problem is that the aplication don't complete the url , it refers to

http://host:50100/documents/examplefile/examplearchive.pdf when the rigth url is

http://host:50100/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/examplefile/examplearc...

I resolve the problem by editing the xsl and modify the function open_url_in_window but I think there is a better way to do this.

Could someone help me ?

Thanks and best regards.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member748019
Participant
0 Kudos

Hi Fernando,

here are some tips for using XMLForms:

(1) It is not recommended to use the forms "ListShow" and "ListEdit" because you are

running into performance problems. You better use the "RenderListItem" form, which

is using the FlexibleUI. These are much faster, if you have much NewsItems in one folder.

(2) If you want to create a link in you ShowForm, you can do the following steps in the XFBuilder:

(a) In the EditForm Create a XFBrowser and a new Schema Variable.

(b) Set XFBrowser to "action=image" and the variable "type=RID"

(c) Connect the Variable with the XFBrowser control

(d) In the ShowForm create a XFLabel and connect it to the variable

(e) In the property of the Label set "href=/DataSchema/ In normal case the url should be completed at runtime to

"/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/ ...." and the Link

should be working now.

I hope I could help you.

Best Regards

--Matthias

JoergWolf
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Fernando,

not exactly a reply to your problem but maybe a workaround re. links to documents:

There is a 'Favorites' iView in KM where each user can maintain her personal favorites (either KM links or URLs) - > would that help in here ?

If the goal is rather a public link list where users can dynamically maintain their links, you could use the 'normal' KM links in an explorer iView and if necessary adapt the look and feel of it with the KM flexible UI (as from EP5.0 SP5/EP6.0).

Hope that helps.

Cheers,

Joerg