Best Modo per convalidare la forma di InfoPath - Scenario specifico
-
10-12-2019 - |
Domanda
Ho questa forma di InfoPath con 8 campi denominati:
Field1
Field2
Field3
Field4
etc.
.
Come dovrei andare a convalidare il modulo in un modo che non posso avere valori duplicati su quei campi.
Non riesco ad usare il codice-dietro perché non ho accesso all'amministratore centrale, oltre a un codice Sandbox Sandbox è troppo buggy per il mio simile, continua a ottenere errori casuali durante la pubblicazione, usandolo.Quindi sto cercando una soluzione senza codice.Sto usando SharePoint Server 2010.
Grazie
Soluzione 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
Altri suggerimenti
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.