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



Aug 10, 2011, 1:18 PM
8 Posts

Bug R8.5.2: Save conflict for every save (reproducable)

  • Category: Other
  • Platform: All
  • Release: 8.5.2
  • Role:
  • Tags: save,conflict,datasources,repeat
  • Replies: 3
 
I thought the issue in my previous post was resolved, but alas. 
 
I managed to get the issue isolated.
I have an XPage related linked to a DominoDocument datasource.  On the Xpage I have only a submit button (either Save Document or Save Datasources). When I access an existing document using the ?editDocument url and click submit a Save conflict is generated.
 
The same behaviour occurs on the server as well as local. 
 
Here is the page source 
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core"
xmlns:xc="http://www.ibm.com/xsp/custom" pageTitle="test">

<xp:this.data>
<xp:dominoDocument var="document1" formName="ePortfolio"></xp:dominoDocument>
</xp:this.data>
<xp:button value="Label" id="button1">
<xp:eventHandler event="onclick" submit="true"
refreshMode="complete">
<xp:this.action>
<xp:saveDocument></xp:saveDocument>
</xp:this.action>
</xp:eventHandler>
</xp:button>
</xp:view> 
  • When the Xpage only has an input control which is linked to the datasource -> no conflicts
  • When the Xpage only has an input control which is linked to the datasource and disabled -> conflicts
  • When the Xpage only has a rich text control linked to rich text field in datasource -> conflicts
in other words, if there was no Subject or Tags field on this Forums topicThread XPage it would result in a conflict for every update. 
 
In my case I use a repeat control to display a custom control for a set of documents. Depending on the state some are disabled, some enabled. Saving the datasources results in a save conflict for all the disabled custom controls.
 
The only workaround I found was setting the concurrencyMode to "force".
Aug 12, 2011, 9:35 AM
170 Posts
Re: Bug R8.5.2: Save conflict for every save (reproducable)
How to you access the datasource inside the custom controls?
 
currentDocument, the datasource name that is added on the XPage ? 
 
Do you have any datasource specified on the customcontrols? 
Aug 15, 2011, 11:33 AM
8 Posts
Re: Bug R8.5.2: Save conflict for every save (reproducable)
 Hi Fredrik,
 
I access the datasource by it's name. The custom control within the repeat has it's own datasource which is set to EditDocument with a docid passed in by the repeat control.  
 
Even without repeat control or custom control this is reproducable.  
 
Bas 
Aug 12, 2011, 2:23 PM
272 Posts
Re: Bug R8.5.2: Save conflict for every save (reproducable)
Hi,
 
I can certify this bug. I have tested it without a form in an empty database. I have just opened the XPage in the browser and clicking on the button. It provokes replication conflicts after each click.
 
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core"
xmlns:xc="http://www.ibm.com/xsp/custom" pageTitle="test">

    <xp:this.data>
        <xp:dominoDocument var="document1"></xp:dominoDocument>
    </xp:this.data>
    
    <xp:button value="Label" id="button1">
        <xp:eventHandler event="onclick" submit="true" refreshMode="complete">
            <xp:this.action>
                <xp:saveDocument></xp:saveDocument>
            </xp:this.action>
        </xp:eventHandler>
    </xp:button>
    
</xp:view>
 
 
 

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