Specifying an Automatic Value for a Property

  1. Open M-Files Admin.
  2. In the left-side tree view, expand a connection to M-Files server.
  3. Expand Document Vaults.
  4. Expand a vault.
  5. Expand Metadata Structure (Flat View) and then select Property Definitions.
    Result:The Property Definitions list is opened in the right pane.
  6. Double-click the property definition that you want to edit.
    Result:The Property Definition Properties dialog is opened.
  7. Go to the Automatic Values tab, and select one of the following:
    If you want toDo the following
    Specify automatic incremental numbering for a property. Select the Simple automatic numbering option, and specify the size of the increment for each new value in the Increment field.
    Specify for a property customized automatic numbering using VBScript. Select the Customized automatic numbering (VBScript) option, and click Edit Code... to add the code for automatic numbering.
    Specify a combination of text and property placeholders as an automatic property value. Select the Simple concatenating of properties option, and enter the combination of text and property placeholders in the text field. You can add property placeholders by clicking the Add Placeholder... button.
    Note: For more information on placeholders, see Simple concatenation of properties.
    Specify for a property an automatic calculated value using VBScript. Select the Calculated value (VBScript) option, and click Edit Code... to add the code for calculating the property value.
  8. Optional: In the Last value used field, enter the starting value for automatic numbering if you want to use some other value than the default zero (0).
  9. In the Calculation order field, enter the number that determines the order in which this automatic value is calculated in relation to other automatic values. The smaller the number, the earlier the calculation order.
    For more information, see Calculation order.
  10. Click OK to save your changes and close the Property Definition Properties dialog.
The selected property now has an automatic value. When you add this property to the metadata card, the value is calculated and generated automatically.