Validating unique property values

Nearly every vault has at least one property that must only contain unique values. That is, the value should not be duplicated anywhere in the vault, for example, document names or numbers. Just like Windows, Meridian prevents duplicate document names in the same folder, but to prevent duplicates in an entire vault requires a VBScript validation expression.

The IsUniqueValue method of the Document object queries the vault for a given value in a given property. You can use this method in an expression for the This expression must Be True option on the Validation page of a custom property:

Document.IsUniqueValue (Document.MyProperty, Value)