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 23, 2011, 8:08 AM
31 Posts
topic has been resolvedResolved

Save down to two forms of which one of the fields included in both

  • Category: Other
  • Platform: All
  • Release: 8.5.3
  • Role: Developer
  • Tags: save,forms,data binding
  • Replies: 2
If I have an XPages and to save down to two forms of which one of the fields included in both. How do you do. Assuming that you specify two Data Binding? If so, how? to the field named the same in both forms
 
Regards
Fredrik
Nov 23, 2011, 9:30 AM
261 Posts
Re: Save down to two forms of which one of the fields included in both
Fredrik,
 
AFAIK you can't have two data bindings for one control.
 
What you could do is to bind the control to the field on form 1 and when saving form 2, store the value from the control in the field on form 2.
 
Mark
Nov 23, 2011, 9:47 AM
31 Posts
Re: Save down to two forms of which one of the fields included in both
Use this from my Save button, works well.
 
var Xband1:com.ibm.xsp.component.xp.XspInputText = getComponent("band1");
var xmusic1:com.ibm.xsp.component.xp.XspInputText = getComponent("music1");

document1.setValue("band",Xband1.getValue());
document2.setValue("band",xband1.getValue());
document2.setValue("music",Xmusic1.getValue());
document1.save();
document2.save();
context.redirectToPage("main")
 


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