Hi everyone. I have this 1 project where I need to run a SSJS Function and within it, open a link in a new Window with some parameters.

The best way to do this is to use the postScript Function that belongs to the XPages view Object.

Here’s an example

Let’s say that I wanted to open an XPage in a new window and add some parameters to it:

var myparam = “Test”;

var myurl = @LeftBack(context.getUrl(),”/”) + “/myxpage.xsp?id=”+myparam;

view.postScript(“window.open(‘” + myurl + “‘)”);

As easy as that. Hope this helps :)

Cheers.