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



Apr 12, 2012, 7:53 AM
2 Posts

Dialog box in X pages. Need Help

  • Category: Extension Library
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags: Dialog box in X pages
  • Replies: 5
 
We have a form named "Main" with a field say "Employee Id". We need to create a button in the "Main" form which when clicked opens a dialog box and allows end user to enter Employee Id. On Click of "Ok" Button of dailog box, the Employee ID should be set into the EmployeeId field of Main form.
 
This could easily be done in traditional Javascript using window.open & window.opener. How can we achieve this Xpages/DOJO.
 
We searched the web and found many articles related to dialog box but none were specific to transfering field values from dialog box to parent form.
 
 
Thanks in advance.
Apr 12, 2012, 1:50 PM
298 Posts
*See the dialog box functionality in the Extension Library
Apr 13, 2012, 7:01 AM
2 Posts
Re: Dialog box in X pages. Need Help
Thanks Howard for your reply.
 
I am using the dialog box control of extension library. 
 
so far i have been successful in poping up the dialog box with a field but can you guide me on how to get this info to the parent window on the click of the button.
 
Thanks in advance,
Aneesh    
 
 
Apr 13, 2012, 1:18 PM
298 Posts
See the demo of this
In the XPages Ext. Lib Demo, the Core_Dialog XPage has lots of samples. See the Close Dialog - Server side - Refresh DateTime button for one example. Or in your code in the Close button you could get the controls (getComponent) you want to set the value of and use the setValue method to set the value. Howard
Apr 14, 2012, 11:15 AM
586 Posts
Re: Dialog box in X pages. Need Help
 Howard is straight on.  Look closely at the dialog Examples in the Ext. Library.  That's probably your best bet.  There are also non Ext. Library dialogs available but you need an additional function that Jeremy Hodge originally wrote.  So Ext. Library is probably easier to get going with the examples that are available.
 
I'll soon be doing a video example on dialog box on NotesIn9.  Just not sure when I'll get that out though.   
Jun 14, 2012, 10:07 AM
11 Posts
Re: Dialog box in X pages. Need Help
we can use the fieldname .getValue()and at the same time use partial refresh.Hope will get some idea with this

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