Frage

Ich habe eine XPAGE mit mehreren Registerkarten.Die erste Registerkarte enthält ein Panel, dessen Inhalt nur dann bearbeitet werden, wenn ISEWNOTE () TRUE ist.Also berechnete ich readontly Attribut für das Panel.

Jedes Mal, wenn ich das Dokument speichern kann, erstellt er ein neues Konfliktdokument.

Bei der Sametime, wenn ich schreibgeschützte Eigenschaft deaktivierte, speichert es ohne Konflikt ordnungsgemäß.

Kann mir jemand helfen, dieses Problem zu lösen?

code - xpage

generasacodicetagpre.

War es hilfreich?

Lösung

Überprüfen Sie, ob mehrere DataSources auf dasselbe Dokument angezeigt werden.

einige Beiträge zuvor mit dem gleichen Problem XPAGE erstellt Konflikte speichern auf sparen / Senden

Mehrere Datenquellen in XPages

Andere Tipps

Strange indeed - but also not. Your data source is bound to the page and not to the panel. So if you want to set read mode only for that panel, consider to calculate the panel's datasource from the page's datasource:

<xp:panel>
    <xp:this.data>
        <xp:dominoDocument var="document1" action="openDocument"></xp:dominoDocument>
    </xp:this.data>
</xp:panel>

Of course you have to calculate the document mode and the docid instead of using the readonly property.

In addition to the other suggestions, when working with tabbed tables you will want to follow this blog post carefully. I have been through similar issues on a previous project and Tommy Valand's redirectToCurrentDocument() fixed them.

http://dontpanic82.blogspot.com/2010/06/xpages-avoid-saving-duplicate-documents.html

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top