During system development, Custom field policy settings are implemented. Currently, this feature is a standard configuration of many systems, which simplifies the difficulty of adding fields and manages custom fields.
Note the following points for the custom field function:
1. Prepare data tables with custom fields in batches.
2. design the table dictionary table for storing custom Fields
3. Design different attributes for custom Fields
4. Custom field extension Design
1. Determine which table requires custom fields.
If you are developing an easy-to-use system, you can design a unified Custom field for the primary table used during development.
In this way, fields can be added when you directly operate the custom function in future development applications.
Many programmers manually add fields when writing a program, which is less efficient. If you modify the newly added field, it will be modified in the program segment.
2. custom dictionary table Design
A custom dictionary table is designed to store the corresponding field attribute information.
3. Design different attributes for custom Fields
Design different attributes for the corresponding fields. These attributes should include: text box (input), multi-line text (textarea), drop-down text (select), single-choice (Radio ), multiple choice (checkbox), file, Rich Text (editor ). You can also set the default settings or options for these attributes.
4. Custom field extension Design
The extension design includes:
Whether to set the default value of a field; check rules for entering fields (such as verification length and format); whether the field supports program function labels (many field options are associated with the system, to conveniently call data to present it to custom fields );