Difference between revisions of "Auto Values"
Jump to navigation
Jump to search
Line 81: | Line 81: | ||
|- | |- | ||
+ | |||
+ | |||
|''The 'z' parameter is optional but if specified indicates the number of leading zero's to display, if not specified then ZERO is assumed. If the number of digits in the resultant value exceeds the number of places defined here, then the left-most digits will be discarded. '' | |''The 'z' parameter is optional but if specified indicates the number of leading zero's to display, if not specified then ZERO is assumed. If the number of digits in the resultant value exceeds the number of places defined here, then the left-most digits will be discarded. '' | ||
''The 'r' parameter allows you to specify the base to use when converting the numeric value to a string. The default value if not specified is ten (10), any value between 2 and 36 is valid. '' | ''The 'r' parameter allows you to specify the base to use when converting the numeric value to a string. The default value if not specified is ten (10), any value between 2 and 36 is valid. '' |
Revision as of 17:30, 20 February 2015
Home > Administration > Data > Auto Values
Introduction
The Auto Values feature lets an administrator define how auto-generated values, such as reference IDs, are constructed. Places where more than a sequence number (000001234) is required, an Auto Value can be modified to include dates, time, location, teams, user IDs and more. There are many situations where this type of sequence is much more preferable over a simple numeric sequences. Some examples include:
- Shipment numbers
- Document or Article Reference Numbers
- Stock Item Codes
- Asset ID's
- Access Code numbers
Available Auto Value Component Parts
The following lists of component parts are available to construct an auto value.
seq( z, r ) |
| ||||||||||||||||||||||
seqd( z, r ) |
| ||||||||||||||||||||||
seqm( z, r ) |
| ||||||||||||||||||||||
seqy( z, r ) |
| ||||||||||||||||||||||
| |||||||||||||||||||||||
date( [part] ) |
| ||||||||||||||||||||||
udate( [part] ) |
| ||||||||||||||||||||||
uuid( [type] ) |
| ||||||||||||||||||||||
sess( prop_name ) |
| ||||||||||||||||||||||
param(param_name) |
| ||||||||||||||||||||||
rec( column_name ) |
|