How to generate a serial number in a fixed format
Form design often involves the production of serial numbers, such as order management, member management, equipment management, contract management and other scenarios. YIDA provides a serial number field to meet this requirement.
There are two design methods for serial number field design. Next, we will learn about the implementation of the two methods respectively.
1. The system has its own serial number.
1.1 prefix
Prefixes can be numbers, letters, and underscores. You can change the prefix format to the desired prefix format.
1.2 Date format
The date format can be changedIf the date format is set, the date at the time of submission is concatenated between the prefix and suffix, the date format for splicing is mainly set.
1.3 minimum suffix digits
The minimum suffix digit indicates that the suffix digit has several digits, so the serial number occupies several characters. If the number is insufficient, use 0 to complete it.
For example, the minimum suffix number is 5. When the suffix value is 3, the serial number is written in 00003. It also limits the maximum number of serial numbers. If the maximum suffix counts to 99999, then0Start counting again.
1.4 suffix reset rule
Suffix reset rules include daily reset, monthly reset, and annual reset 」.
After the suffix reset rule is set, the count starts again from the initial value when the time is reached.
For example, if the suffix reset rule is set to "daily reset" and the initial value is 1, then after counting today, counting will start from 1 tomorrow.
1.5 related documents
How to fill a serial number into a form:Click View
How to fill serial numbers into fields of a process:Click View
2. Set the serial number to auto-increment
2.1 Usage scenarios
In the application, the serial number will be used. When configuring the serial number, we can configure the automatic backfilling of the serial number into the form when submitting the serial number. In this case, we will encounter a problem, for example, when we configure business association rules to use serial numbers, business association rules and serial numbers are triggered at the same time. Therefore, when business association rules are triggered, serial numbers are not involved, then we can use 「COUNT"The formula generates a serial number and configures the format of the serial number yourself.
2.2 Procedure
Drag a single line of text to the page and configure formula editing.
Because the serial number needs to be self-incremented, COUNT can be used to calculate the amount of data submitted by the current form and concatenate it together using a splicing function.
2.3 Video demonstration
2.4 Precautions
Batch imported data cannot trigger formula editing. Therefore, you need to change the serial number field data in Excel before importing the data.
YIDA in order to better optimize the content and quality of YIDA user manual, it takes you 3-5 minutes to fill in the document feedback questionnaire. The document feedback questionnaire is submitted anonymously, and the questionnaire information is only used for YIDA document experience feedback collection. Thank you for your support for YIDA!
-------------------- Get the latest information YIDA, welcome to follow US--------------------