أفضل طريقة للتحقق من صحة نموذج InfoPath - سيناريو محدد

sharepoint.stackexchange https://sharepoint.stackexchange.com//questions/80576

  •  10-12-2019
  •  | 
  •  

سؤال

لدي نموذج InfoPath هذا مع 8 حقول يدعى: giveacodicetagpre.

كيف يجب أن أذهب للتحقق من صحة النموذج بطريقة لا أستطيع الحصول على قيم مكررة على تلك الحقول.

لا أستطيع استخدام الرمز - خلفه لأنني لا يمكنني الوصول إلى المشرف المركزي، بالإضافة إلى حل الرمز - خلف الرمال هو عربات التي تجرها الدواب للغاية بالنسبة لي مثل، استمر في الحصول على أخطاء عشوائية عند النشر، باستخدامه.لذلك أنا أبحث عن حل بلا رمز.أنا أستخدم SharePoint Server 2010.

شكرا

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

المحلول 2

So I end up doing a full compare of all the possible combinations:

8 choose 2 = 28.

Thats a lot of rules. There is another limitation, one item cannot have more than 6 rules (or at least i thought so), looks like this limitation is only on the designer to overcome this limitation do the folloing:

In the Rule condition select expression and you can insert as many comparisiona as you want like:

. = ../my:Field2 or . = ../my:Field3 or . = ../my:Field4 ...etc

نصائح أخرى

If you're wanting to just compare values to make sure there are no duplicates among them, you could create a validation rule on each of the fields that compares the values of each of the affected fields every time the value changes, and throws a validation error if duplicates are found.

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