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:
    ObjectiveInstructions
    Specify automatic incremental numbering for a property. Select Simple automatic numbering 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 Customized automatic numbering (vault application or VBScript), and then Details to add the code for automatic numbering.
    Specify a combination of text and property placeholders as an automatic property value. Select Simple concatenation of properties and enter the combination of text and property placeholders in the text field. To add property placeholders, select Add Placeholder.
    Specify for a property an automatic calculated value using VBScript. Select Calculated value (vault application or VBScript), and then Details to add the code for the calculation.
  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. Select 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 created automatically.