This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



May 18, 2011, 10:50 PM
2 Posts

Close xpage in notes client

  • Category: Other
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 1
How can you close an Xpage in the Notes client to return to the Notes client.  I want to return to a regular Notes view.
 
In this blog the comments suggest using a composite application.   But that is a lot of work (cost) just to close an XPage in an existing Notes application.
http://www.dominoguru.com/pages/xpage_notesurls.html
 
Is there a way to fire the escape key from a button on the Xpage that will work the same as pressing the key which closes the page?  Thanks for any help.
 
 
Jul 4, 2011, 11:19 AM
6 Posts
Re: Close xpage in notes client
I just tried a simple "window.close();" in client-side JavaScript for a button, but that does not seem to do anything. Surprising.
Another more difficult way would be to use our XPages2Eclipse product (http://xpages2eclipse.mindoo.com).
 
The following code snippet (in SSJS) grabs a handle on the currently active tab (called "Perspective" in Eclipse) and closes it:
 
var conn=X2E.createConnection();
var pUI=com.x2e.PlatformUIAPI.getUI(conn);
var wb=pUI.getWorkbench();
var activeWindow=wb.getActiveWorkbenchWindow();
var activePage=activeWindow.getActivePage();
var perspective=activePage.getPerspective();
var saveEditors=true;
var closePage=false;
activePage.closePerspective(perspective, saveEditors, closePage);
 
API documentation, tutorials and samples can be found here: http://xpages2eclipse.mindoo.com/web/x2ewiki.nsf

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal