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



Jun 20, 2013, 1:43 PM
53 Posts
topic has been resolvedResolved

Opening a document using field data

  • Category: Server Side JavaScript
  • Platform: All
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 1

I'm trying to use a link to open an xpage to a specific document based on the values on a couple of comboboxes on the initial form

The link should simply open the page with a calculated parameter documentId, which is calculated using a lookup based on the values of the comboboxes (using SSJS and doing a getdocumentbykey from a specified view).

Needless to say this just doesn't work, I've tried using getComponent("comboBox").getValue() or using the comboxes bound to a viewscope variable. The problems vary between not getting the field values or getting the field values but the documentId parameter not being added properly. I can log the fact that the lookup will work at times so there's no problem with the SSJS, but even if it finds the doc to open the link doesn't do what it's meant to do.

I suspect I'm going about it completely the wrong way. Anyone get any ideas as to how to do this in principle?

Jun 20, 2013, 1:58 PM
53 Posts
fixed

Typical, as soon as I post I find the answer/problem.

I hadn't set the combobox onchange event to update the link, so as soon as I'd set that the getComponent.getValue() option worked to retrieve the data from the field (having the combobox bound to a viewScope didn't work for some reason either) and the link updates and works fine now


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