xPages - how to create the link to jump to the different db's xPage in CA

I am using an xPages as Composite Application component.

My question is how to create the link with xPage’s Link core control to open the OTHER database document in CA.

I can generate the web url(i.e. http://mydomain.net/abc.nsf/content.xsp?action=openDocument&documentId=) for the target document. However, in this case, I am redirected to the login page regardless I opened the xPages in CA. *All my databases are for members only.

Then I realized that when I use the “Open page” option in the Link core control, it automatically generate the special url (i.e. http://127.0.0.1:51640/xsp/abc.nsf/content.xsp) and login is not required.

So now I would like to create the link to jump to the OTHER database’s document from CA. However “Open page” option does not allow me to select the other database xPage.

Is there any way to generate the link to jump from xPages to other database’s xPages in CA?

FYI, I tried the URL below in computed value of “Open page”, but I got 500 Exception.

return “http://127.0.0.1:51640/xsp/target.nsf/test.xsp

Thank you in advance.

Kazu

Subject: SOLVED xPages - how to create the link to jump to the different db’s xPage in CA

I could solve this issue by using ?OpenXPage parameter with notes:/// protocol.

My computed value code became like below in “URL” of “Link type”.

return “Notes:///88257656006337D3/content.xsp?OpenXPage”

Thank you

Kazu

Subject: Please help me out here

Can you please tell me how can i compute a Link that will just open a different database?I know how can i do it statically, but i need to do it dynamically…

This is my static URL - Notes://Server/Directories/DBName.nsf/FramesetName?OpenFrameset

So what i need here, is the same URL but to be computed dynamically by reading from the Database Script - Call session.SetEnvironmentVar to get the filepath and the server.

In lotus script this would be done like this: @Command([FileOpenDatabase];@Environment(“FilepathName”): @Environment(“ServerName”))

Sorry if im not very clear with explaining what i need, but im desperate :smiley:

TNX