Skip to Content
0
Former Member
Mar 05, 2004 at 07:45 PM

File Attach Problem in XML Forms

38 Views

Hi,

I have created a project in the XML Forms Builder on EP6 SP2. In my Edit form, I must allow the user to browse and attach two files, one a PDF document and another a PowerPoint file. I am assuming that these files are stored in the KM repository with a path like "/docuemnts/Images/NewsCentral_T2.pdf". In my Project Options dialog box, I have specified the location of the 'Image Path' field as "/documents/Images". Every time I want some input help with the images in this same Form, I get to choose an image from this folder. By the same technique, I have also managed to attach the files.

In my Show Form, I have put two labels for these two files and I display them as links.

But When I try to view the <i>Show</i> Form in the browser and then try to click this link to open the respective document, I get an error message saying that "...this file cannot be displayed...". This does not happen with the images, and these are properly rendered (I have used an XFImage control for that...).

It seems that there is a problem with the URL that is generated when I click the link. For the images, the link after concatenation of the Image Path and the Image Name is something like "/documents/Images/logo.gif". However, on rendering in the Browser window, this URL gets coverted to "http://ep6:50000/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/Images/logo.gif"...

In case of the file, when I click the link and try to open the document in a new browser window, the URL gets converted to

"http://ep6:50000/documents/Images/NewsCentral_T2.pdf"...this should actually be

"http://ep6:50000/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/Images/NewsCentral_T2.pdf".

I want to achieve this URL regeneration for viewing my files. If anyone has any ideas or suggestions on this, please let me know.

Thanks and Regards,

Sagar.