I have an application with 2 database. NSF1 contains only the design (Xpages, script library etc) and NSF2 contains everything including the data. User only have access to NSF1 and any document in NSF2 will be displayed through NSF1 XPages.
In the email for document approval sent to the reviewer, I'm including 2 links. One for the normal http (web browser) link and one is the notes link. The script fr this is in NSF1.
I don't have problem with the http link. It's something like the following and it works:
But I'm stuck in constructing the notes link. In my previous application where everything (design & data) in one NSF, I can just use doc.getNotesURL() and I'll get a link like the following:
notes://nsfserver/nsf.nsf/0/UNIDOFTHEDOCUMENT0123456789?OpenDocument
If I use the above method, then the document will open using the XPage in NSF2 which is not what I want. I've tried the example here and did mine like
notes://nsf1server/nsf1.nsf/xpage.xsp?OpenXPage&documentId=UNIDOFTHEDOCUMENTINNSF2
but it doesn't seem logical to me because the server and database of NSF2 is not specified in the link and I don't know where to put those 2 parameters or if they're even allowed in the link. Clicking on the link will only result in empty XPage because ti doesn't know the UNID. So anyone had any idea?
action
parameter, because otherwise the data source uses the action specified in the design, which by default iscreateDocument
. This would causedocumentId
to be ignored, since new documents are always assigned a new ID. Specifying an action (e.g.openDocument
oreditDocument
forces the data source to also look atdocumentId
(and, if provided,databaseName
) to determine which document is being accessed. – Tim Tripcony