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



Sep 28, 2011, 9:43 AM
10 Posts

Url paramerers

  • Category: Server Side JavaScript
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 1
Hello,
 
I am using 'display xpage instead' feature on forms to map urls like
   base.nsf/view/name
to some documents with content and to render them with xpage.
 
The problem here is that when I need to pass some url parameters:
   base.nsf/view/name?openDocument&category=test
 server side code cannot access this paramters. When I check value of context.getUrl().toString() it returns:
   bas.nsf.nsf/index.xsp?documentId=A80CE55667854DA7C12578760038F651&action=openDocument
 
It looks like during url translation all original parameters are dropped. 
Does anybody know how to access them from xpage ssjs ?
Sep 28, 2011, 1:30 PM
122 Posts
Re: Url paramerers
I've seen issues with the URL parameters are not available in e.g. beforePageLoad event, I'm not sure if that's where the code is being used. Otherwise it sounds like the form method is effectively doing a redirect. One option would be to construct the complete URL yourself in the link (which can be done even for a View Panel), or else to pass the information via a sessionScope variable.

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