Custom field design principles in project development

Source: Internet
Author: User

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 );

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.