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 31, 2012, 8:53 PM
15 Posts

How to set the values of one xpage into another ?

  • Category: Server Side JavaScript
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 1
I want to use the field values which is in one xpages coms from the backend form, want to use this same values into the another xpage ?????
Jun 1, 2012, 7:41 AM
126 Posts
Re: How to set the values of one xpage into another ?
are you looking to know how to pull the values out of a domino document and put them into another?
 
Heres some rough SSJS 
 
doc = database.getDocumentByUNID(viewScope.doc1); 
 
var field1 = doc.getItemValueString("Body"); 
var field2 = doc.getItemValueIntereger("Number"); 
 
doc2 = database.getDocumentByUNID(viewScope.doc2); 
 
doc2.setValue("Body",   field1 ); 
doc2.setValue("Number",  field2); 

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