1
votes

I have created a xpage to display a view, and I set the second column as "show values in this column as links". So the second column was shown as a link when I preview in web browser, and when I move the cursor to the link, the IE browser status dispaly (xxx.com/oas/JTJ.nsf/%24%24OpenDominoDocument.xsp?documentId=AABBCCDD12345678&action=openDocument).

enter image description here

But now I don't want to open the document via xpage, I want to open the document with the link like this (xxx.com/oas/JTJ.nsf/0/AABBCCDD12345678?OpenDocument) from the above picture's xpage link.

enter image description here

How could I do?

Thanks for help!

1

1 Answers

3
votes

Add an <xp:link ...> into your <xp:viewColumn> ... </xp:viewColumn> and calculate the URL based on rowData.getColumnValue("yourColumnName") and
rowData.getDocument().getUniversalID() / rowData.getColumnValue("unid") .