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



Jan 4, 2012, 3:10 PM
26 Posts

ComputeWithForm causes replication and save conflicts

  • Category: Forum design
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 3
I have the following code in a button on my X-Page
 

var doc:NotesDocument = sourceSetup.getDocument()

doc.computeWithForm(true,true)

doc.save()

 
The computeWithForm causes a replication and save conflict when the document is saved.  If I remove the call to computeWithForm no replication and save conflict is created.
  
 
Any idea what is wrong? 
Jan 4, 2012, 9:00 PM
122 Posts
Re: ComputeWithForm causes replication and save conflicts
 I haven't encountered a problem with computeWithForm directly, I've used it quite a bit. Do you have the datasource more than once on the page? A save could be saving all instances of the datasource and computeWithForm causing a conflict.
 
Jan 5, 2012, 12:49 PM
26 Posts
Re: ComputeWithForm causes replication and save conflicts
As far as I know only one (I am an XPages newbie).  I have one datasource defined for the xpage.  If I remove the compute withform then the rep and save conflict does not occur.
 
Jan 6, 2012, 6:36 PM
122 Posts
Re: ComputeWithForm causes replication and save conflicts
I don't seem to have any problem with computeWtihForm if I only have one datasource on the page. But I do if I have more than one.
 
Have you got any other dominoDocument datasources at all on the page? Remember that if you have multiple dominoDocument datasources but don't use ignoreRequestParams, they will all use the UNID in the URL. If I have multiple datasources without ignoreRequestParams, I am seeing the replication/save conflicts.

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