Ragic Logo
<< Field types Table of Contents Cascaded selection >>

Auto generated field values

Setting your Field to be Automatically Generated

When you set a field type as Auto Generate, the value of the field will be automatically generated by Ragic. This is a great help for generating system ID and document numbers.

You can start by choosing a sequence format in the formatting box below and see how the generated value is like in the example area. To understand this formatting structure, we could analyze how Ragic responds to parts of these sequences.

Example: Quote with Date

The following sequence format is written for a quotation's document number:


Two variables are provided to generate the pattern;

the {0,number,000} is a serial number,

and the {1,date,yyyyMMdd} is the date that the value is generated.

When the date variable is not present, the number variable will be a count of quotations generated.

For example if the pattern is:


The generated document number will be:





If the date variable is present, the number variable will be a count of quotations generated under the same date string. For example, if the pattern is:


The generated document on 2013/5/8 will be:





On the next day it will be:





If we change the format to:


Then the quotation generated on 2013/5/8, and 2013/5/9 will be:








The sequence will only be reset in the following month:





Resetting the Sequence

You can reset or change the status of the automated sequence in the auto generate setting through the Sequence Status at the bottom of the left panel in the Design Mode.

Enter the sequence number you want to start from and click the Set current seq button. If you would like to view the current sequence number, click on Get current seq. This is especially useful when you have a sequence that you're using in Ragic but would like to import data from another source, and then continue with the current sequence.

Populating Empty Values

Ragic has the ability to populate empty autogenerate fields according to the set sequence.

You can run this for an autogenerate field in the form page design mode, in the bottom of the Field Settings > Basic panel.

This feature can be used if you don't already have a key identifier for your records when you import your data from spreadsheets.

Sequence Patterns

For more information on the formatting of these sequence patterns that are based on Java MessageFormat, you may visit the Java MessageFormat class page.

Top of Page
<< Field typesTable of ContentsCascaded selection >>
Learn more about Ragic: Why we created Ragic | Webinars | User Guide.
Keep in touch: Blog | Email | Facebook | Twitter.
Ragic, Inc. | +1 888-666-8037 | Terms | Privacy