cancel
Showing results for 
Search instead for 
Did you mean: 

How to open the pdf document from KM through Link to URL UI element

Former Member
0 Kudos

Hi All,

I have Link to URL UI element in webdynpro java layout - on click of the link we need to open the pdf document from KM respository.

KM Document location : irj/go/km/docs/documents/RHPortal//USA/A/Test/Employee_details.pdf.

Once this is transported to Test and Production portals , we need to retrieve the KM document from the respective portal location through the Link to URL UI element .

Thanks,

Portaluser100

Accepted Solutions (0)

Answers (1)

Answers (1)

lvhengel
Participant
0 Kudos

Hi,

If you set the link to your document in a Context attribute by using a relative path this should work just fine.

Example:

wdContext.currentContextElement().setUrl("/irj/go/km/docs/documents/RHPortal//USA/A/Test/Employee_details.pdf");

Bind that attribute to the reference property of the LinkToURL element.

Cheers,

Leo

Former Member
0 Kudos

Hi,

I tried that is not working. Pls provide another solution.

I have pdf document in km repository and I wanted to open that document through link to url UI element in webdynpro java.

Thanks

Portaluser100

lvhengel
Participant
0 Kudos

Please explain what error you get. Access denied? Or do you have stacktrace with the error?

Helps me to better understand the problem.

Regards,

Leo

Former Member
0 Kudos

Hi All,

please let me know other solution if any

Thanks

portaluser100

Qualiture
Active Contributor
0 Kudos

What's wrong with the solution Leo provided? It should work like a charm