Form generation method, device, electronic device and computer readable medium

By updating and modifying data path information in form development, automatically processing the path to read and submit data, and simplifying configuration through component integration, the problem of inefficient form development is solved, and more efficient form generation and development is achieved.

CN114090103BActive Publication Date: 2024-12-06BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110043108.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-13
Publication Date
2024-12-06
Estimated Expiration
2041-01-13

AI Technical Summary

Technical Problem

During the form development process, the form structure of the form description file is different from the data structure of the submitted data, resulting in the need to manually modify the path information of the submitted data, which reduces the development efficiency and requires the relevant components to be carried out through more form configuration items. Extensions lead to a long time to configure custom components, which in turn reduces the efficiency of form development.

Method used

By updating the form description file based on the node parameter set of the current form node in the form description file, modifying the data path information, and adding the submitted data to the target form based on the modified data path information, thereby automatically modifying the path information that reads the submitted data , reduce manual modification steps, and reduce the need for custom component configuration through the integration of registered components and common components.

Benefits of technology

It improves the efficiency of form development, avoids the steps of manually modifying the steps of reading and submitting data path information, simplifies the configuration process of custom components, and improves the efficiency of form development.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114090103B_ABST
    Figure CN114090103B_ABST
Patent Text Reader

Abstract

The embodiments of the present disclosure disclose a form generation method, device, electronic device and computer-readable medium. A specific implementation of the method includes: based on the node parameter set of the current form node in the form description file, the first target form corresponding to the above form description file is updated to obtain a second target form; in response to the form field configuration value corresponding to the above current form node meeting the target condition, the data path information of the above current form node is modified to obtain modified data path information; according to the above modified data path information, the submitted data is added to the above second target form to obtain a third target form, wherein the submitted data corresponds to the above current form node. This implementation can avoid manually modifying the path information for reading the submitted data. Thereby improving the efficiency of form development.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to a form generation method, device, electronic device, and computer-readable medium. Background Art

[0002] With the rise of B / S (Browser / Server) architecture, through the development of forms, users can be provided with services such as submitting information and verifying content on the browser side. Currently, when developing forms, the usual approach is to configure related components through the exposed form configuration items.

[0003] However, when developing forms in the above manner, the following technical problems often occur:

[0004] First, when the form structure of the form description file is different from the data structure of the submitted data, the path information for reading the submitted data needs to be manually modified, resulting in low form development efficiency;

[0005] Second, related components need to be expanded through more form configuration items, which takes a long time to configure custom components, resulting in low form development efficiency. Summary of the invention

[0006] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.

[0007] Some embodiments of the present disclosure propose a form generation method, apparatus, electronic device, and computer-readable medium to solve one or more of the technical problems mentioned in the above background technology section.

[0008] In a first aspect, some embodiments of the present disclosure provide a form generation method, the method comprising: based on a node parameter set of a current form node in a form description file, updating a first target form corresponding to the form description file to obtain a second target form; in response to a form field configuration value corresponding to the current form node satisfying a target condition, modifying data path information of the current form node to obtain modified data path information; adding submitted data to the second target form according to the modified data path information to obtain a third target form, wherein the submitted data corresponds to the current form node.

[0009] Optionally, the data path information of the current form node is modified to obtain modified data path information, including: matching the form field configuration value according to the form field configuration value and the submitted data to obtain matching data path information; and determining the matching data path information as the modified data path information.

[0010] Optionally, before updating the first target form corresponding to the form description file, the method further includes: based on the node type of the current form node in the form description file and the component parameter set corresponding to the current form node, adding the registered component and the common component corresponding to the current form node to the target form corresponding to the form description file to obtain the first target form.

[0011] Optionally, the above-mentioned update processing of the first target form corresponding to the above-mentioned form description file includes: determining whether there is a node parameter with a description type of function class in the above-mentioned node parameter set; in response to determining whether there is, adding the running results of each function corresponding to each node parameter with a description type of function class in the above-mentioned node parameter set to the above-mentioned first target form to obtain a second target form.

[0012] Optionally, before adding the registered component and common component corresponding to the current form node to the target form corresponding to the form description file, the method further includes: obtaining the registered component corresponding to the registered component name through the registered component name corresponding to the current form node included in the form description file.

[0013] Optionally, before updating the first target form corresponding to the form description file, the method further includes: receiving a form description file submitted by a user.

[0014] Optionally, the method further includes: in response to the current form node satisfying a predetermined condition, sending the third target form to a device associated with the user.

[0015] Optionally, the method further includes: in response to an operation information record corresponding to the third target form, updating the third target form based on the operation information record.

[0016] In a second aspect, some embodiments of the present disclosure provide a form generation device, comprising: an update unit, configured to update a first target form corresponding to the form description file based on a node parameter set of a current form node in the form description file to obtain a second target form; a modification unit, configured to modify data path information of the current form node in response to a form field configuration value corresponding to the current form node satisfying a target condition to obtain modified data path information; an adding unit, configured to add submitted data to the second target form according to the modified data path information to obtain a third target form, wherein the submitted data corresponds to the current form node.

[0017] Optionally, the modification unit is further configured to: perform matching processing on the form field configuration value according to the form field configuration value and the submitted data to obtain matching data path information; and determine the matching data path information as the modified data path information.

[0018] Optionally, before the updating unit, the device also includes: an adding unit, which is configured to add the registered components and common components corresponding to the above-mentioned current form node to the target form corresponding to the above-mentioned form description file based on the node type of the current form node in the form description file and the component parameter set corresponding to the above-mentioned current form node, so as to obtain a first target form.

[0019] Optionally, the update unit is further configured to: determine whether there is a node parameter with a description type of function class in the above-mentioned node parameter set; in response to determining whether there is, add the running results of each function corresponding to each node parameter with a description type of function class in the above-mentioned node parameter set to the above-mentioned first target form to obtain the second target form.

[0020] Optionally, before the adding unit, the apparatus further includes: an acquiring unit configured to acquire a registered component corresponding to the registered component name through the registered component name corresponding to the current form node included in the form description file.

[0021] Optionally, before the updating unit, the device further includes: a receiving unit configured to receive a form description file submitted by a user.

[0022] Optionally, the apparatus further comprises: a sending unit configured to send the third target form to a device associated with the user in response to the current form node satisfying a predetermined condition.

[0023] Optionally, the device further includes: a form updating unit configured to respond to an operation information record corresponding to the third target form and update the third target form based on the operation information record.

[0024] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner of the above-mentioned first aspect.

[0025] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation manner of the above-mentioned first aspect is implemented.

[0026] The above-mentioned various embodiments of the present disclosure have the following beneficial effects: through the form generation method of some embodiments of the present disclosure, the development efficiency of the form is improved. Specifically, the reason for the low development efficiency of the form is that when the form structure of the form description file and the data structure of the submitted data are different, it is necessary to manually modify the path information for reading the submitted data. Based on this, the form generation method of some embodiments of the present disclosure first updates the first target form corresponding to the above form description file based on the node parameter set of the current form node in the form description file to obtain the second target form. Thus, the configuration related information of the currently read form node can be integrated into the first target form. Then, in response to the form field configuration value corresponding to the above current form node meeting the target condition, the data path information of the above current form node is modified to obtain the modified data path information. Thus, when the path for reading the submitted data and the storage path for the submitted data are different, the path information when reading the submitted data can be automatically modified. Finally, according to the above modified data path information, the submitted data is added to the above second target form to obtain the third target form. Thus, according to the modified data path information, the submitted data can be read, so that the submitted data can be added to the second target form to update the second target form to obtain the third target form. Because the data path information has been modified, you can avoid manually modifying the path information for reading submitted data, thereby improving the efficiency of form development. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.

[0028] Figure 1 is a schematic diagram of an application scenario of the form generation method according to some embodiments of the present disclosure;

[0029] Figure 2is a flow chart of some embodiments of the form generation method according to the present disclosure;

[0030] Figure 3 are flow charts of other embodiments of the form generation method according to the present disclosure;

[0031] Figure 4 are flow charts of some further embodiments of the form generation method according to the present disclosure;

[0032] Figure 5 is a schematic diagram of the structure of some embodiments of the form generating device according to the present disclosure;

[0033] Figure 6 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION

[0034] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0035] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.

[0036] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0037] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0038] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0039] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0040] Figure 1 It is a schematic diagram of an application scenario of the form generation method according to some embodiments of the present disclosure.

[0041] exist Figure 1 In the application scenario, first, the computing device 101 can update the first target form 103 corresponding to the above form description file based on the node parameter set 102 of the current form node in the form description file to obtain the second target form 104. Then, in response to the form field configuration value 105 (for example, the form field configuration value can be ".D") corresponding to the above current form node meeting the target condition, the computing device 101 can modify the data path information 106 (for example, the data path information can be "AD") of the above current form node to obtain the modified data path information 107 (for example, the modified data path information can be "ABCD"). Afterwards, the computing device 101 can add the submitted data 108 (for example, the submitted data can be "D:3") to the above second target form 104 according to the above modified data path information 107 to obtain the third target form 109. Among them, the submitted data 108 corresponds to the above current form node.

[0042] It should be noted that the computing device 101 can be hardware or software. When the computing device is hardware, it can be implemented as a distributed cluster consisting of multiple servers or terminal devices, or as a single server or a single terminal device. When the computing device is embodied as software, it can be installed in the hardware devices listed above. It can be implemented as multiple software or software modules for providing distributed services, or as a single software or software module. No specific limitation is made here.

[0043] It should be understood that Figure 1 The number of computing devices in the embodiment is only illustrative. Any number of computing devices may be provided according to implementation requirements.

[0044] Continue to refer Figure 2 , shows a process 200 of some embodiments of the form generation method according to the present disclosure. The form generation method comprises the following steps:

[0045] Step 201 : Based on the node parameter set of the current form node in the form description file, the first target form corresponding to the form description file is updated to obtain a second target form.

[0046] In some embodiments, the execution body of the form generation method (eg Figure 1The computing device 101 shown in the figure can update the first target form corresponding to the above form description file based on the node parameter set of the current form node in the form description file to obtain the second target form. Among them, the above form description file can be a file used to generate a corresponding form, which can be used to describe the form structure, verification logic and interaction logic. The above form description file can be a file stored locally. The above current form node can be the form node of the above form description file currently read by the above execution subject. The above node parameter set can include various parameters for configuring the above current form node, and can also include various parameters for configuring the parent node of the above current form node. For example, the above node parameter can be {name: 'option'}. The above node parameter can also be {type: 'Collapse'}. In response to the above execution subject having read the form node before, the above first target form can be a form with description information of the components corresponding to the previously read and currently read form nodes added. In response to the above current form node being the first form node read by the above execution subject, the above first target form can be a form with description information of the components corresponding to the currently read form node added. The above description information can be the description data for the components included in the above form description file. It is understandable that the above-mentioned description data can be the code of the corresponding component. The above-mentioned component can be a customized component encoded by the user through various configuration items. In practice, the above-mentioned execution entity can first add the various node parameters in the above-mentioned node parameter set to the above-mentioned first target form to update the above-mentioned first target form. Then, the first target form to which the various node parameters are added can be determined as the second target form. Thus, the configuration-related information of the currently read form node can be integrated into the first target form.

[0047] In some optional implementations of some embodiments, the execution subject may first determine whether there is a node parameter with a description type of a function class in the node parameter set. The description type may characterize whether the node parameter is a function. The function class may characterize the node parameter as a function. Then, in response to the determination of existence, the operation results of each function corresponding to each node parameter with a description type of a function class in the node parameter set may be added to the first target form to obtain a second target form. Thus, the parameters of the function class of the current form node may be parsed.

[0048] Step 202: in response to the form field configuration value corresponding to the current form node satisfying the target condition, modify the data path information of the current form node to obtain modified data path information.

[0049] In some embodiments, the execution subject may modify the data path information of the current form node in response to the form field configuration value corresponding to the current form node satisfying the target condition, and obtain the modified data path information. The form field configuration value may be the index of the form field configured by the user in the form description file, and the form field configuration value may be used to index the value corresponding to the form field. The form field configuration value may indicate that the index is undefined, for example, the form field configuration value "undefined" indicates that the index is undefined. The form field configuration value may also indicate that the index is a null value, for example, the form field configuration value "null" may indicate that the index is a null value. The form field configuration value may also indicate that the index is a defined value, for example, the form field configuration value ".D" may indicate that the index is a defined value ".D". The data path information may be the path information for the execution subject to read the submitted data corresponding to the current form node. The submitted data may be the data submitted by the user corresponding to the form field in the form description file. For example, the submitted data may be "D:3". The submitted data may be data stored locally. The above target condition may be "the above form field configuration value representation index is a null value or a defined value".

[0050] In practice, first, the execution subject can determine that the form field configuration value satisfies the target condition "the index represented by the form field configuration value is a null value or a defined value". Then, the data path information of the current form node can be modified and processed through the path processing function interface corresponding to the form field configuration value to obtain the modified data path information. Among them, the path processing function corresponding to the path processing function interface can be implemented in a preset configuration file. The preset configuration file can be a file including a path processing function. The path processing function can be used to modify the data path information to support reading the modified data path information of the extracted data. For example, the data path information can be "AD". The path processing function can modify the data path information "AD" to modify the data path information "ABCD". The modification method can be a regular expression method. Since the index represented by the form field configuration value is a null value or a defined value, the path for reading the submitted data and the storage path for the submitted data are different. Therefore, when the path for reading the submitted data and the storage path for the submitted data are different, the path information when reading the submitted data can be automatically modified.

[0051] Step 203: Add the submitted data to the second target form according to the modified data path information to obtain a third target form.

[0052] In some embodiments, the execution subject can add the submitted data to the second target form according to the modified data path information to obtain a third target form. The submitted data corresponds to the current form node. Thus, the submitted data can be read according to the modified data path information, so that the submitted data can be added to the second target form to update the second target form and obtain the third target form.

[0053] In some optional implementations of some embodiments, before step 201, the above-mentioned execution entity may receive a form description file submitted by a user. In practice, the above-mentioned execution entity may receive the form description file sent by the user from the terminal via a wired connection or a wireless connection. It should be noted that the above-mentioned wireless connection method may include but is not limited to 3G / 4G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods currently known or to be developed in the future. Thus, the form description file submitted remotely by the user can be received.

[0054] In some optional implementations of some embodiments, before step 201, the execution entity may obtain the submission data corresponding to the current form node. In practice, the execution entity may obtain the submission data corresponding to the current form node from the terminal corresponding to the interface through a wired connection or a wireless connection according to the interface for submitting data of the user. It should be noted that the wireless connection method may include but is not limited to 3G / 4G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods currently known or to be developed in the future. Thus, the submission data may be remotely obtained through the interface for submitting data of the user.

[0055] In some optional implementations of some embodiments, the execution subject may send the third target form to a device associated with the user in response to the current form node satisfying a predetermined condition. The predetermined condition may be "the current form node is the last form node in the form description file". It is understandable that the execution subject may execute steps 201-203 in a loop. Thus, after reading all form nodes, the final generated form may be sent to the user's device so that the user can render the page corresponding to the form.

[0056] In some optional implementations of some embodiments, the execution subject may respond to the operation information record corresponding to the third target form and update the third target form based on the operation information record. The operation information record may be a data record corresponding to the modification operation of the user on the page corresponding to the third target form, and may include form fields and values ​​corresponding to the form fields. For example, the operation information record may be "borderWidth: 3", and before the operation information record is generated, the value corresponding to the form field "borderWidth" may be "2". In practice, the execution subject may modify the value of the form field corresponding to the operation information record in the third target form to the value corresponding to the form field included in the operation information record based on the operation information record. As an example, the execution subject may modify the value "2" corresponding to the form field "borderWidth" to "3". Thus, the third target form may be updated.

[0057] The above-mentioned various embodiments of the present disclosure have the following beneficial effects: through the form generation method of some embodiments of the present disclosure, the development efficiency of the form is improved. Specifically, the reason for the low development efficiency of the form is that when the form structure of the form description file and the data structure of the submitted data are different, it is necessary to manually modify the path information for reading the submitted data. Based on this, the form generation method of some embodiments of the present disclosure first updates the first target form corresponding to the above form description file based on the node parameter set of the current form node in the form description file to obtain the second target form. Thus, the configuration related information of the currently read form node can be integrated into the first target form. Then, in response to the form field configuration value corresponding to the above current form node meeting the target condition, the data path information of the above current form node is modified to obtain the modified data path information. Thus, when the path for reading the submitted data and the storage path for the submitted data are different, the path information when reading the submitted data can be automatically modified. Finally, according to the above modified data path information, the submitted data is added to the above second target form to obtain the third target form. Thus, according to the modified data path information, the submitted data can be read, so that the submitted data can be added to the second target form to update the second target form to obtain the third target form. Because the data path information has been modified, you can avoid manually modifying the path information for reading submitted data, thereby improving the efficiency of form development.

[0058] Further references Figure 3 , which shows a process 300 of another embodiment of the form generation method. The process 300 of the form generation method includes the following steps:

[0059] Step 301: Based on the node parameter set of the current form node in the form description file, update the first target form corresponding to the form description file to obtain a second target form.

[0060] In some embodiments, the specific implementation of step 301 and the technical effects brought about can be referred to Figure 2 The corresponding step 201 in the embodiments will not be described in detail here.

[0061] Step 302: According to the form field configuration value and the submitted data, the form field configuration value is matched to obtain matching data path information.

[0062] In some embodiments, the execution body of the form generation method (eg Figure 1 The computing device 101 shown in the figure can match the form field configuration value according to the form field configuration value and the submitted data to obtain the matching data path information. In practice, the execution entity can determine the form field configuration value as a substring, determine the storage path information of the submitted data as the original string, and use a string matching algorithm to generate the position number of the first appearance of the substring in the original string. The storage path information can be the path for storing the submitted data. Afterwards, the characters from the first position number to the position number in the original string can be extracted as target characters to obtain the target string. Finally, the target string can be determined as the matching data path information.

[0063] As an example, the string matching algorithm may be a KMP algorithm (The Knuth-Morris-Pratt Algorithm). The string matching algorithm may also be a BF algorithm (Brute Force Algorithm, brute force search).

[0064] Through step 302, the data path information can be modified by matching the form field configuration values.

[0065] Step 303: determine the matching data path information as modified data path information.

[0066] In some embodiments, the execution subject may determine the matching data path information as the modified data path information, thereby realizing automatic modification of the path information when reading and submitting data.

[0067] In some optional implementations of some embodiments, the execution subject may delete the data path information in response to the form field configuration value being a null value. Since the form field configuration value being a null value may indicate that there is no need to read data from the corresponding form field, the step of executing data reading may be avoided under the condition that the form field configuration value is a null value.

[0068] Step 304: Add the submitted data to the second target form according to the modified data path information to obtain a third target form.

[0069] In some embodiments, the specific implementation of step 301 and the technical effects brought about can be referred to Figure 2 The corresponding step 201 in the embodiments will not be described in detail here.

[0070] from Figure 3 It can be seen that Figure 2 Compared with the description of some corresponding embodiments, Figure 3 The process 300 of the form generation method in some corresponding embodiments embodies the step of modifying and extending the data path information of the current form node. Therefore, the scheme described in these embodiments can realize the modification of the data path information by matching the configuration value of the above form field, so as to realize the automatic modification of the path information when reading the submitted data. Then, the submitted data can be added to the second target form according to the automatically modified data path information.

[0071] Further references Figure 4 , which shows a process 400 of some other embodiments of the form generation method. The process 400 of the form generation method includes the following steps:

[0072] Step 401, obtaining a registered component corresponding to a registered component name through a registered component name corresponding to a current form node included in a form description file.

[0073] In some embodiments, the execution body of the form generation method (eg Figure 1The computing device 101 shown in the figure can obtain the registered component corresponding to the registered component name through the registered component name corresponding to the current form node included in the form description file. The registered component name can be the name corresponding to the registered component. In practice, the execution subject can obtain the registered component corresponding to the registered component name from the component registration center. The registered component can be a custom component registered by the user through the component registration center. The component registration center can provide the user with a method for registering a component and an interface for obtaining the method for registering a component through the registered component name. The interface of the component registration center can be deployed locally. Thus, the user can customize the component through the interface of the method for registering the component, avoiding the configuration of more form configuration items, thereby reducing the time occupied for configuring the custom component. This can improve the development efficiency of the form.

[0074] Step 402, based on the node type of the current form node in the form description file and the component parameter set corresponding to the current form node, add the registered component and the common component corresponding to the current form node to the target form corresponding to the form description file to obtain a first target form.

[0075] In some embodiments, the execution subject may add the registered component and the common component corresponding to the current form node to the target form corresponding to the form description file based on the node type of the current form node in the form description file and the component parameter set corresponding to the current form node, so as to obtain a first target form. The node type may be the type of the node corresponding to the target form node, and may include but is not limited to at least one of the following: the first node class, the second node class. The first node class may indicate that the current form node has child nodes. The second node class may indicate that the current form node does not have child nodes. The component parameter set may be a set of parameters of the components corresponding to the current form node in the form description file. When the node type is the first node class, the component parameters correspond to the parameters of the nested components. When the node type is the second node class, the component parameters correspond to the parameters of the leaf components. The nested components may be a combination of multiple components. The leaf component may be a single component. The common component may be used to represent a basic component, and may include but is not limited to at least one of the following: a drop-down box component, an input box component. The target form may be a third target form corresponding to the form node previously read by the execution subject. It is understandable that the execution body may execute steps 401 to 405 in a loop. In response to the target form node being the first form node read by the execution body, the target form may also be a newly created form.

[0076] In practice, first, the execution subject can respond to the node type being the first node class and read the various parameters of the nested components corresponding to the current form node. For example, the various parameters can be {type: 'ColorPicker', label: 'background color'}. Then, each registered component in at least one registered component corresponding to the current form node and the common component corresponding to the registered component can be combined to generate a first combination component and obtain a first combination component set. After that, each of the parameters read can be added to the first combination component corresponding to the parameter in the first combination component set to generate a first configuration combination component and obtain a first configuration combination component set. Finally, the first configuration combination component set can be added to the target form to obtain the first target form. Here, the first configuration combination component set can be added to the target form by adding the various description data corresponding to the various first configuration combination components in the first configuration combination component set to the target form. The execution subject can also respond to the node type being the second node class and read the various parameters of the leaf component corresponding to the current form node. Then, the registration component and the common component corresponding to the above-mentioned target form node can be combined to generate a second combination component. Afterwards, the various parameters of the above-mentioned leaf component read can be added to the above-mentioned second combination component to generate a second configuration combination component. Finally, the above-mentioned second configuration combination component can be added to the above-mentioned target form to obtain the first target form. Here, the way to add the above-mentioned second configuration combination component to the above-mentioned target form can be to add the description data corresponding to the above-mentioned second configuration combination component to the above-mentioned target form. Thus, the registration component and the common component of the currently read form node can be integrated into the previously integrated or newly created target form according to the node type of the current form node and the corresponding component parameter set.

[0077] Step 403: Based on the node parameter set of the current form node in the form description file, the first target form corresponding to the form description file is updated to obtain a second target form.

[0078] Step 404 , in response to the form field configuration value corresponding to the current form node satisfying the target condition, modify the data path information of the current form node to obtain modified data path information.

[0079] Step 405: Add the submitted data to the second target form according to the modified data path information to obtain a third target form.

[0080] In some embodiments, the specific implementation of steps 403-405 and the technical effects brought about can be referred to Figure 2 The corresponding steps 201-203 in the embodiments are not described in detail here.

[0081] from Figure 4 It can be seen that Figure 2 Compared with the description of some corresponding embodiments, Figure 4 The process 400 of the form generation method in some corresponding embodiments reflects that the registration component name corresponding to the current form node is obtained through the registration component name corresponding to the registration component name included in the form description file. The above process also reflects that based on the node type of the current form node in the form description file and the component parameter set corresponding to the above current form node, the registration component and the general component corresponding to the above current form node are added to the target form corresponding to the above form description file to obtain the first target form. Therefore, the scheme described in these embodiments can be used as an inventive point of the embodiments of the present disclosure, solving the technical problem 2 mentioned in the background technology that "it is necessary to expand the relevant components through more form configuration items, resulting in a long time for configuring the custom components, and thus resulting in low form development efficiency". According to the node type of the current form node and the corresponding component parameter set, the registration component and the general component of the currently read form node can be integrated into the previously integrated or newly created target form to generate the first target form. Also because the added registration component can be implemented by customizing the interface of the registration component method, the configuration of more form configuration items is avoided, thereby reducing the time occupied when configuring the custom component. And then the development efficiency of the form can be improved.

[0082] Further references Figure 5 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a form generation device, and these device embodiments are Figure 2 Corresponding to the method embodiments shown, the device can be specifically applied to various electronic devices.

[0083] like Figure 5 As shown, the form generation device 500 of some embodiments includes: an updating unit 501, a modifying unit 502 and an adding unit 503. The updating unit 501 is configured to update the first target form corresponding to the form description file based on the node parameter set of the current form node in the form description file to obtain the second target form; the modifying unit 502 is configured to modify the data path information of the current form node in response to the form field configuration value corresponding to the current form node meeting the target condition to obtain the modified data path information; the adding unit 503 is configured to add the submitted data to the second target form according to the modified data path information to obtain the third target form, wherein the submitted data corresponds to the current form node.

[0084] In an optional implementation of some embodiments, the modification unit 502 of the form generation device 500 may be further configured to: perform matching processing on the form field configuration value according to the form field configuration value and the submitted data to obtain matching data path information; and determine the matching data path information as the modified data path information.

[0085] In an optional implementation of some embodiments, before the updating unit 501, the form generating device 500 may further include: an adding unit (not shown in the figure), which is configured to add the registered components and common components corresponding to the above-mentioned current form node to the target form corresponding to the above-mentioned form description file based on the node type of the current form node in the form description file and the component parameter set corresponding to the above-mentioned current form node, so as to obtain a first target form.

[0086] In an optional implementation of some embodiments, the update unit 501 of the form generation device 500 can be further configured to: determine whether there is a node parameter with a description type of function class in the above-mentioned node parameter set; in response to determining whether there is, add the running results of each function corresponding to each node parameter with a description type of function class in the above-mentioned node parameter set to the above-mentioned first target form to obtain the second target form.

[0087] In an optional implementation of some embodiments, before adding a unit, the form generating device 500 may further include: an acquisition unit (not shown in the figure), configured to acquire the registered component corresponding to the above-mentioned registered component name through the registered component name corresponding to the above-mentioned current form node included in the above-mentioned form description file.

[0088] In an optional implementation of some embodiments, before the updating unit 501, the form generating device 500 may further include: a receiving unit (not shown in the figure), configured to receive a form description file submitted by a user.

[0089] In an optional implementation of some embodiments, the form generating device 500 may further include: a sending unit (not shown in the figure), configured to send the third target form to a device associated with the user in response to the current form node satisfying a predetermined condition.

[0090] In an optional implementation of some embodiments, the form generating device 500 may further include: a form updating unit (not shown in the figure), which is configured to respond to an operation information record corresponding to the above-mentioned third target form and update the above-mentioned third target form based on the above-mentioned operation information record.

[0091] It is understood that the units described in the device 500 are similar to those described in the reference Figure 2Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device 500 and the units included therein, and will not be described in detail here.

[0092] Reference below Figure 6 , which shows an electronic device (eg, Figure 1 Schematic diagram of the structure of the computing device 101)600. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0093] like Figure 6 As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0094] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 6 Each block shown in the figure may represent one device, or may represent multiple devices as required.

[0095] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.

[0096] It should be noted that the computer-readable medium recorded in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0097] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0098] The computer-readable medium may be included in the electronic device; or it may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: based on the node parameter set of the current form node in the form description file, updates the first target form corresponding to the form description file to obtain a second target form; in response to the form field configuration value corresponding to the current form node meeting the target condition, modifies the data path information of the current form node to obtain modified data path information; according to the modified data path information, adds the submitted data to the second target form to obtain a third target form, wherein the submitted data corresponds to the current form node.

[0099] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0100] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0101] The units described in some embodiments of the present disclosure may be implemented by software or by hardware. The described units may also be set in a processor, for example, may be described as: a processor includes an update unit, a modification unit, and an addition unit. The names of these units do not constitute a limitation on the unit itself in some cases. For example, the update unit may also be described as "based on the node parameter set of the current form node in the form description file, the first target form corresponding to the above form description file is updated to obtain a unit of the second target form".

[0102] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0103] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.

Claims

1. A form generation method, comprising: Based on the node parameter set of the current form node in the form description file, the first target form corresponding to the form description file is updated to obtain a second target form, wherein the node parameter set includes various parameters configured for the current form node and various parameters configured for the parent node of the current form node; In response to the form field configuration value corresponding to the current form node satisfying the target condition, modifying the data path information of the current form node to obtain modified data path information, wherein the form field configuration value is the index of the form field configured by the user in the form description file, the form field configuration value can be used to index the value corresponding to the form field, the target condition is that the form field configuration value represents the index as a defined value, the data path information is the path information for reading the submitted data corresponding to the current form node, and the modified data path information supports reading the submitted data; According to the modified data path information, the submitted data is added to the second target form to obtain a third target form, wherein the submitted data corresponds to the current form node and is data submitted by the user corresponding to the form field in the form description file.

2. The method according to claim 1, wherein: The modifying process of the data path information of the current form node to obtain the modified data path information includes: According to the form field configuration value and the submitted data, matching processing is performed on the form field configuration value to obtain matching data path information; The matching data path information is determined as modified data path information.

3. The method according to claim 1, wherein: Before updating the first target form corresponding to the form description file, the method further includes: Based on the node type of the current form node in the form description file and the component parameter set corresponding to the current form node, the registered component and the common component corresponding to the current form node are added to the target form corresponding to the form description file to obtain a first target form.

4. The method according to claim 1, wherein: The updating process of the first target form corresponding to the form description file to obtain the second target form includes: Determine whether there is a node parameter of a function type in the node parameter set; In response to determining that it exists, the running results of each function corresponding to each node parameter of the function class described in the node parameter set are added to the first target form to obtain a second target form.

5. The method according to claim 3, wherein: Before adding the registered component and the common component corresponding to the current form node to the target form corresponding to the form description file, the method further includes: The registered component corresponding to the registered component name is acquired through the registered component name corresponding to the current form node included in the form description file.

6. The method according to claim 1, wherein: Before updating the first target form corresponding to the form description file, the method further includes: Receive the form description file submitted by the user.

7. The method according to claim 6, wherein: The method further comprises: In response to the current form node satisfying a predetermined condition, sending the third target form to a device associated with the user.

8. The method according to claim 1, wherein: The method further comprises: In response to the operation information record corresponding to the third target form, update processing is performed on the third target form based on the operation information record.

9. A form generating device, comprising: An updating unit is configured to update a first target form corresponding to the form description file based on a node parameter set of a current form node in the form description file to obtain a second target form, wherein the node parameter set includes various parameters configured for the current form node and various parameters configured for a parent node of the current form node; a modification unit configured to modify data path information of the current form node in response to the form field configuration value corresponding to the current form node satisfying a target condition, to obtain modified data path information, wherein the form field configuration value is an index of a form field configured by a user in the form description file, the form field configuration value can be used to index a value corresponding to the form field, the target condition is that the form field configuration value represents the index as a defined value, the data path information is path information for reading submitted data corresponding to the current form node, and the modified data path information supports reading the submitted data; An adding unit is configured to add the submitted data to the second target form according to the modified data path information to obtain a third target form, wherein the submitted data corresponds to the current form node and is data submitted by the user corresponding to the form field in the form description file.

10. An electronic device comprising: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 8.

11. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.