Form processing methods, devices, and computer equipment

By uniformly monitoring changes in the form page and obtaining and updating the data objects of cascading form items, the problem of low efficiency in traditional cascading form processing is solved, achieving efficient cascading form processing and a simplified development process.

CN115408405BActive Publication Date: 2025-10-28WUHAN UNITED IMAGING HEALTHCARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210982519.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-16
Publication Date
2025-10-28
Estimated Expiration
2042-08-16

AI Technical Summary

Technical Problem

Traditional cascading forms are inefficient, have low development efficiency, and poor versatility.

Method used

By uniformly monitoring changes in the form page, the current data object of the target form item is obtained, a form object update request is sent to the server to obtain the update information of the cascading form objects, and the current data object is updated to the target data object to display the updated form page.

Benefits of technology

By unifying the cascading processing of servers and clients, the process of updating cascading forms is simplified, reducing development workload and simplifying the cascading relationships between cascading forms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115408405B_ABST
    Figure CN115408405B_ABST
Patent Text Reader

Abstract

This application relates to a form processing method, apparatus, and computer device. The method includes: responding to uniformly monitored form item change information corresponding to a form page, obtaining the current data object of a target form item; the target form item has at least two levels, and there is a cascading relationship between the at least two levels; sending a form object update request; the form object update request instructs the server to generate form object update information for the target form item based on the current data object; receiving the form object update information returned by the server in response to the form object update request, updating the current data object to the target data object of the target form item in the form object update information, and displaying the updated form page based on the target data object. This method optimizes cascading form processing, enabling unified updates of data objects in the form based on update requests, simplifying implementation steps, reducing development workload, and possessing good versatility.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a form processing method, apparatus, computer equipment, storage medium, and computer program product. Background Technology

[0002] In traditional cascading form implementations, form events are typically bound individually to each form item with a cascading relationship. This requires additional code to be written on the front end to execute separate listener operations. When generating forms with complex cascading relationships, this approach becomes cumbersome, inefficient, and lacks versatility due to the numerous and complex form events involved.

[0003] Therefore, the related technologies suffer from low efficiency in processing cascading forms. Summary of the Invention

[0004] Therefore, it is necessary to provide a form processing method, apparatus, computer device, storage medium, and computer program product that can solve the above-mentioned technical problems.

[0005] Firstly, this application provides a form processing method, the method comprising:

[0006] In response to the form item change information corresponding to the form page that is uniformly monitored, the current data object of the target form item is obtained; the form item change information is used to characterize the changes of all form items in the form page, and the target form item has at least two levels, and there is a cascading relationship between the at least two levels;

[0007] Send a form object update request; the form object update request is used to instruct the server to generate form object update information for the target form item based on the current data object, and the server stores the cascading relationship corresponding to the target form item;

[0008] The system receives form object update information returned by the server in response to the form object update request, updates the current data object to the target data object of the target form item in the form object update information, and displays the updated form page based on the target data object.

[0009] In one embodiment, the step of obtaining the current data object of the target form item in response to the form item change information corresponding to the uniformly monitored form page includes:

[0010] In response to the form item change information corresponding to the form page that is uniformly monitored, when an operation trigger event for the target form item is detected based on the form item change information, the current data object of the target form item is obtained;

[0011] Prior to the step of sending the form object update request, the method further includes:

[0012] Obtain the form item change information corresponding to the previously monitored form page, and determine the historical data object of the target form item;

[0013] If there is a difference between the historical data object and the current data object, an update request for the form object is generated based on the current data object.

[0014] In one embodiment, updating the current data object to the target data object of the target form item in the form object update information, and displaying the updated form page based on the target data object, includes:

[0015] Based on the target data object obtained from the form object update information, a new component corresponding to the target form item is generated, and the rendered new component corresponding to the target form item is displayed on the form page.

[0016] Alternatively, based on the target data object obtained from the form object update information, update part of the data in the current component corresponding to the target form item, and display the rendered updated current component corresponding to the target form item on the form page.

[0017] Secondly, this application also provides a form processing method, the method comprising:

[0018] Receive a form object update request; the form object update request is generated based on the form item change information corresponding to the form page uniformly monitored by the user terminal, and the current data object of the target form item is obtained. The target form item has at least two levels, and there is a cascading relationship between the at least two levels.

[0019] Based on the cascading relationship corresponding to the target form item, the target data object of the target form item is determined according to the current data object;

[0020] Generate form object update information based on the target data object, and send the form object update information to the user terminal; the form object update information is used to instruct the user terminal to update the current data object to the target data object, and display the updated form page based on the target data object.

[0021] In one embodiment, determining the target data object of the target form item based on the cascading relationship corresponding to the target form item and according to the current data object includes:

[0022] From the preset form item cascading relationship table, find the cascading relationship corresponding to the target form item, and determine the cascading level corresponding to the current data object;

[0023] The target data object is obtained based on the data objects corresponding to the cascading levels;

[0024] The target data object has a corresponding object value, and the method further includes:

[0025] Based on the object value of the current data object, the object value of the target data object is obtained from the form item cascading relationship table; the form item cascading relationship table includes the mapping relationship of object values ​​of data objects between specified cascading levels.

[0026] In one embodiment, the cascading hierarchy corresponding to the current data object includes at least two levels, and obtaining the object value of the target data object from the form item cascading relationship table based on the object value of the current data object includes:

[0027] For the at least two levels, obtain the first object value corresponding to the first level and the second object value corresponding to the second level;

[0028] If there is an abnormal mapping relationship between the first object value and the second object value, update the object values ​​corresponding to each level in the current data object to obtain the object value of the target data object;

[0029] If there is no abnormal mapping relationship between the first object value and the second object value, the object value of the target data object is obtained based on the first object value and the second object value.

[0030] Thirdly, this application provides a form processing apparatus, the apparatus comprising:

[0031] A unified monitoring module is used to respond to the form item change information corresponding to the form page that is uniformly monitored, and to obtain the current data object of the target form item; the form item change information is used to characterize the changes of all form items in the form page, and the target form item has at least two levels, and there is a cascading relationship between the at least two levels;

[0032] An update request sending module is used to send a form object update request; the form object update request is used to instruct the server to generate form object update information for the target form item based on the current data object, and the server stores the cascading relationship corresponding to the target form item;

[0033] The form object update module is used to receive form object update information returned by the server in response to the form object update request, update the current data object to the target data object of the target form item in the form object update information, and display the updated form page according to the target data object.

[0034] Fourthly, this application also provides a form processing apparatus, the apparatus comprising:

[0035] The update request receiving module is used to receive form object update requests; the form object update request is generated by the current data object of the target form item obtained based on the form item change information corresponding to the form page uniformly monitored by the user terminal, and the target form item has at least two levels, and there is a cascading relationship between the at least two levels;

[0036] The target data object determination module is used to determine the target data object of the target form item based on the cascading relationship corresponding to the target form item and according to the current data object;

[0037] The update information sending module is used to generate form object update information based on the target data object and send the form object update information to the user terminal; the form object update information is used to instruct the user terminal to update the current data object to the target data object and display the updated form page based on the target data object.

[0038] Fifthly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of the form processing method as described in the first aspect, and / or the steps of the form processing method as described in the second aspect.

[0039] Sixthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, implements the steps of the form processing method as described in the first aspect, and / or the steps of the form processing method as described in the second aspect.

[0040] In a seventh aspect, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the steps of the form processing method as described in the first aspect, and / or the steps of the form processing method as described in the second aspect.

[0041] The aforementioned form processing method, apparatus, computer device, storage medium, and computer program product, in response to uniformly monitored form item change information corresponding to the form page, obtains the current data object of the target form item. The form item change information is used to characterize the changes of all form items in the form page. The target form item has at least two levels, and there is a cascading relationship between the at least two levels. Then, a form object update request is sent, which instructs the server to generate form object update information for the target form item based on the current data object. The server stores the cascading relationship corresponding to the target form item and receives the form object update information returned by the server in response to the form object update request. The current data object is updated to the target data object of the target form item in the form object update information. The updated form page is displayed based on the target data object. This achieves optimization for cascading form processing, can uniformly update the data objects in the form based on the update request, simplifies the implementation steps, reduces the development workload, and has good versatility. Attached Figure Description

[0042] Figure 1 This is a diagram illustrating the application environment of a form processing method in one embodiment.

[0043] Figure 2 This is a flowchart illustrating a form processing method in one embodiment;

[0044] Figure 3 This is a schematic diagram of a form interaction processing flow in one embodiment;

[0045] Figure 4 This is a flowchart illustrating another form processing method in one embodiment;

[0046] Figure 5 This is a structural block diagram of a form processing device in one embodiment;

[0047] Figure 6 This is a structural block diagram of another form processing device in one embodiment;

[0048] Figure 7 This is an internal structural diagram of a computer device in one embodiment;

[0049] Figure 8 This is an internal structural diagram of another computer device in one embodiment. Detailed Implementation

[0050] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0051] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data used for analysis, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties; correspondingly, this application also provides a corresponding user authorization entry point for users to choose to authorize or refuse.

[0052] The form processing method provided in this application embodiment can be applied to, for example, Figure 1 In the application environment shown, terminal 102 (i.e., the user terminal) communicates with server 104 via a network. A data storage system can store the data that server 104 needs to process. The data storage system can be integrated onto server 104 or located in the cloud or on other network servers. Terminal 102 can respond to operations on target form items on the form page by sending a form object update request to server 104, and then receive the form object update information returned by server 104 to update the form object component corresponding to the target form item and render it. Terminal 102 can be, but is not limited to, a personal computer, laptop, smartphone, tablet, IoT device, and portable wearable device. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc. Server 104 can be implemented using a standalone server or a server cluster consisting of multiple servers.

[0053] In one embodiment, such as Figure 2 As shown, a form processing method is provided. This embodiment applies this method to... Figure 1 Taking terminal 102 as an example, the method includes the following steps:

[0054] Step 201: In response to the form item change information corresponding to the form page that is uniformly monitored, obtain the current data object of the target form item; the form item change information is used to characterize the changes of all form items in the form page, the target form item has at least two levels, and there is a cascading relationship between the at least two levels;

[0055] Specifically, for all form items on the form page, a unified listening process can be used to obtain form item change information containing the changes of all form items. For example, change information of different types of form items can be obtained, and then the change information of cascading form items can be obtained from the form item change information.

[0056] The target form item can be a cascading form item in the form that has a cascading relationship, that is, it has at least two levels of corresponding options, and there is a cascading relationship between the options at each level, such as a province and the city to which it belongs. An operation trigger event can be pre-bound for the cascading form item, and then the operation of the cascading form item can be detected based on the bound operation trigger event.

[0057] As an example, the data object of the target form item can be all the options corresponding to the target form item. For example, when the target form item has two levels of options, the data object of the target form item can be the options at those two levels, such as the province option and the city option. The object value of the current data object can be the option value corresponding to each level of options, such as the specific province corresponding to the province option and the specific city corresponding to the city option.

[0058] In practical applications, by displaying a form on the user's form page, the user can respond to the form item change information of the form page that is uniformly monitored, obtain the change information of all form items on the form page, and then obtain the change information of the cascading form items from the form item change information, that is, obtain the current data object of the target form item.

[0059] Specifically, update cascading events can be defined on the user side. For example, operation trigger events can be pre-bound to cascading form items (i.e., target form items), and unified listening can be performed on all form items in the form page. Figure 3 As shown, an update cascading event can be triggered when a preset user operation is detected on a cascading form item, such as when an editing operation is performed on a cascading form item. This allows the current form data object (i.e., the current data object) to be obtained, as well as the object value of the current form data object.

[0060] For example, when an input operation is detected on any cascading form item, the input data can be obtained, and the input data can be compared with existing data for that cascading form item. That is, the current form data object can be compared with the existing form data object, and then a new form data object can be updated and generated on the form page. The form data corresponding to the new form data object can be sent to the server, such as generating a corresponding update request based on the new form data object for sending.

[0061] In one alternative embodiment, such as Figure 3 As shown, the new form data sent by the user to the server can be the current input data of the form displayed on the form page and its form item names, that is, the current data object of the target form item and its object value, or it can include all form item data of the form.

[0062] Step 202: Send a form object update request; the form object update request is used to instruct the server to generate form object update information for the target form item based on the current data object, and the server stores the cascading relationship corresponding to the target form item;

[0063] In the specific implementation, the client can send a form object update request to the server. The server can then determine the target data object based on the cascading relationship of the target form item recorded in the preset form item cascading relationship table, and generate form object update information based on the target data object. The server can then send the form object update information to the client.

[0064] In one example, such as Figure 3 As shown, since the cascading relationship table for form items with complex cascading relationships is stored on the server, the target data object can be determined by looking up the cascading relationship corresponding to the target form item through the server. Alternatively, the object value of the target data object can be obtained from the form item cascading relationship table based on the object value of the current data object. Then, the form object update information can be generated using the target data object and its object value.

[0065] Step 203: Receive the form object update information returned by the server in response to the form object update request, update the current data object to the target data object of the target form item in the form object update information, and display the updated form page according to the target data object.

[0066] In practical applications, the client can receive form object update information returned by the server in response to the form object update request. Based on this form object update information, the current data object of the target form item can be updated to the target data object, and the updated form page can be displayed based on the target data object.

[0067] For example, you can update and render the form object component corresponding to the target form item on the form page. This means you can update the current data object in the target form item to the target data object and display the object value of the target data object.

[0068] In one example, taking the user selecting a province and its city options in a form as an example, the target form item corresponds to two levels of options. The user inputs data as the values ​​corresponding to each option. For example, if the user selects "Province A" in the province option, the value of the form data object "Province" is updated to "Province A", which is the object value of the current data object. Since the complex cascading relationship table of form items is stored on the server, the user can generate a form object update request based on the updated value "Province A" of the province option and send it to the server. Then, based on the received form object update information, the user can obtain which cities are included in Province A, i.e., the object value of the target data object, so as to dynamically change the city options and the default value at the same time.

[0069] Compared to traditional methods, the technical solution in this embodiment, through the form data object corresponding to the cascading form provided by the server, can obtain the form and the cascading relationship contained within the form. The user terminal can dynamically generate the form based on the form data object according to the preset form generation rules. The user terminal can automatically listen to all form items with cascading relationships (i.e., target form items). When the form item changes, it only needs to update the corresponding data object (i.e., the current data object) and can synchronize the update status to the server. Then, the server can query the cascading relationship to generate a new form data object (i.e., form object update information) and synchronize it to the user terminal. Thus, the user terminal can automatically update the cascading form, thereby saving a lot of complex front-end cascading form item event listening operations and related item update operations. There is no need to perform separate data processing for each form item on the front end. The data object can be updated uniformly based on a listening method, reducing a lot of tedious development work. Moreover, after defining the form generation rules and update mechanism, it can be used as a general component for other cascading form items.

[0070] In one example, for cascading form item scenarios, such as dynamically selecting a city after a user selects a province, or determining whether to display a spouse information entry module after selecting marital status, the relationships can be abstracted into several types of cascading relationships. By abstracting the management of the cascading relationships contained in the form and managing them uniformly in the backend, the versatility of the cascading form item component is improved.

[0071] In the above form processing method, by responding to the form item change information corresponding to the form page that is uniformly monitored, the current data object of the target form item is obtained, and then a form object update request is sent. The form object update request is used to instruct the server to generate form object update information for the target form item based on the current data object. Then, the form object update information returned by the server in response to the form object update request is received, and the current data object is updated to the target data object of the target form item in the form object update information. The updated form page is displayed based on the target data object. This method optimizes the processing of cascading forms, can uniformly update the data objects in the form based on the update request, simplifies the implementation steps, reduces the development workload, and has good versatility.

[0072] In one embodiment, before the step of obtaining the current data object of the target form item in response to the form item change information corresponding to the uniformly monitored form page, the following steps may be included:

[0073] Obtain a preset form object model of the form page; the preset form object model includes type determination information corresponding to each form item in the form page; determine at least one target form item based on the type determination information corresponding to each form item; bind an operation trigger event to the at least one target form item so that when an operation on the target form item is detected, the step of obtaining the current data object of the target form item is executed.

[0074] The type determination information can be used to indicate whether the form item belongs to the target form item.

[0075] In one example, the server can pre-define a form data object model for the form page. This form data object model can include information such as the type of each form item (e.g., checkbox, input box, etc.) and whether each form item is a cascading item (i.e., type determination information). The client can automatically bind update cascading events to all cascading form items (i.e. target form items) according to the pre-define form object model, and thus can uniformly listen to update cascading events.

[0076] For example, the client can obtain information such as the form item name, form item type, form item value, and whether there are related items for each form item displayed on the form page. The form item type can include optional items and default values. The client can also directly obtain relevant information of each level of form item in the form to determine whether there is a cascading relationship for each form item.

[0077] In this embodiment, complex form events can be omitted, providing data support for unified updating of data objects and improving the processing efficiency of complex cascading relationship forms.

[0078] In one embodiment, obtaining the current data object of the target form item in response to the form item change information corresponding to the uniformly monitored form page may include the following steps:

[0079] In response to the form item change information corresponding to the form page that is uniformly monitored, when an operation trigger event for the target form item is detected based on the form item change information, the current data object of the target form item is obtained;

[0080] Prior to the step of sending the form object update request, the following steps may be included:

[0081] Obtain the form item change information corresponding to the previously monitored form page, and determine the historical data object of the target form item; if the historical data object differs from the current data object, generate the form object update request based on the current data object.

[0082] In practical applications, the operation trigger event for the target form item can be triggered by the user's response to the operation on the target form item on the form page. For example, if the target form item is edited, the data object of the target form item obtained based on the current editing operation can be used as the current data object, and the object value of the current data object can be obtained. Then, the change information of the form item corresponding to the last time the form page was monitored can be obtained to determine the historical data object of the target form item. If there is a difference between the historical data object and the current data object, a form object update request can be generated based on the current data object.

[0083] Specifically, the historical data object and its value of the target form item can be obtained. The historical data object can be the data object corresponding to the target form item when no current operation on the target form item is detected. It can be obtained from the form item change information of the form page that was last monitored. Then, the object value of the historical data object can be compared with the object value of the current data object. If there is a difference between the two, a form object update request can be generated based on the object value of the current data object. The historical data object and its object value can be updated to the current data object and its object value in the form page.

[0084] In one example, for a target form field, the input data (i.e., the object value of the current data object) can be compared with the existing data (i.e., the object value of the historical data object). For example, if the input data is "Province B", the existing data can be a blank value corresponding to the initial province value, or the already filled "Province A". When it is determined that there is a difference between the input data and the existing data, the data can be updated (i.e., the historical data object is updated to the current data object), such as updating to "Province B". A form object update request can be generated based on the input data "Province B".

[0085] In this embodiment, in response to the form item change information corresponding to the uniformly monitored form page, when an operation trigger event for the target form item is detected based on the form item change information, the current data object of the target form item is obtained, and then the form item change information corresponding to the previously monitored form page is obtained to determine the historical data object of the target form item. If there is a difference between the historical data object and the current data object, a form object update request is generated based on the current data object. A form object update request can be generated when it is determined that there is a data update, which improves the processing efficiency of cascading form relationships.

[0086] In one embodiment, updating the current data object to the target data object of the target form item in the form object update information, and displaying the updated form page based on the target data object, may include the following steps:

[0087] Based on the target data object obtained from the form object update information, a new component corresponding to the target form item is generated, and the rendered new component corresponding to the target form item is displayed on the form page; or, based on the target data object obtained from the form object update information, some data in the current component corresponding to the target form item is updated, and the rendered updated current component corresponding to the target form item is displayed on the form page.

[0088] In one example, such as Figure 3 As shown, the server can send the generated new form data object (i.e., the target data object and its value) to the user client. The user client can update the form components and render them based on the form generation rules by comparing data changes. This can be done by generating a new component, that is, generating a new component corresponding to the target form item based on the target data object, and displaying the rendered new component corresponding to the target form item on the form page. Alternatively, it can be done by updating the component, that is, updating part of the data in the current component corresponding to the target form item based on the target data object, and displaying the updated current component corresponding to the rendered target form item on the form page.

[0089] In another example, the form generation rules for dynamically rendering and displaying components can be defined on the user side. When the form data is updated, the form components, such as the components corresponding to cascading form items, can be updated dynamically.

[0090] In this embodiment, a new component corresponding to the target form item is generated based on the target data object obtained from the form object update information. The rendered new component corresponding to the target form item is then displayed on the form page. Alternatively, based on the target data object obtained from the form object update information, some data in the current component corresponding to the target form item is updated. The rendered updated current component corresponding to the target form item is then displayed on the form page, thus improving the versatility of the cascading form item components.

[0091] In one embodiment, such as Figure 4 As shown, another form processing method is provided, which can be applied to... Figure 1 Taking server 104 as an example, the following steps are included:

[0092] Step 401, receive a form object update request; the form object update request is generated by the current data object of the target form item obtained based on the form item change information corresponding to the form page uniformly monitored by the user terminal, the target form item has at least two levels, and there is a cascading relationship between the at least two levels;

[0093] In practical applications, the server can receive form object update requests sent by the client. It can display a form on the client's form page, and the client can respond to the form item change information corresponding to the form page through unified monitoring, obtain the change information of all form items on the form page, and then obtain the change information of the cascading form items from the form item change information, that is, obtain the current data object of the target form item, and generate a form object update request based on the current data object to send.

[0094] In one example, the current data object can have a corresponding object value, which can be obtained based on the user's response to the editing operation of the target form item on the form page. Through the user's response to the operation of the target form item on the form page, such as editing the target form item, the data object of the target form item obtained based on the current editing operation can be used as the current data object. The object value of the current data object can also be obtained. A form object update request can be generated based on the current data object and its object value and sent. Then the server can receive the form object update request.

[0095] Step 402: Based on the cascading relationship corresponding to the target form item, determine the target data object of the target form item according to the current data object;

[0096] After receiving a form object update request, the server can determine the target data object based on the cascading relationship of the target form item recorded in the preset form item cascading relationship table, and can also obtain the object value of the target data object from the form item cascading relationship table based on the object value of the current data object.

[0097] Step 403: Generate form object update information based on the target data object, and send the form object update information to the user terminal; the form object update information is used to instruct the user terminal to update the current data object to the target data object, and display the updated form page based on the target data object.

[0098] In practice, the server can generate form object update information based on the target data object and send this form object update information to the user terminal, so that the user terminal updates the current data object to the target data object and displays the updated form page based on the target data object.

[0099] Specifically, the server can also obtain the object value of the target data object, and then use the target data object and its object value to generate form object update information to send to the user. The user can then update the current data object to the target data object based on the received form object update information, and can also display the object value of the target data object on the form page.

[0100] For example, the server receives the updated cascading form item data (i.e., the current data object). If the input province name is "Province A", it can query the corresponding cascading relationship for the updated cascading form item. For example, it can query "all city names corresponding to Province A" based on "Province A" and the corresponding cascading relationship "Province-City" as the query result. Then, it can generate a new form data object based on the query result. For example, the optional values ​​for the city options under the province option can include "all city names corresponding to Province A". The generated new form data object can be returned to the user to automatically update the cascading form item "Province and City".

[0101] In the above form processing method, by receiving a form object update request, and then determining the target data object of the target form item based on the cascading relationship corresponding to the target form item and the current data object, form object update information is generated based on the target data object and sent to the user end. This optimizes the processing of cascading forms, enables unified updating of data objects in the form based on update requests, simplifies the implementation steps, reduces development workload, and has good versatility.

[0102] In one embodiment, determining the target data object of the target form item based on the cascading relationship corresponding to the target form item and according to the current data object may include the following steps:

[0103] From the preset form item cascading relationship table, find the cascading relationship corresponding to the target form item to determine the cascading level corresponding to the current data object; and obtain the target data object based on the data object corresponding to the cascading level.

[0104] The target data object has a corresponding object value, and the method further includes: obtaining the object value of the target data object from the form item cascading relationship table based on the object value of the current data object; the form item cascading relationship table includes a mapping relationship of object values ​​of data objects between specified cascading levels.

[0105] The target cascading level can be a level that has a direct or indirect relationship with the cascading level corresponding to the current data object.

[0106] In one example, since complex cascading relationships are only suitable for storage on the server, the server can store form cascading relationships (i.e., a form item cascading relationship table) and be responsible for generating form data objects. When the form page is first loaded, the server can generate an initial form data object that conforms to the cascading relationship. Then, after receiving a new form data object, such as the input data of the updated cascading form item, by querying the corresponding cascading relationship, all form item data directly and indirectly related to it can be updated according to the input data of the updated cascading form item.

[0107] For example, taking the user's selection of province, city, and street options in a form as an example, the input data for the updated cascading form items can be "Province A". By querying the corresponding cascading relationships, the form items that are directly related to it and the form items that are indirectly related to it can be determined, such as the city corresponding to "Province A" and the street corresponding to the city.

[0108] In this embodiment, by searching for the cascading relationship corresponding to the target form item from a preset form item cascading relationship table, the cascading level corresponding to the current data object is determined, and then the target data object is obtained based on the data object corresponding to the cascading level. This can improve the versatility of the cascading form item component by abstracting the management of the cascading relationship contained in the form and managing it uniformly in the backend.

[0109] In one embodiment, the cascading hierarchy corresponding to the current data object may include at least two levels. Obtaining the object value of the target data object from the form item cascading relationship table based on the object value of the current data object may include the following steps:

[0110] For the at least two levels, obtain the first object value corresponding to the first level and the second object value corresponding to the second level; if there is an abnormal mapping relationship between the first object value and the second object value, update the object values ​​corresponding to each level in the current data object to obtain the object value of the target data object; if there is no abnormal mapping relationship between the first object value and the second object value, obtain the object value of the target data object based on the first object value and the second object value.

[0111] In one example, the cascading hierarchy corresponding to the current data object can include at least two levels. A holistic check can be performed on the current data object, such as the object values ​​corresponding to all associated levels contained in the cascading form item. By determining whether the object values ​​corresponding to the associated levels conform to the cascading relationship rules, if they do not conform to the rules, the data object of the target form item can be re-obtained based on the current data object and used as the target data object. Alternatively, the object value of the target data object can be determined based on the object value of the current data object.

[0112] For example, taking the province and city options in a user selection form as an example, the province and city options already have historical data entered by the user, such as "province A" and "city A". When the current data object value is received as "province B" and "city A", since "province B" and "city A" do not conform to the rules, such as the province to which "city A" belongs is "province A" instead of "province B", the city option can be updated to "all city names corresponding to province B" for the current province option "province B".

[0113] In another example, by determining whether the object values ​​corresponding to the associated hierarchy conform to the cascading relationship rule, if they do, the current data object can be used as the target data object, and the object value of the target data object can be obtained based on the first object value and the second object value corresponding to at least two levels in the current data object.

[0114] In this embodiment, by obtaining the first object value corresponding to the first level and the second object value corresponding to the second level for the at least two levels, if there is an abnormal mapping relationship between the first object value and the second object value, the object values ​​corresponding to each level in the current data object are updated to obtain the object value of the target data object. If there is no abnormal mapping relationship between the first object value and the second object value, the object value of the target data object is obtained based on the first object value and the second object value. This allows for the re-acquisition of data objects when an abnormal mapping relationship is detected between object values, thus improving the efficiency of cascading relationship form processing.

[0115] In one embodiment, an exemplary flowchart of yet another form processing method is provided. In this embodiment, the method includes the following steps:

[0116] In step one, in response to the form item change information monitored by the unified system, when an operation trigger event targeting the target form item is detected based on the form item change information, the current data object of the target form item is obtained. In step two, the form item change information of the previously monitored form page is obtained to determine the historical data object of the target form item. In step three, if there is a difference between the historical data object and the current data object, a form object update request is generated based on the current data object. In step four, the form object update request is sent. In step five, the form object update request is received. In step six, the cascading relationship corresponding to the target form item is searched from a preset form item cascading relationship table to determine the cascading level corresponding to the current data object; the target data object is obtained based on the data object corresponding to the cascading level. In step seven, form object update information is generated based on the target data object and sent to the user terminal. In step eight, the form object update information returned by the server in response to the form object update request is received, the current data object is updated to the target data object of the target form item in the form object update information, and the updated form page is displayed based on the target data object. It should be noted that the specific limitations of the above steps can be found in the specific limitations of a form processing method described above, and will not be repeated here.

[0117] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.

[0118] Based on the same inventive concept, this application also provides a form processing apparatus for implementing the form processing method described above. The solution provided by this apparatus is similar to the implementation scheme described in the above method; therefore, the specific limitations in one or more form processing apparatus embodiments provided below can be found in the limitations of the form processing method described above, and will not be repeated here.

[0119] In one embodiment, such as Figure 5 As shown, a form processing apparatus is provided, comprising:

[0120] The unified monitoring module 501 is used to respond to the form item change information corresponding to the form page that is uniformly monitored, and obtain the current data object of the target form item; the form item change information is used to characterize the change of all form items in the form page, and the target form item has at least two levels, and there is a cascading relationship between the at least two levels;

[0121] The update request sending module 502 is used to send a form object update request; the form object update request is used to instruct the server to generate form object update information for the target form item based on the current data object, and the server stores the cascading relationship corresponding to the target form item;

[0122] The form object update module 503 is used to receive form object update information returned by the server in response to the form object update request, update the current data object to the target data object of the target form item in the form object update information, and display the updated form page according to the target data object.

[0123] In one embodiment, the unified monitoring module 501 includes:

[0124] The current data object acquisition submodule is used to respond to the form item change information corresponding to the form page that is uniformly monitored, and when an operation trigger event for the target form item is detected based on the form item change information, the current data object of the target form item is acquired.

[0125] The device further includes:

[0126] The historical data object determination module is used to obtain the form item change information corresponding to the previously monitored form page and determine the historical data object of the target form item;

[0127] The difference judgment module is used to generate a form object update request based on the current data object if there is a difference between the historical data object and the current data object.

[0128] In one embodiment, the form object update module 503 includes:

[0129] The new component generation submodule is used to generate a new component corresponding to the target form item based on the target data object obtained from the form object update information, and to display the rendered new component corresponding to the target form item on the form page.

[0130] Alternatively, the current component update submodule is used to update part of the data in the current component corresponding to the target form item according to the target data object obtained from the form object update information, and to display the updated current component corresponding to the target form item in the form page.

[0131] Each module in the aforementioned form processing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.

[0132] In one embodiment, such as Figure 6 As shown, a form processing apparatus is provided, comprising:

[0133] The update request receiving module 601 is used to receive form object update requests; the form object update request is generated by the current data object of the target form item obtained based on the form item change information corresponding to the form page uniformly monitored by the user terminal, and the target form item has at least two levels, and there is a cascading relationship between the at least two levels.

[0134] The target data object determination module 602 is used to determine the target data object of the target form item based on the cascading relationship corresponding to the target form item and according to the current data object;

[0135] The update information sending module 603 is used to generate form object update information based on the target data object and send the form object update information to the user terminal; the form object update information is used to instruct the user terminal to update the current data object to the target data object and display the updated form page based on the target data object.

[0136] In one embodiment, the target data object determination module 602 includes:

[0137] The lookup submodule is used to search for the cascading relationship corresponding to the target form item from a preset form item cascading relationship table, and determine the cascading level corresponding to the current data object;

[0138] The target data object obtaining submodule is used to obtain the target data object based on the data object corresponding to the cascaded hierarchy;

[0139] The target data object has a corresponding object value, and the device further includes:

[0140] The object value determination module is used to obtain the object value of the target data object from the form item cascading relationship table based on the object value of the current data object; the form item cascading relationship table includes the mapping relationship of object values ​​of data objects between specified cascading levels.

[0141] In one embodiment, the cascading hierarchy corresponding to the current data object includes at least two levels, and the object value determination module includes:

[0142] The hierarchical object value retrieval submodule is used to retrieve the first object value corresponding to the first level and the second object value corresponding to the second level for the at least two levels.

[0143] The first object value acquisition submodule is used to update the object values ​​corresponding to each level in the current data object if there is an abnormal mapping relationship between the first object value and the second object value, so as to obtain the object value of the target data object.

[0144] The second object value acquisition submodule is used to obtain the object value of the target data object based on the first object value and the second object value if there is no abnormal mapping relationship between the first object value and the second object value.

[0145] Each module in the aforementioned form processing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.

[0146] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 7 As shown, the computer device includes a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When executed by the processor, the computer program implements a form processing method. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the computer device casing, or an external keyboard, touchpad, or mouse.

[0147] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 8 As shown, the computer device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores form processing data. The network interface communicates with external terminals via a network connection. When executed by the processor, the computer program implements a form processing method.

[0148] Those skilled in the art will understand that Figure 7 , Figure 8 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0149] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0150] In response to the form item change information corresponding to the form page that is uniformly monitored, the current data object of the target form item is obtained; the form item change information is used to characterize the changes of all form items in the form page, and the target form item has at least two levels, and there is a cascading relationship between the at least two levels;

[0151] Send a form object update request; the form object update request is used to instruct the server to generate form object update information for the target form item based on the current data object, and the server stores the cascading relationship corresponding to the target form item;

[0152] The system receives form object update information returned by the server in response to the form object update request, updates the current data object to the target data object of the target form item in the form object update information, and displays the updated form page based on the target data object.

[0153] In one embodiment, the processor, when executing a computer program, also implements the steps of the form processing method in the other embodiments described above.

[0154] In one embodiment, another computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0155] Receive a form object update request; the form object update request is generated based on the form item change information corresponding to the form page uniformly monitored by the user terminal, and the current data object of the target form item is obtained. The target form item has at least two levels, and there is a cascading relationship between the at least two levels.

[0156] Based on the cascading relationship corresponding to the target form item, the target data object of the target form item is determined according to the current data object;

[0157] Generate form object update information based on the target data object, and send the form object update information to the user terminal; the form object update information is used to instruct the user terminal to update the current data object to the target data object, and display the updated form page based on the target data object.

[0158] In one embodiment, the processor, when executing a computer program, also implements the steps of the form processing method in the other embodiments described above.

[0159] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0160] In response to the form item change information corresponding to the form page that is uniformly monitored, the current data object of the target form item is obtained; the form item change information is used to characterize the changes of all form items in the form page, and the target form item has at least two levels, and there is a cascading relationship between the at least two levels;

[0161] Send a form object update request; the form object update request is used to instruct the server to generate form object update information for the target form item based on the current data object, and the server stores the cascading relationship corresponding to the target form item;

[0162] The system receives form object update information returned by the server in response to the form object update request, updates the current data object to the target data object of the target form item in the form object update information, and displays the updated form page based on the target data object.

[0163] In one embodiment, when the computer program is executed by a processor, it also implements the steps of the form processing method in the other embodiments described above.

[0164] In one embodiment, another computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, performs the following steps:

[0165] Receive a form object update request; the form object update request is generated based on the form item change information corresponding to the form page uniformly monitored by the user terminal, and the current data object of the target form item is obtained. The target form item has at least two levels, and there is a cascading relationship between the at least two levels.

[0166] Based on the cascading relationship corresponding to the target form item, the target data object of the target form item is determined according to the current data object;

[0167] Generate form object update information based on the target data object, and send the form object update information to the user terminal; the form object update information is used to instruct the user terminal to update the current data object to the target data object, and display the updated form page based on the target data object.

[0168] In one embodiment, when the computer program is executed by a processor, it also implements the steps of the form processing method in the other embodiments described above.

[0169] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:

[0170] In response to the form item change information corresponding to the form page that is uniformly monitored, the current data object of the target form item is obtained; the form item change information is used to characterize the changes of all form items in the form page, and the target form item has at least two levels, and there is a cascading relationship between the at least two levels;

[0171] Send a form object update request; the form object update request is used to instruct the server to generate form object update information for the target form item based on the current data object, and the server stores the cascading relationship corresponding to the target form item;

[0172] The system receives form object update information returned by the server in response to the form object update request, updates the current data object to the target data object of the target form item in the form object update information, and displays the updated form page based on the target data object.

[0173] In one embodiment, when the computer program is executed by a processor, it also implements the steps of the form processing method in the other embodiments described above.

[0174] In one embodiment, another computer program product is provided, comprising a computer program that, when executed by a processor, performs the following steps:

[0175] Receive a form object update request; the form object update request is generated based on the form item change information corresponding to the form page uniformly monitored by the user terminal, and the current data object of the target form item is obtained. The target form item has at least two levels, and there is a cascading relationship between the at least two levels.

[0176] Based on the cascading relationship corresponding to the target form item, the target data object of the target form item is determined according to the current data object;

[0177] Generate form object update information based on the target data object, and send the form object update information to the user terminal; the form object update information is used to instruct the user terminal to update the current data object to the target data object, and display the updated form page based on the target data object.

[0178] In one embodiment, when the computer program is executed by a processor, it also implements the steps of the form processing method in the other embodiments described above.

[0179] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0180] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0181] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.

Claims

1. A form processing method, characterized in that, The method includes: In response to the form item change information corresponding to the form page that is uniformly monitored, the current data object of the target form item is obtained; the form item change information is used to characterize the changes of all form items in the form page, and the target form item has at least two levels, and there is a cascading relationship between the at least two levels; Send a form object update request; the form object update request is used to instruct the server to generate form object update information for the target form item based on the current data object, and the server stores the cascading relationship corresponding to the target form item; The system receives form object update information returned by the server in response to the form object update request, updates the current data object to the target data object of the target form item in the form object update information, and displays the updated form page based on the target data object.

2. The method according to claim 1, characterized in that, The step of responding to the form item change information corresponding to the uniformly monitored form page and obtaining the current data object of the target form item includes: In response to the form item change information corresponding to the form page that is uniformly monitored, when an operation trigger event for the target form item is detected based on the form item change information, the current data object of the target form item is obtained; Prior to the step of sending the form object update request, the method further includes: Obtain the form item change information corresponding to the previously monitored form page, and determine the historical data object of the target form item; If there is a difference between the historical data object and the current data object, an update request for the form object is generated based on the current data object.

3. The method according to claim 1, characterized in that, The step of updating the current data object to the target data object of the target form item in the form object update information, and displaying the updated form page according to the target data object, includes: Based on the target data object obtained from the form object update information, a new component corresponding to the target form item is generated, and the rendered new component corresponding to the target form item is displayed on the form page. Alternatively, based on the target data object obtained from the update information of the form object, update part of the data in the current component corresponding to the target form item, and display the rendered updated current component corresponding to the target form item on the form page.

4. A form processing method, characterized in that, The method includes: Receive a form object update request; the form object update request is generated based on the form item change information corresponding to the form page uniformly monitored by the user terminal, and the current data object of the target form item is obtained. The target form item has at least two levels, and there is a cascading relationship between the at least two levels. Based on the cascading relationship corresponding to the target form item, the target data object of the target form item is determined according to the current data object; Generate form object update information based on the target data object, and send the form object update information to the user terminal; the form object update information is used to instruct the user terminal to update the current data object to the target data object, and display the updated form page based on the target data object.

5. The method according to claim 4, characterized in that, The step of determining the target data object of the target form item based on the cascading relationship corresponding to the target form item and according to the current data object includes: From the preset form item cascading relationship table, find the cascading relationship corresponding to the target form item, and determine the cascading level corresponding to the current data object; The target data object is obtained based on the data objects corresponding to the cascading levels; The target data object has a corresponding object value, and the method further includes: Based on the object value of the current data object, the object value of the target data object is obtained from the form item cascading relationship table; the form item cascading relationship table includes the mapping relationship of object values ​​of data objects between specified cascading levels.

6. The method according to claim 5, characterized in that, The cascading hierarchy corresponding to the current data object includes at least two levels. Obtaining the object value of the target data object from the form item cascading relationship table based on the object value of the current data object includes: For the at least two levels, obtain the first object value corresponding to the first level and the second object value corresponding to the second level; If there is an abnormal mapping relationship between the first object value and the second object value, update the object values ​​corresponding to each level in the current data object to obtain the object value of the target data object; If there is no abnormal mapping relationship between the first object value and the second object value, the object value of the target data object is obtained based on the first object value and the second object value.

7. A form processing device, characterized in that, The device includes: A unified monitoring module is used to respond to the form item change information corresponding to the form page that is uniformly monitored, and to obtain the current data object of the target form item; the form item change information is used to characterize the changes of all form items in the form page, and the target form item has at least two levels, and there is a cascading relationship between the at least two levels; An update request sending module is used to send a form object update request; the form object update request is used to instruct the server to generate form object update information for the target form item based on the current data object, and the server stores the cascading relationship corresponding to the target form item; The form object update module is used to receive form object update information returned by the server in response to the form object update request, update the current data object to the target data object of the target form item in the form object update information, and display the updated form page according to the target data object.

8. A form processing device, characterized in that, The device includes: The update request receiving module is used to receive form object update requests; the form object update request is generated by the current data object of the target form item obtained based on the form item change information corresponding to the form page uniformly monitored by the user terminal, and the target form item has at least two levels, and there is a cascading relationship between the at least two levels; The target data object determination module is used to determine the target data object of the target form item based on the cascading relationship corresponding to the target form item and according to the current data object; The update information sending module is used to generate form object update information based on the target data object and send the form object update information to the user terminal; the form object update information is used to instruct the user terminal to update the current data object to the target data object and display the updated form page based on the target data object.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 3, and / or the steps of the method according to any one of claims 4 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 3, and / or the steps of the method according to any one of claims 4 to 6.

Citation Information

Patent Citations

  • Step-by-step database synchronization method with autoincrement identifications

    CN104573100A

  • Form generation method and device for linkage among multiple components

    CN114780078A