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 26, 2012, 9:34 AM
10 Posts

Dialog cannot retrieve value set by ValuePicker on parent Xpage

  • Category: Extension Library
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags: Extension Library,Dialog,ValuePicker
  • Replies: 1
 Hi,
 
I have an XPage form that has a series of fields, two of which are populated using the ValuePicker custom control from the Xpages library. The fields are populated by the value picker as I can see the selected value.
 
Further down on the form I then have a button that displays a dialog (using the extension library dialog custom control). This dialog has 3 fields and a save button. The save button is coded in SSJS to create a new document using the data from the fields in the dialog as well as that of the parent Xpage. This works and creates a document with all fields populated (regardless of whether they are from the Dialog or the Xpage) except for those fields that were populated by the ValuePicker. 
 
For some reason, getComponent("fname") on those two fields keeps returning null. 
 
I have tried getValue(), getSubmittedValue(), getLocalValue(), getValueAsString, datasourcename.getItemValueAsString('fieldname') but no luck
 
If I put a button on the parent Xpage and call getComponent for either of those two fields, the value is returned correctly. 
 
Does anyone have any idea how I can get those values via the dialog? 
Jun 14, 2012, 10:28 AM
25 Posts
Re: Dialog cannot retrieve value set by ValuePicker on parent Xpage
Hi,
 
In one of my application i am reading value from field that i m setting it from value picker and its working fine by using getValue().
 
Please check server option for that filed. May be one option like No Submission or Do not validate or update data is ticked.
 
hops this work.

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