A form list custom configuration and group display method
By creating and configuring all columns of the task object on the front-end display page, the problem that custom forms cannot be customized according to user needs is solved, dynamic configuration and multi-dimensional data viewing are achieved, and form viewing efficiency and code reuse are improved.
Patent Information
- Application Number
- CN202210299776.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-25
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-03-25
AI Technical Summary
Customized forms in the existing technology cannot display customized lists according to the needs of users with different roles, resulting in low data viewing efficiency and the need for repeated code development, which increases system burden and maintenance difficulty.
Adopting a form list custom configuration and group display method, by creating all columns of the task object on the front-end display page, defining system fields and custom fields, using drag and drop controls to configure tables and table field rules, and supporting dynamic custom group display. Allow users to customize display pages and styles to achieve dynamic configuration and multi-dimensional data viewing.
It eliminates the need for repeated code development, improves code reuse and data maintenance efficiency, supports multi-dimensional dynamic adjustment of list data viewing for different users, realizes different user-customized display effects, and improves form viewing efficiency.
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer services, and in particular to a form list custom configuration and grouping display method. Background Art
[0002] Information systems cannot do without the maintenance of form data. Custom forms are widely used and realize the extended functions of forms. Without custom forms, each form needs to be processed by coding, and the code for processing forms is boring and mechanically repetitive. If the customer has many forms, even if repeated coding can be done, it will increase the burden on the system unnecessarily and is not conducive to the maintenance of the system.
[0003] In addition, currently, when displaying customized form content, it is not possible to customize the display of list columns according to the needs of users with different roles, and it is not possible to view form data by grouping customized columns according to different users. By adding development search functions, etc., it is possible to support data viewing according to different maintenance. Summary of the invention
[0004] The purpose of the present invention is to solve the shortcomings existing in the prior art, and to propose a form list custom configuration and group display method; the form list custom configuration and group display method does not require repeated code development, improves code reuse, and is easy to maintain form data; each column supports dynamic custom group display, which adapts to the retrieval of form data dimensions that different users are concerned about; realizes dynamic configuration, which is convenient for users to perform custom configuration. This dynamic configuration structured method enables data to be adjusted and displayed in time according to the dimensions that users are concerned about, adapts to the user's multi-dimensional dynamic adjustment of list data viewing mode, and improves form viewing efficiency; realizes different user-defined settings of different display pages and styles, which facilitates data viewing in different dimensions and improves form viewing efficiency; different user-defined display pages do not affect each other, and different display effects are achieved according to different user needs.
[0005] To achieve the above purpose, the present invention adopts the following technical solution: a form list custom configuration and group display method, comprising the following steps:
[0006] S1: Create all columns of the task object on the front-end display page as required;
[0007] S1-1: Define fields: Fields are divided into system fields and custom fields. System fields are fields defined by the system, while custom fields can be added by users at will.
[0008] S1-2: Design a custom table, define field types and field rules;
[0009] Field types include: text, data, date, Boolean;
[0010] Define field rules: Constrain the required query tasks:
[0011] In the front-end configuration page, configure the table, table fields, and table field rules by dragging and dropping controls, obtain all columns, and push them to the database;
[0012] S1-3: perform group query on all columns in S1-2, obtain grouped data, and store it;
[0013] S2: The front-end display page performs data query based on the grouped data obtained in S1;
[0014] S2-1: Only the default fixed columns are displayed on the front-end display page, and all the columns of the data to be viewed are listed for users to select columns for display;
[0015] S2-2: In addition to the default fixed columns, other columns are queried by custom fields, and the results are stored for data grouping query;
[0016] S3: The front-end display page has column definitions, which include data such as status, date, priority, and completion, and can be checked;
[0017] S4: The front-end display page also has grouping options, and can be displayed in groups according to custom checked options;
[0018] Preferably, in S1-1, when the user defines a field, the front-end display page displays a blank field, and the user fills in the custom field by manual input.
[0019] Preferably, in S1-3, after the grouped data is stored, only the default fixed columns are displayed.
[0020] Preferably, in S1-2, the constraints on the required query task include whether it is required, whether there is a default value, whether it is read-only, and whether it is displayed.
[0021] Preferably, in S1-1, the custom field format is consistent with the system field format.
[0022] Compared with the prior art, the present invention has the following beneficial effects:
[0023] 1. No need to repeatedly develop code, improve code reuse, and facilitate form data maintenance;
[0024] 2. Each column supports dynamic custom grouping display, which adapts to the retrieval of form data dimensions that different users focus on;
[0025] 3. Dynamic configuration is implemented to facilitate users to customize configuration. This structured way of dynamic configuration enables data to be adjusted and displayed in a timely manner according to the dimensions that users are concerned about, adapting to users' multi-dimensional dynamic adjustment of list data viewing mode, and improving form viewing efficiency;
[0026] 4. Different users can customize different display pages and styles, which facilitates the viewing of data in different dimensions and improves the efficiency of form viewing;
[0027] 5. Different user-defined display pages do not affect each other, and different display effects can be achieved according to different user needs. DETAILED DESCRIPTION
[0028] In order to provide a further understanding of the purpose, structure, features, and functions of the present invention, the following detailed description is given in conjunction with the embodiments.
[0029] A method for customizing and grouping a form list according to an embodiment of the present invention includes the following steps:
[0030] S1: Create all columns of the task object on the front-end display page as required;
[0031] S1-1: Define fields: Fields are divided into system fields and custom fields. System fields are fields defined by the system, while custom fields can be added by users at will.
[0032] S1-2: Design a custom table, define field types and field rules;
[0033] Field types include: text (consider length), data (consider precision, maximum and minimum values), date (consider date range), Boolean value;
[0034] Define field rules: Constrain the required query tasks:
[0035] In the front-end configuration page, configure the table, table fields, and table field rules by dragging and dropping controls, obtain all columns, and push them to the database;
[0036] S1-3: perform group query on all columns in S1-2, obtain grouped data, and store it;
[0037] S2: The front-end display page performs data query based on the grouped data obtained in S1;
[0038] S2-1: Only the default fixed columns are displayed on the front-end display page, and all the columns of the data to be viewed are listed for users to select columns for display;
[0039] S2-2: In addition to the default fixed columns, other columns are queried by custom fields, and the results are stored for data grouping query;
[0040] S3: The front-end display page has column definitions, which include data such as status, date, priority, and completion, and can be checked. Front-end users can customize and check several options in the column definitions as needed. Fields that are not of interest can be unchecked, that is, they are not displayed in the list;
[0041] S4: The front-end display page also has grouping options, and can be displayed in groups according to custom checked options. The data displayed in S3 is grouped and displayed in order on the front-end display page, making it easier for users to view and filter.
[0042] Preferably, in S1-1, when the user defines a field, the front-end display page displays a blank field, and the user fills in the custom field by manual input. This step is for users with a certain computer foundation, who fill in the corresponding custom field as needed.
[0043] Preferably, in S1-3, only the default fixed columns are displayed after the grouped data is stored. If there are many data types, it will be very messy to display all of them on the front-end station page, and it will be difficult for users to find the information they want to query. Therefore, only the default fixed columns (such as "number", etc.) are displayed after the data query in the database is filtered.
[0044] Preferably, in S1-2, the constraints on the required query task include whether it is required, whether there is a default value, whether it is read-only, and whether it is displayed.
[0045] Preferably, in S1-1, the custom field format is consistent with the system field format, and the front-end user does not need to re-develop the code, which is more convenient and faster and reduces the workload.
[0046] As described above, a form list custom configuration and group display method of the present invention does not require repeated code development, improves code reuse, and facilitates form data maintenance; each column supports dynamic custom group display, adapts to the retrieval of form data dimensions that different users are concerned about; realizes dynamic configuration, which is convenient for users to perform custom configuration. This dynamic configuration structured method enables data to be adjusted and displayed in a timely manner according to the dimensions that users are concerned about, adapts to the user's multi-dimensional dynamic adjustment of list data viewing mode, and improves form viewing efficiency; realizes different user-defined settings of different display pages and styles, facilitates data viewing in different dimensions, and improves form viewing efficiency; different user-defined display pages do not affect each other, and different display effects are achieved according to different user needs.
Claims
1. A form list custom configuration and group display method, characterized by: The following steps are involved: S1: Create all columns of the task object on the front-end display page as required; S1-1: Define fields: Fields are divided into system fields and custom fields. System fields are fields defined by the system, while custom fields can be added by users at will. S1-2: Design a custom table, define field types and field rules; Field types include: text, data, date, Boolean; Define field rules: Constrain the required query tasks: In the front-end configuration page, configure the table, table fields, and table field rules by dragging and dropping controls, obtain all columns, and push them to the database; S1-3: perform group query on all columns in S1-2, obtain grouped data, and store it; S2: The front-end display page performs data query based on the grouped data obtained in S1; S2-1: Only the default fixed columns are displayed on the front-end display page, and all the columns of the data to be viewed are listed for users to select columns for display; S2-2: In addition to the default fixed columns, other columns are queried by custom fields, and the results are stored for data grouping query; S3: The front-end display page has column definitions, which include data such as status, date, priority, and completion, and can be checked; S4: The front-end display page also has grouping options, and can be displayed in groups according to custom selected options.
2. The form list custom configuration and group display method according to claim 1, characterized in that: In S1-1, when the user defines a field, the front-end display page shows a blank field, and the user fills in the custom field by manual input.
3. The form list custom configuration and group display method according to claim 1, characterized in that: In S1-3, only the default fixed columns are displayed after the grouped data is stored.
4. The form list custom configuration and group display method according to claim 1, characterized in that: In S1-2, the constraints on the required query task include whether it is required, whether there is a default value, whether it is read-only, and whether it is displayed.
5. The form list custom configuration and group display method according to claim 1, characterized in that: In S1-1, the custom field format is consistent with the system field format.
