Form construction method, device, storage medium and electronic device
By identifying and processing the configuration information and location of form elements, and using standard construction templates or blank form layouts to build target entity forms, the problem of form construction complexity in low-code platforms is solved, simplification and convenience of form construction are achieved, and the platform is improved. penetration rate.
Patent Information
- Application Number
- CN202010995495.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-21
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-09-21
AI Technical Summary
In low-code platforms, it is difficult for business personnel to quickly abstract forms and processes into specific system applications, resulting in complex form construction and low popularity.
By obtaining multiple instance forms, identifying form elements and their configuration information and locations, processing element configuration information and locations of the same category, building the target entity form, and using standard construction templates or blank form layout structures for form construction to achieve simplified construction of forms. .
It realizes the simplicity and convenience of form construction, uses existing instance forms to build target entity forms, reduces the complexity of construction, and improves the popularity of low-code platforms.
Smart Images

Figure CN112100993B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computers, and in particular relates to a form construction method, device, storage medium and electronic equipment. Background Art
[0002] AI-based analysis technologies are becoming increasingly mature, while the demand for information technology, driven by the convergence of industrialization and information technology, is exploding. Behind every electronic form lies a legacy form and flowchart. The original purpose of information technology was to electronically manage existing forms and processes. However, when using low-code platforms, business personnel face challenges in quickly abstracting these forms and processes into specific system applications, contributing to the low penetration of low-code platforms. Consequently, existing form construction suffers from complexity. Summary of the Invention
[0003] The present invention provides a form construction method, device, storage medium and electronic device, which can effectively alleviate the problem of complex form construction in the prior art.
[0004] In a first aspect, the present invention provides a form construction method, the method comprising:
[0005] Get multiple instance forms;
[0006] a plurality of first table elements obtained by identifying each of the instance forms and element configuration information, category information, and position corresponding to each first table element;
[0007] Processing a plurality of element configuration information corresponding to a plurality of first table elements belonging to the same category among the plurality of first table elements to obtain target configuration information corresponding to the first table elements of each category, and processing a plurality of positions corresponding to a plurality of first table elements belonging to the same category among the plurality of first table elements to obtain a target position for each first table element;
[0008] A target entity form is constructed based on each first table element and the target configuration information and target position of each first table element; or, a target entity form is constructed based on each first table element and the target configuration information and target position of each first table element, as well as multiple second table elements included in the form layout structure identified for the blank form and the position of the field of each second table element.
[0009] Optionally, in the above form construction method, constructing a target entity form according to each first table element and target configuration information and target position of each first table element includes:
[0010] Obtaining a standard construction template, wherein the standard construction template is provided with a plurality of fields for storing a plurality of table elements;
[0011] The data input type of each field is configured according to the position information of each first form element, the configuration information of each first table element and the position of each field.
[0012] Optionally, in the above-mentioned form construction method, constructing a target entity form based on each first table element and its target configuration information and target position, as well as multiple second table elements included in the form layout structure identified for the blank form and the position of the fields of each second table element includes:
[0013] Acquire first target table elements respectively matching each of the second table elements from a plurality of the first table elements;
[0014] The target configuration information of each first target table element is configured as the configuration information of the field of the second table element corresponding to the first target table element in the form layout structure to complete the construction of the target entity form.
[0015] Optionally, in the above form construction method, the method further includes:
[0016] Publishing the target entity form to input data into different fields of the published form;
[0017] Check whether the configuration information corresponding to the data matches the configuration information of the field, and generate a prompt message if they do not match.
[0018] Optionally, in the above form construction method, the method further includes:
[0019] Obtaining adjustment information for configuration information corresponding to a target table element in the target entity form;
[0020] Adjust the configuration information of the target table element according to the adjustment information.
[0021] Optionally, in the above form construction method, the multiple first table elements obtained by identifying each of the instance forms and the element configuration information, category information, and position corresponding to each first table element include:
[0022] A neural network recognition model is used to identify each of the instance forms to obtain multiple first table elements and element configuration information, category information and position corresponding to each first table element.
[0023] Optionally, in the above-mentioned form construction method, the element configuration information includes UI interface configuration type information, and the UI interface configuration type information includes one or more of text input, read-only, default value, drop-down selection, long text and / or approval node.
[0024] In a second aspect, the present invention provides a form construction device, comprising:
[0025] Acquisition module, used to obtain multiple instance forms;
[0026] an identification module, configured to identify each of the instance forms to obtain a plurality of first table elements and element configuration information, category information, and position corresponding to each first table element;
[0027] a processing module, configured to process a plurality of element configuration information corresponding to a plurality of first table elements belonging to the same category among the plurality of first table elements to obtain target configuration information corresponding to the first table elements of each category, and to process a plurality of positions corresponding to a plurality of first table elements belonging to the same category among the plurality of first table elements to obtain a target position for each first table element;
[0028] A construction module is used to construct a target entity form based on each first table element and the target configuration information and target position of each first table element, and / or the multiple second table elements included in the form layout structure identified for the blank form and the position of the field of each second table element.
[0029] In a third aspect, the present invention provides a storage medium storing a computer program, wherein the computer program implements the above-mentioned form construction method when executed by one or more processors.
[0030] In a fourth aspect, the present invention provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the form construction method as described above is executed.
[0031] The present invention provides a form construction method, device, storage medium and electronic device, which respectively identify multiple instance forms to obtain multiple first table elements and element configuration information, type information and position corresponding to each first table element, and process the multiple element configuration information corresponding to multiple first table elements belonging to the same category in the multiple first table elements to obtain target configuration information corresponding to the first table elements of each category, and process the multiple positions corresponding to multiple first table elements belonging to the same category in the multiple first table elements to obtain the target position of each first table element, thereby realizing the construction of a target entity form based on each first table element and the target configuration information and target position of each first table element, and / or the multiple second table elements included in the form layout structure identified for a blank form and the position of the field of each second table element, thereby realizing the construction of the target entity form using the existing instance form, and only using the configuration information and target position of the first table elements obtained in the instance form during the construction process, so that the construction method can be simple and convenient. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The accompanying drawings are used to provide a further understanding of the technical solution of this application or the prior art and constitute a part of the specification. Among them, the drawings that express the embodiments of this application are used together with the embodiments of this application to explain the technical solution of this application, but do not constitute a limitation of the technical solution of this application.
[0033] Figure 1 A flowchart of a form construction method provided in an embodiment of the present application.
[0034] Figure 2 Another flowchart of a form construction method provided in an embodiment of the present application.
[0035] Figure 3 Another flowchart of a form construction method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0036] The following will describe the implementation methods of the present invention in detail with reference to the accompanying drawings and examples, so that the implementation process of how the present invention applies technical means to solve technical problems and achieve corresponding technical effects can be fully understood and implemented accordingly. The embodiments of this application and the various features in the embodiments can be combined with each other without conflict, and the technical solutions formed are all within the scope of protection of the present invention.
[0037] In addition, the steps shown in the flowchart of the accompanying drawings can be executed in a computer such as a set of computer-executable instructions. Also, although a logical order is shown in the flowchart, in some cases, the steps shown or described can be performed in a different order than here.
[0038] Second embodiment
[0039] See also Figure 1 This embodiment provides a form construction method, which can be executed by one or more processors and implements the following steps when executed by one or more processors:
[0040] Step S110: Acquire multiple instance forms.
[0041] Step S120: Identify each of the instance forms to obtain a plurality of first table elements and element configuration information, category information, and position corresponding to each first table element.
[0042] Step S130: Process the multiple element configuration information corresponding to the multiple first table elements belonging to the same category among the multiple first table elements to obtain the target configuration information corresponding to the first table elements of each category, and process the multiple positions corresponding to the multiple first table elements belonging to the same category among the multiple first table elements to obtain the target position of each first table element.
[0043] Step S140: Constructing a target entity form based on each first table element and the target configuration information and target position of each first table element; or, constructing a target entity form based on each first table element and the target configuration information and target position of each first table element, as well as the multiple second table elements included in the form layout structure identified for the blank form and the position of the field of each second table element.
[0044] This application adopts the above steps to realize the construction of the target entity form using a blank form and an existing instance form. During the construction process, only the configuration information and target position of the first table element obtained in the instance form need to be used, as well as the layout structure of the blank form, so that the construction method can be simple and convenient.
[0045] Specifically, in step S110, the method of obtaining multiple instance forms can be to obtain multiple pre-stored instance forms from a preset database, or to receive an entity form sent by an external device, or to scan multiple entity forms or obtain multiple entity forms based on user input. There is no specific limitation here, and it can be set according to actual needs.
[0046] In step S120, each of the example forms may be identified by using a neural network model to identify the example forms, thereby obtaining the elements included in each example form, as well as the location and configuration information of the table elements on the form. Alternatively, the example form may be analyzed using an analysis model to obtain the elements included in each form, the location and configuration information of each element, etc. After identifying the table element, the type corresponding to the table element may be searched from a preset table of correspondences between table elements and types. This is not specifically limited here, and may be set according to actual needs.
[0047] The element configuration information includes UI interface configuration type information, and the UI interface configuration type information includes one or more of text input, read-only, default value, drop-down selection, long text and / or approval node.
[0048] Table elements can be name, gender, age, work number, item, ID card, verification information, etc. The corresponding types of table elements can be parameter class, text class, option class, etc., which can be set according to actual needs. No specific restrictions are made here.
[0049] In step S130, the element configuration information corresponding to the multiple first table elements belonging to the same category may be processed by performing statistical analysis on the configuration information corresponding to the table elements or by using mathematical calculations to obtain the final configuration information. For example, when the multiple first table elements belonging to the same category are first table elements of multiple different ages, since the multiple ages have different values, the corresponding target configuration information can be obtained as a numerical range, such as a numerical range of 0-100, by using statistical analysis. When the multiple first table elements belonging to the same category are gender, since gender is only male or female, the corresponding configuration information is information such as text or characters indicating male or female. Therefore, the target configuration information obtained by processing the multiple first table elements includes identifiers or text for indicating male or female.
[0050] Furthermore, usually, when similar table elements are entered in an entity form, the formats are usually set similarly. Therefore, by performing statistical analysis on the positions of the first table elements belonging to the same category, such as processing by calculating the mean or removing the mode, the final target position of the first table element can be obtained.
[0051] In step S140, the method of identifying the blank form to obtain the form layout structure can be to use an image recognition model to identify the picture format form to obtain the form layout structure, or to use a preset analysis method or extraction method to extract the blank form in document format to obtain the form layout structure. No specific limitation is made here, and it can be set according to actual needs.
[0052] In this embodiment, in the above-mentioned step S140: constructing a target entity form according to each first table element and the target configuration information and target position of each first table element, including: obtaining a standard construction template, wherein the standard construction template is provided with multiple fields for storing multiple table elements; configuring the data input type of each field according to the position information of each first form element, the configuration information of each first table element and the position of each of the fields.
[0053] In this embodiment, in the above-mentioned step S140: constructing a target entity form based on each first table element and the target configuration information and target position of each first table element, as well as the multiple second table elements included in the form layout structure identified for the blank form and the position of the field of each second table element, including: obtaining first target table elements that match each second table element respectively from the multiple first table elements; configuring the target configuration information of each first target table element as the configuration information of the field of the second table element corresponding to the first target table element in the form layout structure, so as to complete the construction of the target entity form.
[0054] By adopting the above-mentioned step S140, it is possible to choose to simulate construction based on a blank form or to use a pre-existing standard construction template to build a form according to actual needs. In the simulated construction, the physical form can be simulated to construct a form with absolute element positions, and the standard construction can be used to construct a form according to the system-optimized layout.
[0055] It should be noted that during the form construction process, an entity table can be created in the database based on the identified element fields. For example, table fields may include ID (int), Name (string), and desc (text). The number of fields depends on the identified form elements. During the form construction process, a standard build can be performed. If a standard build is selected, the form is constructed using standard templates. Templates include single-body, multi-body, and basic tables. The templates have a corresponding template structure (one row and three columns). The templates can be edited and the layout (left-right structure, top-bottom structure) can be modified. During a simulated build, the target entity form is constructed based on the target configuration information and target position of the first table element and the position of the field of the second table element, thus achieving UI layout and construction. For example, for the username field, the recorded information is (coordinates 30px and 20px from the top left corner). The identified field type (text, drop-down, date) is then rendered into different tags (for example, if the front-end framework supports Vue, i-view is used for rendering).
[0056] Specifically, the element configuration information corresponding to the first element obtained by identifying multiple instance forms can also be color and font size; the category information can be object category (text, input box, drop-down box, multi-line rich text, button), field type (database field type is mainly varchar, int, decimal, etc. in the relational database SQL server). After the identification is completed, the first element and the element configuration information, category information and location information corresponding to the first element can be stored in the database respectively, so that the database storage includes the main form information (form ID, form name, form creation time, form recognition time), etc. The information of the form details table includes (form ID, element ID, element name, element location coordinates, color, font size, object category, field type, field length, etc.).
[0057] In addition, when building a target entity form, the user can display the identified drop-down box as a drop-down control in the drawing window, and when receiving a user touch command on the drop-down control, the value of the data source bound to the control is displayed in the data source field.
[0058] Please refer to Figure 2After completing the form, you can preview it so that users can adjust the form according to their actual needs. For example, if the form layout does not meet the requirements, you can adjust it. The text type can be changed to a drop-down selection. You can also modify the default value of the field, the maximum and minimum values of the field, and so on.
[0059] In this embodiment, the method further includes:
[0060] Step S150: Acquire adjustment information for configuration information corresponding to a target table element in the target entity form.
[0061] Step S160: Adjust the configuration information of the target table element according to the adjustment information.
[0062] Please refer to Figure 3 In order to detect the form after it is published and to publish and test the form, and to detect the usability of the form and make adjustments through publishing and testing, in this embodiment, the method further includes:
[0063] Step S170: Publish the target entity form to input data into different fields in the published form.
[0064] Step S180: Detect whether the configuration information corresponding to the data matches the configuration information of the field, and generate a prompt message if they do not match.
[0065] Example 2
[0066] This embodiment provides a form construction device, including an acquisition module, an identification module, a processing module, and a construction module.
[0067] The acquisition module is used to acquire multiple instance forms.
[0068] For a detailed description of the acquisition module, reference may be made to the detailed description of step S110 in the aforementioned method embodiment, that is, step S110 may be executed by the acquisition module.
[0069] The identification module is configured to identify each of the instance forms to obtain a plurality of first table elements and element configuration information, category information, and position corresponding to each first table element.
[0070] For a detailed description of the identification module, reference may be made to the detailed description of step S120 in the aforementioned method embodiment. That is, step S120 may be executed by the identification module.
[0071] The processing module is used to process multiple element configuration information corresponding to multiple first table elements belonging to the same category among multiple first table elements to obtain target configuration information corresponding to the first table elements of each category, and to process multiple positions corresponding to multiple first table elements belonging to the same category among multiple first table elements to obtain the target position of each first table element.
[0072] For a detailed description of the processing module, reference may be made to the detailed description of step S130 in the aforementioned method embodiment, that is, step S130 may be executed by the processing module.
[0073] The construction module is used to construct a target entity form based on each first table element and the target configuration information and target position of each first table element, and / or the multiple second table elements included in the form layout structure identified for the blank form and the position of the field of each second table element.
[0074] For the description of the construction module, reference may be made to the detailed description of step S140 in the aforementioned method embodiment, that is, step S140 may be executed by the construction module.
[0075] Example 3
[0076] This embodiment provides a storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a disk, an optical disk, a server, an App application store, etc., on which a computer program is stored. When the computer program is executed by one or more processors, the form construction method of embodiment 1 can be implemented.
[0077] The specific implementation process of the above method steps can be found in Example 1, and this embodiment will not be repeated here.
[0078] Example 4
[0079] An embodiment of the present application provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory. When the computer program is executed by the processor, the form construction method described in the first embodiment is implemented.
[0080] It can be understood that the electronic device may further include a multimedia component, an input / output (I / O) interface, and a communication component.
[0081] The processor is used to execute all or part of the steps in the form construction method in Example 1. The memory is used to store various types of data, which may include instructions of any application or method in the electronic device, as well as application-related data.
[0082] The processor can be an application specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a controller, a microcontroller, a microprocessor or other electronic components, and is used to execute the form construction method in the above embodiment 1.
[0083] The memory can be implemented by any type of volatile or non-volatile memory device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0084] In the several embodiments provided in this application, it should be understood that the disclosed method can also be implemented in other ways. The embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the possible implementation architecture, functions and operations of the methods and computer program products according to multiple embodiments of the application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, program segment or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or can be implemented using a combination of dedicated hardware and computer instructions.
[0085] The foregoing is merely an embodiment of the present application and is not intended to limit the scope of protection of the present application. Various modifications and variations are possible for those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included within the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined or explained in subsequent figures.
[0086] It should also be noted that the above is only a specific embodiment of the present application, but the content described is only an embodiment adopted to facilitate understanding of the present invention and is not intended to limit the present invention. Any person skilled in the art can make any modifications and changes in the form and details of implementation within the technical scope disclosed in this application without departing from the spirit and scope disclosed in the present invention, and any changes or replacements that can be easily thought of should be included in the scope of protection of this application. Therefore, the scope of protection of this application shall be based on the scope of protection of the claims.
Claims
1. A form construction method, characterized in that: The method comprises: Get multiple instance forms; A plurality of first table elements obtained by identifying each of the instance forms and element configuration information, category information and position corresponding to each first table element; Processing a plurality of element configuration information respectively corresponding to a plurality of first table elements belonging to the same category among the plurality of first table elements to obtain target configuration information corresponding to the first table elements of each category, and processing a plurality of positions respectively corresponding to a plurality of first table elements belonging to the same category among the plurality of first table elements to obtain a target position of each first table element; Building a target entity form according to each first table element and target configuration information and target position of each first table element; in, The step of constructing a target entity form according to each first table element and the target configuration information and target position of each first table element comprises: Obtaining a standard construction template, wherein the standard construction template is provided with a plurality of fields for storing a plurality of table elements; According to the position information of each first form element, the configuration information of each first table element and the position of each field, the target configuration information of each field is configured to obtain a target entity form; The processing of the plurality of positions respectively corresponding to the plurality of first table elements belonging to the same category among the plurality of first table elements to obtain the target position of each first table element comprises: The positions of the first table elements belonging to the same category are counted, and the target position of each first table element is obtained by using the mean method or the mode method.
2. The form construction method according to claim 1, characterized in that: The step of processing the plurality of element configuration information respectively corresponding to the plurality of first table elements belonging to the same category among the plurality of first table elements to obtain the target configuration information corresponding to the first table elements of each category comprises at least one of the following: When the plurality of first table elements belonging to the same category are first table elements of a plurality of different ages, statistics are performed on the configuration information corresponding to the table elements to obtain a numerical range, and the numerical range is the target configuration information; and When multiple first table elements belonging to the same category are genders, the configuration information corresponding to the table elements is counted to obtain the gender type, and the corresponding configuration information is determined to be text or characters representing the gender type.
3. The form construction method according to claim 1, characterized in that: The step of constructing a target entity form according to each first table element and the target configuration information and target position of each first table element further includes: Identify the blank form, and obtain a plurality of second table elements included in the layout structure of the blank form and the position of the field of each second table element; Acquire first target table elements respectively matching each of the second table elements from a plurality of the first table elements; The target configuration information of each of the first target table elements is configured as the configuration information of the field of the second table element corresponding to the first target table element in the layout structure of the blank form, so as to complete the construction of the target entity form.
4. The form construction method according to claim 1, characterized in that: The method further comprises: Publishing the target entity form to input data into different fields in the published form; Check whether the configuration information corresponding to the data matches the configuration information of the field, and generate prompt information if they do not match.
5. The form construction method according to claim 1, characterized in that: The method further comprises: In response to a user's adjustment operation on the configuration information corresponding to the target table element in the target entity form, the configuration information of the target table element is adjusted.
6. The form construction method according to claim 1, characterized in that: The multiple first table elements obtained by identifying each of the instance forms and the element configuration information, category information and position corresponding to each first table element include: A neural network recognition model is used to identify each of the instance forms to obtain multiple first table elements and element configuration information, category information and position corresponding to each first table element.
7. The form construction method according to any one of claims 1 to 6, characterized in that: The element configuration information also includes color and / or font size, and the category information also includes object category and / or field type, wherein the object category includes at least one of text, input box, drop-down box, multi-line rich text and button, and the field type includes at least one of varchar, int and decimal.
8. A form construction device, using the form construction method according to any one of claims 1 to 7, characterized in that: The device comprises: The acquisition module is used to obtain multiple instance forms; An identification module, used for identifying each of the instance forms to obtain a plurality of first table elements and element configuration information, category information and position corresponding to each first table element; a processing module, configured to process a plurality of element configuration information respectively corresponding to a plurality of first table elements belonging to the same category among the plurality of first table elements to obtain target configuration information corresponding to the first table elements of each category, and to process a plurality of positions respectively corresponding to a plurality of first table elements belonging to the same category among the plurality of first table elements to obtain a target position of each first table element; A construction module is used to construct a target entity form according to each first table element and target configuration information and target position of each first table element.
9. A storage medium storing a computer program, characterized in that: When the computer program is executed by one or more processors, the form construction method according to any one of claims 1 to 7 is implemented.
10. An electronic device, characterized in that: The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the form construction method according to any one of claims 1 to 7 is executed.
