I have built an XPage which is basically an invoice. It has a document data source representing the invoice data plus a repeater containing the invoice lines. The repeater gets the data from a view and contains a panel associated to a data source for each line.
When I edit the page in the browser ,modify several lines and call the function save(), a lot of replication conflicts appear for each one of the lines(documents).
What could be the reason ?
Subject: Re: XPAGES - Replication conflicts related to repeater
It sounds like you have multiple dominoDocument data elements referring to the same document (i.e. at XPage level, at custom control level etc.). So for each time the document is specified in the code , it’s saving an instance of that document, causing your save conflicts.
Subject: There are no data sources referring to the same documents
The structure is quite simple:
Invoice Panel
Invoice Document DS
(document with Invoice form)
Repeater (shows the invoice items from a view)
Invoice Item Panel
Invoice Item Document DS
(document with InvoiceItem Form)
Invoice Item Table
Invoice Item controls
(bound to invoice Item Document DS)