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



Nov 4, 2013, 9:24 PM
13 Posts

ignoreRequestParams="true" brings up new doc

  • Category: Custom JSF code (Eclipse IDE)
  • Platform: All
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 4

I'm converting a Notes app to xPages that has LOTS of input translations and input validations in the forms.  I've had a deuce of a time getting the customer control for one of the forms to work, and finally used the ignoreRequestParams="true" and it will render (and save).   I'm pulling the form control up from a view, and when I do I don't get the document that the view link is associated with, but instead a new document.  Any suggestions?

 

Nov 4, 2013, 9:57 PM
366 Posts
When a document is opened from a view control

the document ID is added to the URL as a request parameter.  If you have disabled that then it just opens the form with the default behavior of a new document

Nov 5, 2013, 7:07 PM
298 Posts
adding on to Paul's comment
What Paul said is right and the way to fix it is to get the url parameters yourself and use them in the documentid property of the data source to see the unid of the document to open.  You can also set the mode to open in read or edit mode.

Howard
Nov 11, 2013, 12:50 PM
13 Posts
Code Example?

Does anyone have a code example, please?   I am in a view control (within a panel) with a column in which the data source has a link.  When I click on the link I need to bring up the document in edit mode.  I understand I need to get the URL, but don't have an inkling on how to get the URL for that particular document.  It's obviously not "selected documents", since the linked document is just coincidentally in that view. So where do you get the URL so you can bring the doc up?

 

Many thanks!

 

Beau

Nov 11, 2013, 2:36 PM
298 Posts
Just use the var variable
In your view data source you define var, which is a variable that points to each view entry (line).  Use that to get the document UNID and build your url to either supply your own url paramter (http://myserver/mydb/myxpage.xsp?openxpage&mydoc=(docid). Then in your universal id of the document XPage get the mydoc url parameter.

Howard

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