Question

J'ai cette forme infopathe avec 8 champs nommés:

Field1
Field2
Field3
Field4
etc.

Comment dois-je aller pour valider le formulaire de manière à ce que je ne puisse pas avoir de valeurs en double sur ces champs.

Je ne peux pas utiliser de code-derrière parce que je n'ai pas accès à l'administrateur central, plus une solution de sandbox de code-derrière est trop buggy pour mon comme, continuez à obtenir des erreurs aléatoires lors de la publication, de l'utiliser.Je cherche donc une solution sans code.J'utilise SharePoint Server 2010.

merci

Était-ce utile?

La solution 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

Autres conseils

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange
scroll top