Dynamic form implementation method based on low-code development platform

CN118519624APending Publication Date: 2024-08-20NANJING XINGJI DIGITAL TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410594314.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-14
Publication Date
2024-08-20

Smart Images

  • Figure CN118519624A_ABST
    Figure CN118519624A_ABST
Patent Text Reader

Abstract

The invention provides a dynamic form implementation method based on a low-code development platform. The dynamic form implementation method comprises the following steps: step 1, constructing an original data domain model and fields; 2, obtaining or constructing dynamic form data; 3, defining a dynamic form according to field information of the domain model, and storing the dynamic form in an MYSQL database in a fixed data structure; 4, according to the data structure, service data entry operation is carried out, and in combination with dynamic form definition, form service data is stored in an MYSQL and synchronized to an ELASTICSEARCH; and 5, when the business personnel inquire the business data, the business data can be inquired from the ELASTICSEARCH. After the dynamic form is used, IT personnel do not need to carry out development, and the problems of repeated development and long period are effectively solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer software development, and in particular to a dynamic form implementation method based on a low-code development platform. Background Art

[0002] With the continuous development of network applications, many businesses will show similar characteristics. This trend has led to the phenomenon of frequently writing similar codes in software development. Such repetitive work not only wastes the time and energy of developers, but also increases maintenance costs and error rates. Especially when business requirements change, such as adding or deleting fields, the development team needs to spend a lot of time and resources to adjust the existing code and page layout, which not only increases communication costs, but may also introduce new errors. Therefore, seeking ways to reduce repetitive code writing and improve development efficiency is one of the urgent problems to be solved in current software development.

[0003] With the continuous development of web applications, more and more businesses have a lot of similar nature, which leads to software development always repeating similar codes. However, when the business changes (adding / deleting fields), developers need to modify the code / page of the field module, which takes a long time. This increases the communication cost of the team and the production error rate. Summary of the invention

[0004] To solve the above problems, the present invention discloses a dynamic form implementation method based on a low-code development platform. After using the dynamic form, there is no need for IT personnel to perform development, which effectively solves the problems of repeated development and long cycle.

[0005] A method for implementing a dynamic form based on a low-code development platform includes the following steps:

[0006] Step 1: Construct the original data domain model and fields;

[0007] Step 2: Get or construct dynamic form data;

[0008] Step 3: Define dynamic forms based on domain model field information and store them in the MYSQL database with a fixed data structure;

[0009] Step 4: According to the data structure, perform business data entry operations, combine dynamic form definitions, save the form business data to MYSQL and synchronize it to ELAST I CSEARCH;

[0010] Step 5: When business personnel query business data, they will query from ELAST I CSEARCH. Further, in step 1: the original data field: includes the following types:

[0011] Text: single line text, used to define data of line text type;

[0012] Textarea: paragraph text, used to define data of paragraph long text type;

[0013] Rich Text: Rich text, used to define data that supports multiple rich text formats including but not limited to text styles, pictures, etc.

[0014] Select: Drop-down, used to define data with a drop-down selection type. It supports manually setting drop-down options or binding dictionaries for use;

[0015] Count: calculation type, used to define the data that needs to be calculated and displayed in real time, and supports the configuration of multiple calculation rules;

[0016] Date: Date, used to define date type data, supporting multiple date formats;

[0017] Checkbox; Checkbox is used to define data of checkbox type, and supports storing multiple values;

[0018] Rad io: Radio button, used to define data with a value of radio button type;

[0019] Link; hyperlink text, used to define data of hyperlink text type, supports jumping by clicking on hyperlink;

[0020] Time: Time, used to define event type data, supports multiple time formats;

[0021] Image: image, used to define the data of picture type;

[0022] File: File, used to define the data of the file type and supports file size control;

[0023] AutoSort: Automatic numbering, used to define data that needs to be automatically numbered according to the configuration rules;

[0024] Progress: Progress bar, used to define the data of the progress bar type;

[0025] Rel evance: association relationship, used to define data obtained by cross-business object configuration in PaaS scenarios;

[0026] Cite: reference type, used to define data obtained through reference relationships in PaaS scenarios.

[0027] Furthermore, in step 2: the original information of the dynamic form includes: tenant ID, application ID, model object ID, object ID, label ID, form view ID, form view name, additional options, enabled status, whether built-in, consistent with the details form, display order, creator, creation time, modifier, and modification time.

[0028] Furthermore, the tag information includes: tenant ID, application ID, model object ID, object ID, form view ID, tag ID, tag alias, enabled state, display order, creator, creation time, modifier, and modification time.

[0029] Furthermore, the tag detail information includes: tenant ID, application ID, model object ID, object ID, form view ID, tag ID, field ID, field alias, whether required, default value, enabled status, display order, creator, creation time, modifier, and modification time.

[0030] Furthermore, design the MYSQL data table: the data structure stored therein includes at least seven tables, domain model table, field table, form information table, form label table, label field table and object business data table.

[0031] Furthermore, the dynamic form execution in step 3 includes the following steps:

[0032] s31, determine whether it is a new addition or a creation, if it is a new addition operation, execute s32. If it is an update operation, execute s33;

[0033] s32. In the browser, according to the new operation, the domain model object label is displayed. After selecting the label, select the field by selection, and drag the label to sort.

[0034] Then execute 34;

[0035] s33, read the form metadata, labels and fields from MYSQL, load them into memory, then display the original form data fields and update the field type rendering component style. Then execute s34;

[0036] s34. Define the form table, form label table and form label field table in the MYSQL database with the edited form metadata.

[0037] Furthermore, the association of the business data with the dynamic form in step 4 includes the following steps:

[0038] S41. Read the form metadata, labels and fields from MYSQL, load them into memory, then display the original data fields of the form and update the field type rendering component style;

[0039] S42. Fill in the actual business data according to the field type and attributes (default value, validation rules, associated input), etc.

[0040] S43, the front end verifies the data format, and after passing the verification, sends it to the back end for processing;

[0041] S44. After receiving the data, the backend verifies the legitimacy of the data. After passing the verification, the data is saved in MYSQL and synchronized to ELAST I CSEARCH.

[0042] Furthermore, in step 5, the steps for business personnel to access data

[0043] S51. Business personnel access the dynamic form page through the interface;

[0044] S52, query the form field data of the corresponding data and the data in ELAST I CSEARCH through the access interface

[0045] S53. Filtering is performed according to the queried form field data and the data in ELAST I CSEARCH to filter out data that does not exist in the form field.

[0046] S54, returning to the interface to display page data.

[0047] Beneficial effects of the present invention:

[0048] 1. Accelerate development speed: Low-code platforms greatly reduce the time developers spend writing code by providing a visual development interface and pre-built components. This greatly increases the speed of application development, thereby speeding up the time it takes to launch a product.

[0049] 2. Lowering the technical threshold: Low-code platforms make the development process more visual and intuitive, reducing the need for programming skills. This means that non-professional developers or business users can also participate in application development, thereby broadening the scope of developers.

[0050] 3. Improve flexibility: Low-code platforms usually provide a large number of customizable components and templates, which developers can quickly customize and adjust according to specific business needs. This flexibility enables applications to better meet changing business needs.

[0051] 4. Reduce maintenance costs: Low-code platforms are generally highly reusable and modular, which means that developers can maintain and update applications more easily. When business needs change, only specific components or modules need to be adjusted without rebuilding the entire application.

[0052] 5. Promote team collaboration: Low-code platforms usually have a visual development interface and team collaboration functions, making it easier for team members to share code, perform version control, and collaborate on development. This helps improve team productivity and communication efficiency.

[0053] 6. To solve the problems of business diversification, flexible development and long development cycle. Reduce the communication cost between the business team and the IT team and reduce the probability of production errors. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 , a flow chart of the present invention;

[0055] Figure 2 , Functional diagram of the edit form;

[0056] Figure 3 , dynamically render the page style diagram according to the form configured above. DETAILED DESCRIPTION

[0057] The present invention is further explained below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the following specific embodiments are only used to illustrate the present invention and are not used to limit the scope of the present invention. It should be noted that the words "front", "rear", "left", "right", "upper" and "lower" used in the following description refer to directions in the accompanying drawings, and the words "inner" and "outer" refer to directions toward or away from the geometric center of a specific component, respectively.

[0058] like Figure 1 As shown, a dynamic form implementation method based on a low-code development platform in this embodiment includes the following steps: Implement the following steps:

[0059] A. Construct the original data domain model and fields; the original data fields include the following types:

[0060] Text Single-line text, used to define data of line text type

[0061] Textarea paragraph text, used to define data of paragraph long text type RichText is used to define data that supports a variety of rich text formats, including but not limited to text styles, pictures, etc.

[0062] Select drop-down, used to define data of drop-down selection type, supports manual setting of drop-down options or binding dictionary for use

[0063] The Count calculation type is used to define the data that needs to be calculated and displayed in real time. It supports the configuration of multiple calculation rules.

[0064] Date is used to define date type data and supports multiple date formats

[0065] Checkbox is used to define data of checkbox type, and supports storing multiple values.

[0066] Radio is used to define data with a value of radio button type.

[0067] Link hyperlink text, used to define data of hyperlink text type, supports hyperlink click to jump

[0068] Time is used to define the data of the event type and supports multiple time formats

[0069] Image, used to define image type data

[0070] File file, used to define the data of the file type and support file size control

[0071] AutoSort is used to define data that needs to be automatically numbered according to the configuration rules.

[0072] Progress bar, used to define the data of the progress bar type

[0073] Relevance relationship, used to define data obtained through cross-business object configuration in PaaS scenario

[0074] Cite reference type, used to define data obtained through reference relationship association in PaaS scenario

[0075] B. Get or construct dynamic form data;

[0076] C. Define dynamic forms based on domain model field information and store them in a MYSQL database with a fixed data structure;

[0077] D. Perform business data entry operations according to the data structure, combine dynamic form definitions, and save the form business data.

[0078] Store in MYSQL and synchronize to ELAST I CSEARCH.

[0079] E. When business personnel query business data, they will query from ELAST I CSEARCH.

[0080] The original information of the dynamic form includes: tenant ID, application ID, model object ID, object ID, label ID, form view ID, form view name, additional options, enabled status, whether built-in, consistent with the details form, display order, creator, creation time, modifier, modification time

[0081] Tag information includes: tenant ID, application ID, model object ID, object ID, form view ID, tag ID, tag alias, enabled status, display order, creator, creation time, modifier, modification time

[0082] The tag details include: tenant ID, application ID, model object ID, object ID, form view ID, tag ID, field ID, field alias, required or not, default value, enabled status, display order, creator, creation time, modifier, modification time

[0083] 3. Design MYSQL data table:

[0084] Design MYSQL data tables to store the data structure, including at least seven tables: domain model table, field table, form information table, form label table, label field table and object business data table;

[0085] 4. Dynamic forms include the following steps:

[0086] 1. Determine whether it is a new operation or a creation operation. If it is a new operation, go to 2. If it is an update operation, go to 3.

[0087] 2. In the browser, based on the new operation, the domain model object labels are displayed. After selecting the label, select the field by selection, and drag the label to sort.

[0088] Then execute 4

[0089] 3. Read the form metadata, labels and fields from MYSQL, load them into memory, then display the original form data fields and update the field type rendering component style. Then execute 4

[0090] 4. Edit the form table, form label table and form label field table in the MYSQL database defined by the form metadata

[0091] 5. The association between business data and dynamic forms includes the following steps:

[0092] 1. Read the form metadata, labels and fields from MYSQL and load them into memory. Then, display the original data fields of the form and update the field type rendering component style.

[0093] 2. Fill in the actual business data according to the field type and properties (default value, validation rules, associated input), etc.

[0094] 3. The front end verifies the data format and sends it to the back end for processing after passing the verification.

[0095] 4. After the backend receives the data, it verifies the legitimacy of the data. After the verification is passed, it is saved to MYSQL and synchronized to ELAST I CSEARCH.

[0096] In step 5, when the business personnel access the data, the table unit information and field information acquisition module is used to obtain the form metadata information and field information from MYSQL and pass it to the form rendering module; the form definition processing module is used to save the table unit information and field information to the table unit information table and field information table of MYSQL; the business data acquisition module is used to obtain the form business data from ELAST I CSEARCH according to the form identifier and pass it to the form rendering module; the business data processing module is used to associate the business data with the dynamic form and store it in ELAST I CSEARCH; the form rendering module is used to combine the table unit information and field information with the business data to generate a corresponding form interface; the MYSQL database is used to persist the received information.

[0097] The technical means disclosed in the scheme of the present invention are not limited to the technical means disclosed in the above-mentioned implementation mode, but also include technical schemes composed of any combination of the above technical features.

Claims

1. A method for implementing a dynamic form based on a low-code development platform, characterized in that: The following steps are involved: Step 1: Construct the original data domain model and fields; Step 2: Get or construct dynamic form data; Step 3: Define dynamic forms based on domain model field information and store them in the MYSQL database with a fixed data structure; Step 4: According to the data structure, perform business data entry operations, combine dynamic form definitions, save the form business data to MYSQL and synchronize it to ELASTICSEARCH; Step 5: When business personnel query business data, they will query from ELASTICSEARCH.

2. According to a method for implementing a dynamic form based on a low-code development platform according to claim 1, it is characterized in that: In step 1: the original data field: contains the following types: Text: Single line text, used to define line text type data; Textarea: Paragraph text, used to define data of paragraph long text type; RichText: Rich text, used to define data that supports multiple rich text formats including but not limited to text styles, pictures, etc. Select: Drop-down, used to define data of drop-down selection type, supports manual setting of drop-down options or binding dictionary for use; Count: calculation type, used to define the data that needs to be calculated and displayed in real time, and supports the configuration of multiple calculation rules; Date: Date, used to define date type data, supports multiple date formats; Checkbox; Checkbox, used to define data with a checkbox type value, supporting the storage of multiple values; Radio: A radio button, used to define data whose value is a radio button type; Link; hyperlink text, used to define data of hyperlink text type, supports jumping by clicking on hyperlink; Time: Time, used to define the data of event type, supports multiple time formats; Image: Image, used to define the data of picture type; File: File, used to define the data of the file type and supports file size control; AutoSort: Automatic numbering, used to define data that needs to be automatically numbered according to the configuration rules; Progress: Progress bar, used to define the data of the progress bar type; Relevance: association relationship, used to define data obtained by cross-business object configuration in PaaS scenarios; Cite: reference type, used to define data obtained through reference relationships in PaaS scenarios.

3. According to a method for implementing a dynamic form based on a low-code development platform according to claim 1, it is characterized in that: In step 2: the original information of the dynamic form includes: tenant ID, application ID, model object ID, object ID, label ID, form view ID, form view name, additional options, enabled status, whether built-in, consistent with the details form, display order, creator, creation time, modifier, and modification time.

4. According to a method for implementing a dynamic form based on a low-code development platform according to claim 1, it is characterized in that: The tag information includes: tenant ID, application ID, model object ID, object ID, form view ID, tag ID, tag alias, enabled status, display order, creator, creation time, modifier, and modification time.

5. According to a method for implementing a dynamic form based on a low-code development platform according to claim 1, it is characterized in that: The tag details include: tenant ID, application ID, model object ID, object ID, form view ID, tag ID, field ID, field alias, whether required, default value, enabled status, display order, creator, creation time, modifier, and modification time.

6. According to a method for implementing a dynamic form based on a low-code development platform according to claim 1, it is characterized in that: Design MYSQL data table: store the data structure, including at least seven tables, domain model table, field table, form information table, form label table, label field table and object business data table.

7. According to a method for implementing a dynamic form based on a low-code development platform according to claim 1, it is characterized in that: The dynamic form execution in step 3 includes the following steps: s31, determine whether it is a new addition or a creation, if it is a new addition operation, execute s32. If it is an update operation, execute s33; s32. In the browser, according to the new operation, the domain model object label is displayed. After selecting the label, select the field by selecting it, and drag the label to sort it. Then execute 34; s33, read the form metadata, labels and fields from MYSQL, load them into memory, then display the original form data fields and update the field type rendering component style. Then execute s34; s34. Define the form table, form label table and form label field table in the MYSQL database with the edited form metadata.

8. A method for implementing a dynamic form based on a low-code development platform according to claim 1, characterized in that ; The association of business data with dynamic forms in step 4 includes the following steps: S41. Read the form metadata, labels and fields from MYSQL, load them into memory, then display the original data fields of the form and update the field type rendering component style; S42. Fill in actual business data according to field type and attributes; S43, the front end verifies the data format, and after passing the verification, sends it to the back end for processing; S44. After receiving the data, the backend verifies the legitimacy of the data. After passing the verification, it is saved in MYSQL and synchronized to ELASTICSEARCH.

9. A method for implementing a dynamic form based on a low-code development platform according to claim 1, characterized in that ; Step 5: When business personnel access data S51. Business personnel access the dynamic form page through the interface; S52. Query the form field data of the corresponding data and the data in ELASTICSEARCH through the access interface S53, filtering is performed based on the queried form field data and the data in ELASTICSEARCH to filter out data that does not exist in the form field; S54, returning to the interface to display page data.

Citation Information

Cited By

  • Guidance-based special disease database data model automatic construction method and system

    CN120631863A