Background
In Compliance Kit's Unique Object Enforcement's Unique properties there was question about text format. How does the Unique Object Enforcement manage the unique properties having a text type? Does the function do a trim, remove the spaces at the left or right of the string? Does it validate letters regardless of the accents? When E is typed, are É, È, Ê the same? For example, are these strings the same:
“Instruction de réglage”
“Instruction de Réglage”
“ Instruction de Réglage”
“Instruction de Reglage”
“Instruction de Reglage ”
Answer
The Search Conditions use the M-Files API and the condition type MFConditionTypeEqual which is in this case set to "Must be equal to" for the properties in the Unique Object Enforcement module.
It means that the text written will be detected as "must be equal".
Answers to that question:
- If you have the “Instruction de Reglage” -string, then all objects with the property equal to that will be found.
- Accents are not the same.
- Example: E is different from É, È, Ê.
- The comparison is case-insensitive.
- Example: names like "Instruction de réglage" or “Instruction de Réglage” will both be found.
- Leading spaces do matter.
- Example: if you have the “ Instruction de Réglage” -string then all objects with property equal to that will be found, but not “Instruction de Réglage”.
- Trailing spaces do not matter.
- Example: names like "Instruction de réglage" or “Instruction de réglage ” will both be found.
- The comparison does not trim or remove spaces before the content.
