Bryan Schmiedeler
Bryan Schmiedeler

Reputation: 3127

Xpages open url in XPiNC or Web

I am using then new NavigationBar control to control a series of applications. Using the basicLeafNode I have this in the href:

var prefix:String = "";
if (@ClientType() == "Web")
{prefix = "https:xxx/"}
else
{prefix = "notes:xxx"}

url = prefix + "path/databsase.nsf?OpenXpage";
url

This works fine except in XPiNC I want the link to replace the tab, not open a new window. How can I do this?

=================================================== To clarify, I want the target to replace the current tab, not open a new one. While primarily a web app, the users will access it from XPiNC.

In the onClick event of the NavigationBar I have this in CSJS:

window.open('notes://<server>/common/db.nsf/xpHome.xsp?OpenXpage','_self')

Just trying to get this to replace the current tab in XPiNC. It opens a new tab. Shouldn't it replace this tab?

Upvotes: 0

Views: 744

Answers (2)

Howard
Howard

Reputation: 1503

In the XSP Properties there is a setting on the General tab for Window behavior for the Notes client.XSP properties

Upvotes: 1

MarkyRoden
MarkyRoden

Reputation: 1074

Brian - in XPiNC the URL is /xsp/path/database.nsf if you are going to do it manually you have to adjust for the XPiNC environment.

Upvotes: 1

Related Questions