Dynamic form construction method and device, equipment and storage medium
By analyzing user construction instructions to obtain data models and automatically generate dynamic forms, the problem of inefficient dynamic form construction in the existing technology is solved, and fast and accurate dynamic form construction is achieved.
Patent Information
- Application Number
- CN202411178399.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2024-11-22
AI Technical Summary
When existing low-code platforms build complex, multi-level dynamic forms, developers need to manually configure data sources, field mapping and form logic, resulting in long development time, insufficient accuracy and inefficiency.
By sending user construction instructions to the server, obtaining and analyzing the data model to obtain key attribute information, dynamic forms are automatically generated based on this information, including determining form controls and verification rules, realizing two-way data binding between form controls and data models, and automatically adjusting forms Structure and content.
Dynamic forms can be quickly generated without manual configuration, which improves construction efficiency and solves the problem of insufficient accuracy caused by manual operations.
Smart Images

Figure CN119002900A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of software development, and in particular to a dynamic form construction method, device, equipment and storage medium. Background Art
[0002] Currently, dynamic forms are generally built through low-code platforms. However, when dealing with dynamic forms corresponding to more complex businesses, existing low-code platforms require developers to manually configure data sources, field mappings, and form behavior logic. For complex and multi-level demand descriptions, developers often find it difficult to accurately understand and extract key information. When developers manually configure, it will lead to longer development time, and it is also prone to errors, lack of accuracy, and low efficiency. Summary of the invention
[0003] The present application provides a dynamic form construction method, apparatus, device and storage medium for automatically generating dynamic forms according to user needs, solving the problems of insufficient accuracy and low efficiency caused by manual operation.
[0004] In a first aspect, the present application provides a dynamic form construction method, which is applied to a client and includes:
[0005] Sending a user-triggered build instruction to a server, so that the server obtains a data model according to the build instruction and returns it to the client; wherein the build instruction includes user demand information;
[0006] Receiving the data model and parsing the data model to obtain key attribute information; wherein the key attribute information includes at least one field name, and a field type and constraint condition corresponding to each field name;
[0007] Determine to generate a dynamic form according to the at least one field name, and the field type and constraint conditions corresponding to each field name.
[0008] In one or more possible embodiments, determining to generate a dynamic form according to the at least one field name, and the field type and constraint condition corresponding to each field name includes:
[0009] Determine at least one corresponding form control based on the at least one field name and a field type corresponding to each field name;
[0010] Determining a validation rule corresponding to the at least one form control according to the constraint condition, so that the filled content in the at least one form control satisfies the constraint condition;
[0011] Determining to generate a dynamic form is performed according to the at least one form control, a validation rule corresponding to the at least one form control, and a corresponding preset control layout.
[0012] In one or more possible embodiments, the data model includes a database table structure and / or a data structure returned by an API.
[0013] In one or more possible embodiments, it further includes:
[0014] The data model is bidirectionally data-bound with the corresponding form control to determine the consistency of the data model and the corresponding form control.
[0015] In one or more possible embodiments, performing bidirectional data binding between the data model and the corresponding form control includes:
[0016] Setting a listener for the data model, determining that a callback function is triggered when the data model changes, and modifying the corresponding form control;
[0017] In response to a user's operation instruction or a periodic operation instruction, the form control changes, and the data model is modified accordingly.
[0018] In one or more possible embodiments, it further includes:
[0019] In response to an information extension instruction triggered by a user, the key attribute information and the user's historical demand information are sent to the server, so that the server obtains the extended attribute information according to the key attribute information and the user's historical demand information and returns it to the client;
[0020] The extended attribute information is received, and according to the extended attribute information, the at least one field name, and the field type and constraint conditions corresponding to each field name, a dynamic form is generated.
[0021] In a second aspect, the present application provides a dynamic form construction method, which is applied to a server and includes:
[0022] Receiving a construction instruction triggered by a user, and acquiring a data model according to the construction instruction; wherein the construction instruction includes user demand information;
[0023] The data model is sent to a client, so that the client generates a dynamic form according to the data model.
[0024] In one or more possible embodiments, the data model is obtained in the following manner:
[0025] In response to a building instruction triggered by a user, the database is queried and / or an API interface is called to obtain a data model including a database table structure and / or a data structure returned by the API.
[0026] In a third aspect, the present application provides a dynamic form construction device, which is applied to a client, and the device includes:
[0027] A construction instruction sending module, used to send a construction instruction triggered by a user to a server, so that the server obtains a data model according to the construction instruction and returns it to the client; wherein the construction instruction includes user demand information;
[0028] An information acquisition module, used to receive the data model and parse the data model to obtain key attribute information; wherein the key attribute information includes at least one field name, and a field type and constraint condition corresponding to each field name;
[0029] The form generation module is used to determine to generate a dynamic form according to the at least one field name, and the field type and constraint conditions corresponding to each field name.
[0030] In a fourth aspect, the present application provides a dynamic form construction device, which is applied to a server, and the device includes:
[0031] A construction instruction receiving module, used to receive a construction instruction triggered by a user, and obtain a data model according to the construction instruction; wherein the construction instruction includes user demand information;
[0032] The data model sending module is used to send the data model to the client so that the client generates a dynamic form according to the data model.
[0033] In a fifth aspect, the present application provides a dynamic form construction device, the device comprising:
[0034] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method as described in any one of the first aspect or the second aspect.
[0035] In a sixth aspect, the present application provides a storage medium storing a computer program for causing a computer to execute a method as described in any one of the first aspect or the second aspect.
[0036] According to a dynamic form construction method, device, equipment and storage medium provided in the present application, dynamic forms can be automatically constructed according to the user's construction instructions without the need for manual configuration by developers, thereby improving the efficiency of dynamic form construction and solving the problem of insufficient accuracy caused by manual operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application, and do not constitute an improper limitation on the present application.
[0038] Figure 1 A flowchart of a dynamic form construction on a client provided according to an embodiment;
[0039] Figure 2 A flowchart of a dynamic form construction on a server provided according to an embodiment;
[0040] Figure 3 A diagram of a device module on a client provided according to an embodiment;
[0041] Figure 4 A device module diagram of a server provided according to an embodiment;
[0042] Figure 5 A module diagram of a dynamic form construction device provided according to an embodiment;
[0043] Figure 6 A module diagram of a storage medium provided according to an embodiment. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0045] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0046] Furthermore, in the description of the embodiments of the present application, unless otherwise specified, “ / ” means or. For example, A / B can mean A or B. The “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.
[0047] The following is an introduction to the professional terms involved in this application:
[0048] Dynamic forms: Dynamic forms refer to forms whose structure, fields, validation rules, etc. can be changed as needed. Unlike traditional static forms, dynamic forms can display different field combinations as needed, and even the content and layout of the form can be customized by the user. This flexibility makes dynamic forms very useful in various application scenarios, especially those that need to quickly adapt to changes or meet different user needs.
[0049] Low-code platform: A low-code platform is a development tool that allows developers to design and build applications through a graphical interface and pre-built code blocks rather than traditional manual programming. This development method can significantly reduce development time and costs while improving development efficiency and quality. Low-code platforms usually provide rich component libraries and templates, allowing developers to quickly build full-featured applications.
[0050] The object model uses the concepts of objects and classes to represent data and the relationship between data. Each object represents a data entity, and the relationship between objects is represented by references. In dynamic form construction, the object model can be used to build more complex form structures, such as nested forms or forms with inheritance relationships. The object model allows developers to treat form data as object instances and operate on data through the properties and methods of the object.
[0051] JSON (JavaScript Object Notation) and XML (Extensible Markup Language) are two commonly used data exchange formats. They are also often used as the representation of data models. In dynamic form construction, JSON / XML models can be used to define the structure and data format of the form. The fields, data types, default values, etc. of the form can all be described in the form of JSON / XML, which facilitates the serialization and deserialization of data.
[0052] The graph model uses a graph to represent the relationship between data. Nodes represent data entities, and edges represent the relationship between entities. Although the graph model is not a mainstream data model representation in dynamic form construction, it can be used to represent complex relationships between form data. For example, in some application scenarios, form data may involve associations between multiple entities. In this case, the graph model can be used to clearly represent these relationships. Developers can also customize the data model according to actual needs.
[0053] The construction of existing dynamic forms is generally processed through a low-code platform, which requires developers to manually configure data sources, field mapping, and form behavior logic, etc. For complex, multi-level demand descriptions, it is often difficult to accurately understand and provide key information, which leads to various problems after the dynamic form is built. In addition, since the developer operates manually, the development time will be longer. For dynamic forms with higher complexity, the probability of error in manual configuration is also relatively high. Based on the above problems, the present application provides a dynamic form construction method, device, equipment and storage medium, which are used to realize automatic construction of dynamic forms according to the user's construction instructions, without the need for developers to manually configure, thereby improving the efficiency of dynamic form construction and solving the problem of insufficient accuracy caused by manual operation.
[0054] Example 1
[0055] This application provides a dynamic form construction method, which is applied to the client, such as Figure 1 As shown, including:
[0056] Step 101, sending a user-triggered build instruction to a server, so that the server obtains a data model according to the build instruction and returns it to the client; wherein the build instruction includes user demand information;
[0057] In one or more possible embodiments, the above-mentioned construction instructions include user demand information, for example, the user's demand is to count the current address information of employees of Company A for the purpose of sending year-end benefits; the above-mentioned client sends the user's demand information to the server, and the server obtains a data model based on the user's demand information, and sends the obtained data model to the client. The above-mentioned data model includes a database table structure and / or a data structure returned by an API. For example, the above-mentioned data model can be a relational model, which is a common model in a database system. A table is used to represent the relationship between data and data. The relational model constructs a data model by defining fields and records in the form. For example, a user registration form may include fields such as user name, password, and email address, and the data submitted by each user forms a record; the fields are placed in the columns of the table and the records are placed in the corresponding rows of the table to generate a data model; in addition, the data model can also be an object model, a JSON / XML model, a graph model, and a custom model, which are not listed here one by one.
[0058] Step 102, receiving the data model and parsing the data model to obtain key attribute information; wherein the key attribute information includes at least one field name, and a field type and constraint condition corresponding to each field name;
[0059] In one or more possible embodiments, a data model is received and parsed to obtain key attribute information, wherein the key attributes include at least one field name, and a field type and constraints corresponding to each field name. For example, the field names include name, gender, contact information, current address, and welfare options, etc. Then, the field type corresponding to the name field should be text, and the corresponding constraints can be Chinese characters or no constraints. The field type corresponding to the contact information is a number, and the constraint is that the number of digits must be 11 digits, etc. Other examples are not listed and can be adjusted according to actual applications.
[0060] Step 103: Determine to generate a dynamic form according to the at least one field name, and the field type and constraint conditions corresponding to each field name.
[0061] In one or more possible embodiments, the generation of a dynamic form is determined according to the at least one field name, the field type and the constraint conditions corresponding to each field name, specifically: determining at least one corresponding form control based on the at least one field name and the field type corresponding to each field name; determining the validation rule corresponding to the at least one form control according to the constraint conditions, so that the filled content in the at least one form control satisfies the constraint conditions; determining the generation of a dynamic form according to the at least one form control, the validation rule corresponding to the at least one form control and the corresponding preset control layout; for example, according to the name field and the field type corresponding to the name field, determining that the corresponding form control is a text box, determining the text When the constraint condition corresponding to the box is none, it means there is no validation rule. When the constraint condition corresponding to the text box is determined to be Chinese characters, the validation rule is that only Chinese characters can be filled in the above text box; according to the contact information field, the corresponding field type is determined to be text, then the corresponding form control is a number box, and the constraint condition corresponding to the contact information is an 11-digit number, that is to say, when entering in the text box corresponding to the contact information, only 11 digits can be entered, and 10 digits and Chinese characters cannot be entered; according to the gender field and the corresponding field type, the form control is determined to be a selector, and the constraint condition is that only male or female can be selected; the above description is to build the current address information of employees of Company A, which is used for the dynamic form of sending year-end benefits; other situations are not listed one by one.
[0062] In one or more possible embodiments, it also includes: bidirectional data binding the above-mentioned data model and the corresponding form control to determine the consistency of the above-mentioned data model and the corresponding form control; specifically: setting a listener for the above-mentioned data model, determining that a callback function is triggered when the above-mentioned data model changes, and modifying the corresponding form control; in response to the user's operation instruction or periodic operation instruction, the above-mentioned form control changes, and the above-mentioned data model is modified accordingly; for example, the contact information in the data model is modified to the ID card number, and after the listener determines that the data model is modified, the callback function is triggered, and the form control corresponding to the contact information in the dynamic form is modified to the ID card number, and the field type and constraint conditions are modified accordingly to ensure the consistency of the data model and the corresponding form control; when it is determined that the form control has changed, for example, the form control for gender is deleted, then the data model will also delete the field name, field type and constraint conditions corresponding to gender in the data model according to the operation of deleting the gender form control, to ensure the consistency of the data model and the corresponding form control.
[0063] In one or more possible embodiments, it also includes: in response to the information extension instruction triggered by the user, sending the above-mentioned key attribute information and the user's historical demand information to the above-mentioned server, so that the above-mentioned server obtains the extended attribute information according to the above-mentioned key attribute information and the user's historical demand information and returns it to the above-mentioned client; receiving the above-mentioned extended attribute information, and determining to generate a dynamic form according to the above-mentioned extended attribute information, the above-mentioned at least one field name, and the field type and constraint conditions corresponding to each field name; for example, the key attribute information includes name, field type and constraint conditions corresponding to the name field, gender, field type and constraint conditions corresponding to the gender field, contact information, field type and constraint conditions corresponding to the contact information, current address, field type and constraint conditions corresponding to the current address, the user's historical demand information is to obtain the identity information of employees of Company A, and the identity information includes the employee's ID number, then the extended attribute information is the field name of the employee's ID number, and the field type and constraint conditions corresponding to the ID number, and finally determining to generate a dynamic form according to the extended attribute information, the above-mentioned at least one field name, and the field type and constraint conditions corresponding to each field name.
[0064] Example 2
[0065] This application provides a dynamic form construction method, which is applied to the server, such as Figure 2 As shown, including:
[0066] Step 201, receiving a construction instruction triggered by a user, and obtaining a data model according to the construction instruction; wherein the construction instruction includes user demand information;
[0067] Step 202: Send the data model to the client, so that the client generates a dynamic form according to the data model.
[0068] In one or more possible embodiments, the above-mentioned construction instruction includes the user's demand information. According to the user's demand information, the database is queried and / or the API interface is called to obtain a data model including the database table structure and / or the data structure returned by the API. The above-mentioned data model can be a relational model, an object model, a JSON / XML model, a graph model, and a custom model. The specific implementation method is the same as that in Example 1.
[0069] Example 3
[0070] This application provides a dynamic form construction device, which is applied to the client, such as Figure 3 As shown, including:
[0071] The construction instruction sending module 301 is used to send the construction instruction triggered by the user to the server, so that the server obtains the data model according to the construction instruction and returns it to the client; wherein the construction instruction contains the user's demand information;
[0072] The information acquisition module 302 is used to receive the data model and parse the data model to obtain key attribute information; wherein the key attribute information includes at least one field name, and a field type and constraint condition corresponding to each field name;
[0073] The form generation module 303 is used to determine to generate a dynamic form according to the at least one field name, and the field type and constraint conditions corresponding to each field name.
[0074] In one or more possible embodiments, the form generation module 303 is specifically used to: determine at least one corresponding form control based on the at least one field name and the field type corresponding to each field name;
[0075] Determine a validation rule corresponding to the at least one form control according to the constraint condition, so that the filled content in the at least one form control satisfies the constraint condition;
[0076] According to the at least one form control, the validation rule corresponding to the at least one form control, and the corresponding preset control layout, it is determined to generate a dynamic form.
[0077] In one or more possible embodiments, a data binding module 304 is further included, which is used to perform bidirectional data binding between the above data model and the corresponding form control, so as to determine the consistency between the above data model and the corresponding form control.
[0078] In one or more possible embodiments, the data binding module 304 is specifically used to: set a listener for the above data model, determine that a callback function is triggered when the above data model changes, and modify the corresponding form control;
[0079] In response to a user's operation instruction or a periodic operation instruction, the form controls mentioned above change, and the data model is modified accordingly.
[0080] In one or more possible embodiments, an extension module 305 is further included, which is used to send the key attribute information and the user's historical demand information to the server in response to the information extension instruction triggered by the user, so that the server obtains the extended attribute information according to the key attribute information and the user's historical demand information and returns it to the client;
[0081] The extended attribute information is received, and according to the extended attribute information, the at least one field name, and the field type and constraint conditions corresponding to each field name, a dynamic form is generated.
[0082] Example 4
[0083] The present application provides a dynamic form construction device, which is applied to a server, such as Figure 4 As shown, including:
[0084] The construction instruction receiving module 401 is used to receive the construction instruction triggered by the user and obtain the data model according to the construction instruction; wherein the construction instruction includes the user's demand information;
[0085] The data model sending module 402 is used to send the data model to the client, so that the client generates a dynamic form according to the data model.
[0086] Example 5
[0087] The present application provides a dynamic form construction device, comprising at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned dynamic form construction method.
[0088] like Figure 5 As shown, the device includes a processor 501, a memory 502, a communication interface 503 and a bus 504. The processor 501, the memory 502 and the communication interface 503 are connected to each other via the bus 504.
[0089] The processor 501 is used to read and execute instructions in the memory 502, so that at least one processor can execute the method for constructing a dynamic form provided in the above embodiment.
[0090] The memory 502 is used to store various instructions and programs of the method for constructing a dynamic form provided in the above embodiment.
[0091] The bus 504 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0092] The processor 501 may be a central processing unit (CPU), a network processor (NP), a graphic processing unit (GPU), or any combination of CPU, NP, and GPU. It may also be a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0093] Example 6
[0094] In addition, the present application also provides a computer-readable storage medium, such as Figure 6 As shown, the computer storage medium stores a computer program, and the computer program is used to enable a computer to execute any one of the methods in the above embodiments.
[0095] The memory may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 601 and / or a cache memory 602 , and may further include a read-only memory (ROM) 603 .
[0096] The memory may also include a program / utility 605 having a set (at least one) of program modules 604, such program modules 604 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0097] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0098] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0099] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0100] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0101] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A dynamic form construction method, characterized in that: Applied to the client, including: Sending a user-triggered build instruction to a server, so that the server obtains a data model according to the build instruction and returns it to the client; wherein the build instruction includes user requirement information; Receiving the data model and parsing the data model to obtain key attribute information; wherein the key attribute information includes at least one field name, and a field type and constraint condition corresponding to each field name; Determine to generate a dynamic form according to the at least one field name, and the field type and constraint conditions corresponding to each field name.
2. The method according to claim 1, characterized in that The step of determining to generate a dynamic form according to the at least one field name, and the field type and constraint conditions corresponding to each field name, comprises: Determine at least one corresponding form control based on the at least one field name and a field type corresponding to each field name; Determining a validation rule corresponding to the at least one form control according to the constraint condition, so that the filled content in the at least one form control satisfies the constraint condition; Determining to generate a dynamic form is performed according to the at least one form control, a validation rule corresponding to the at least one form control, and a corresponding preset control layout.
3. The method according to claim 1, characterized in that The data model includes a database table structure and / or a data structure returned by an API.
4. The method according to claim 2, characterized in that: Also includes: The data model is bidirectionally data-bound with the corresponding form control to determine the consistency of the data model and the corresponding form control.
5. The method according to claim 4, characterized in that The step of performing bidirectional data binding between the data model and the corresponding form control includes: Setting a listener for the data model, determining that a callback function is triggered when the data model changes, and modifying the corresponding form control; In response to a user's operation instruction or a periodic operation instruction, the form control changes, and the data model is modified accordingly.
6. The method according to claim 1, characterized in that Also includes: In response to an information extension instruction triggered by a user, the key attribute information and the user's historical demand information are sent to the server, so that the server obtains the extended attribute information according to the key attribute information and the user's historical demand information and returns it to the client; The extended attribute information is received, and according to the extended attribute information, the at least one field name, and the field type and constraint conditions corresponding to each field name, a dynamic form is determined to be generated.
7. A dynamic form construction method, characterized in that: Applicable to servers, including: Receiving a construction instruction triggered by a user, and acquiring a data model according to the construction instruction; wherein the construction instruction includes user demand information; The data model is sent to a client, so that the client generates a dynamic form according to the data model.
8. The method according to claim 7, characterized in that The data model is obtained in the following way: In response to a building instruction triggered by a user, the database is queried and / or an API interface is called to obtain a data model including a database table structure and / or a data structure returned by the API.
9. A dynamic form construction device, characterized in that: Applied to a client, the device comprises: A construction instruction sending module, used to send a construction instruction triggered by a user to a server, so that the server obtains a data model according to the construction instruction and returns it to the client; wherein the construction instruction includes user demand information; An information acquisition module, used to receive the data model and parse the data model to obtain key attribute information; wherein the key attribute information includes at least one field name, and a field type and constraint condition corresponding to each field name; The form generation module is used to determine to generate a dynamic form according to the at least one field name, and the field type and constraint conditions corresponding to each field name.
10. A dynamic form construction device, characterized in that: Applied to a server, the device comprises: A construction instruction receiving module, used to receive a construction instruction triggered by a user, and obtain a data model according to the construction instruction; wherein the construction instruction includes user demand information; The data model sending module is used to send the data model to the client so that the client generates a dynamic form according to the data model.
11. A dynamic form construction device, characterized in that: The device comprises: At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor so that the at least one processor can execute the method as described in any one of claims 1-6 or 7-8.
12. A storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to enable a computer to execute the method according to any one of claims 1-6 or 7-8.
