سؤال

لدي XPAGE، مع علامات تبويب متعددة.تحتوي علامة التبويب الأولى على لوحة، التي تكون محتواها قابلة للتحرير فقط عند isnewnote () صحيحا.لذلك قمت بحسبت سمة القراءة للوحة.

ولكن في كل مرة أحفظ المستند، فإنه يخلق وثيقة تعارض جديدة.

في SAMETIME، إذا قمت بإلغاء تحديد الخاصية للقراءة فقط، فهي توفر بشكل صحيح دون أي تعارض.

يمكن لأي شخص مساعدتي في حل هذه المشكلة؟

code - xpage

giveacodicetagpre.

هل كانت مفيدة؟

المحلول

تحقق من بيانات Datasources متعددة مشيرا إلى نفس المستند.

بعض المشاركات من قبل مع نفس المشكلة XPAGE ينشئ حفظ الصراع على حفظ / إرسال

href="https://stackoverflow.com/questions/13220390/multiple-data-sources-in-xpages"> مصادر بيانات متعددة في XPages

Lotus Notes: تعارض النسخ المتماثل الناجم عن الوكيل والمستخدم الذي يعمل على المستند في نفس الوقت

=================================================

تحرير

اضطررت لتغيير رمز الزر إلى هذا للحصول على نفس المشكلة

giveacodicetagpre.

بعد بعض الاختبارات الأخرى، جرب هذا.

أضف هذا الحقل إلى نهاية XPAGE

giveacodicetagpre.

ثم لا يتم إنشاء أي تعارضات.

نصائح أخرى

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top