Form updating method and system, readable storage medium and computer program product
By analyzing and matching the dependent field changes of the target component in the form, automatically updating the form, solving the problems of large amount of code and maintenance difficulties in the existing technology, improving development efficiency and reducing error rate.
Patent Information
- Application Number
- CN202411154392.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-12-13
AI Technical Summary
When updating dynamic forms, developers need to manually write complex logical code to listen to changes in field values of dependent components, resulting in increased code volume, confusing structure, and difficulty in maintaining and scaling, especially when business logic changes frequently, it reduces the Development efficiency and increase error rate.
By calling the logical processing module, analyzing the change of the dependency field of the target component in the form, obtaining the dependency value matching the update conditions, automatically rendering or canceling the target component, reducing the amount of code writing, and realizing dynamic update of the form.
Simplifies the workload of maintainers in writing dependent logic, reduces code maintenance costs, reduces error rates, improves development efficiency, and supports dynamic form rendering and cancellation operations.
Smart Images

Figure CN119129553A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of form management, and in particular to a form updating method, a form updating system, a readable storage medium, and a computer program product. Background Art
[0002] The form is the key interface for data exchange between users and the system. With the diversification of business needs, form design is becoming increasingly complex, and it is usually necessary to implement dynamic interaction functions, that is, some components in the form are updated in real time depending on the changes of other components. For example, when a user selects a province on the registration interface, the city list component corresponding to the province will be displayed; for another example, when a user selects different product categories, the price range component will be adjusted accordingly.
[0003] In related technologies, when updating the aforementioned type of dynamic forms, developers are usually required to manually write complex logic codes to monitor changes in the field values of the dependent components, and trigger updates to the associated target components accordingly. Obviously, the aforementioned method significantly increases the amount of code and easily causes confusion in the code structure, which poses great challenges to subsequent maintenance and expansion. Especially when business logic changes frequently, developers have to repeatedly modify these tightly coupled logic codes, which greatly reduces development efficiency and increases the error rate. Summary of the invention
[0004] In order to solve one of the above technical problems, the present disclosure provides a form updating method, a form updating system, a readable storage medium and a computer program product.
[0005] According to one aspect of the present disclosure, a form updating method is provided, comprising: calling a logic processing module to analyze changes in dependent fields of a target component in an original form, and obtaining dependent values of the dependent fields; matching the dependent values with update conditions of the target component, and determining processing requirements of the form regarding the target component; and in response to the processing requirements, updating the target component in the original form to obtain a target form.
[0006] In some embodiments, the calling logic processing module analyzes changes in dependent fields of the target component in the original form to obtain dependent values of the dependent fields, including: calling a parsing unit of the logic processing module to analyze changes in the dependent fields to determine an extraction environment, wherein the dependent fields are in array form or name path form; and when the extraction environment is compliant, calling a dependency value acquisition unit of the logic processing module to extract the dependency value of the dependent field.
[0007] In some embodiments, the parsing unit that calls the logic processing module analyzes the changes in the dependent fields and determines the extraction environment, including: setting a dependency logic for the dependent fields; if the dependency logic is a first logic, when the change in any of the dependent fields is a change, setting the extraction environment to be compliant; or, if the dependency logic is a second logic, when the change in each of the dependent fields is a change, setting the extraction environment to be compliant.
[0008] In some embodiments, before the calling logic processing module analyzes the changes of the dependent field of the target component in the form and obtains the dependent value of the dependent field, it includes: determining the field type of the dependent field; if the field type is not a Boolean type, constructing a judgment function for the dependent field.
[0009] In some embodiments, before the calling logic processing module analyzes the changes in the dependent fields of the target component in the form and obtains the dependent values of the dependent fields, it includes: when the dependent field is a Boolean type, using a built-in monitoring mechanism to obtain the changes in the dependent field; or when the dependent field is not a Boolean type, using the judgment function to compare the current value and the original value of the dependent field to obtain the changes.
[0010] In some embodiments, the dependent value is matched with the update condition of the target component to determine the processing requirements of the form regarding the target component, including: when the dependent value is expected data that complies with content filling rules or expected options that comply with selection rules, determining that the processing requirement is to be increased; or when the dependent value is a null value or abnormal data that does not comply with the content filling rules, determining that the processing requirement is to be cancelled.
[0011] In some embodiments, in response to the processing requirement, the target component is updated in the original form to obtain a target form, including: when the processing requirement is to be added, calling the content rendering unit of the logic processing module to render the target component as a target item to form a target form containing the target item; when the processing requirement is to be canceled, calling the content rendering unit to cancel the rendering of the target component to form a target form that excludes the target item.
[0012] In some implementations, the further method includes: based on a target design tool, calling a content rendering unit of the logic processing module to render an initial display component to form the original form.
[0013] According to another aspect of the present disclosure, a form updating system is provided, comprising: a memory storing execution instructions; and a processor executing the execution instructions stored in the memory, so that the processor executes the form updating method of any of the above-mentioned embodiments.
[0014] According to another aspect of the present disclosure, a readable storage medium is provided, wherein a computer program is stored in the readable storage medium, and when the computer program is executed by a processor, the computer program is used to implement the updating method of the above form.
[0015] According to another aspect of the present disclosure, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, it is at least used to implement the updating method of the above form. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings illustrate exemplary embodiments of the present disclosure and together with the description serve to explain the principles of the present disclosure. These drawings are included to provide a further understanding of the present disclosure and are incorporated in and constitute a part of this specification.
[0017] Figure 1 It is a schematic diagram of an application scenario of the form updating method according to an embodiment of the present disclosure.
[0018] Figure 2 It is an interactive flow chart of a form updating method according to an embodiment of the present disclosure.
[0019] Figure 3 It is a schematic diagram of data flow in a form updating method according to an embodiment of the present disclosure.
[0020] Figure 4 It is a flowchart of the updating process of the form updating method according to the embodiment of the present disclosure.
[0021] Figure 5 It is a schematic diagram of a processing procedure for determining an extraction environment according to a dependent field according to an embodiment of the present disclosure.
[0022] Figure 6 is a flow chart of a form updating method according to an embodiment of the present disclosure.
[0023] Figure 7 It is a structural block diagram of a form updating system according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0024] The present disclosure is further described in detail below in conjunction with the accompanying drawings and examples. It is understood that the specific examples described herein are only used to explain the relevant content, rather than to limit the present disclosure. It should also be noted that, for ease of description, only the parts related to the present disclosure are shown in the accompanying drawings.
[0025] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in the present disclosure can be combined with each other. The technical solution of the present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0026] The form is a key interface for data exchange between users and systems, and has the function of dynamic interaction, that is, some components in the form are updated in real time depending on changes in other components. For example, when a user selects a province in the registration interface, a city list component corresponding to the province will be displayed. However, in the related art, when updating these dynamic forms, developers are usually required to manually write complex dependency logic code to monitor changes in the field values of the dependent components, and trigger updates to the associated target components accordingly. Obviously, the aforementioned method greatly increases the amount of code, and is also prone to cause confusion in the code structure, which brings great challenges to later maintenance and expansion. Especially when the dependency logic of each form item changes frequently, developers have to repeatedly modify these tightly coupled logic codes, which greatly reduces development efficiency and increases the error rate.
[0027] Figure 1 Schematic diagram of an application scenario of a form update method according to an embodiment of the present disclosure. Figure 1 As shown, it includes a server 100 and a terminal device 200. The server 100 can be a cloud server or a physical server, which includes a corresponding processor and a memory. The terminal device 200 can be a portable mobile device, such as a smart phone, a smart tablet, a wearable device, etc. of a user or a form maintainer; it can also be a fixed device such as a desktop computer. The server 100 and the terminal device 200 can communicate through a network, Bluetooth, etc. The processor in the server 100 executes a computer program containing a form update method, and the maintainer transmits dependent fields, target components and update conditions to the terminal device 200 through the terminal device 200 equipped with the maintenance end; the user writes the dependent value of the dependent field through another terminal device 200 equipped with the client. Based on the dependent field, the target component and its update condition, the server 100 analyzes the writing of the dependent field, extracts the dependent value that has changed in the original form; and based on the matching relationship between the dependent value and the update condition, determines the processing requirements of the form, including rendering or canceling the rendering of the target component, so as to update the original form to a target form including the target item or canceling the target item. Finally, the target form is displayed on the terminal device 200 equipped with the client.
[0028] It is understood that before using the technical solutions disclosed in the embodiments of the present disclosure, the type, scope of use, and usage scenarios of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations. For example, in response to receiving the user's active request, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require the acquisition and use of the user's personal information. The user can autonomously choose whether to provide personal information to the software or hardware such as the terminal device 200, application, server or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message. As an optional but non-limiting implementation method, in response to receiving the user's active request, the method of sending the prompt message to the user can be, for example, a pop-up window, and the prompt information can be presented in the form of text in the pop-up window. In addition, the pop-up window can also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the terminal device 200. The above notification and the process of obtaining user authorization are only illustrative and do not constitute a limitation on the implementation method of the present disclosure. Other methods that meet relevant laws and regulations can also be applied to the implementation method of the present disclosure. It is also understandable that the data involved in the technical solution of the present disclosure (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0029] Figure 2 is an interactive flow chart of a form updating method according to an embodiment of the present disclosure; Figure 3 Schematic diagram of data flow in a form update method according to an embodiment of the present disclosure. Figure 2 and Figure 3 The data interaction process involved in form update is described in detail in Figure 2 and Figure 3 The overall detailed description is only for a clearer understanding of the technical solution of the present disclosure and should not be considered as a limitation of the protection scope of the present disclosure. All steps are not necessary to solve the technical problem to be solved by the present disclosure. In the process of implementing the technical idea of the present disclosure, one or some steps may be omitted, or other alternatives may be adopted.
[0030] The form updating method proposed in the present disclosure at least involves a maintenance terminal, a processor, a client, and a memory. The processor and the memory are integrated in the aforementioned server, and the memory is used to store a computer program. When the computer program is executed by the processor, the computer program and the processor perform the form update operation. The maintenance terminal and the client are respectively run on the terminal device of the maintainer or the user, and are used to receive the maintenance data about the form input by the maintainer and the content written by the user in the form, and provide data support for the dependent logic analysis and form update processes of the processor.
[0031] Step S101, the maintenance end inputs dependency fields, target components and update conditions thereof to the processor.
[0032] The original form includes multiple initial items, each of which is presented in the original form in the form of a field. For example, the original form of the product purchase interface includes an initial item representing "model", which is presented in the form of a "model" field. As the user assigns a value to the "model" field, for example, when the user selects or fills in the specific model information of the selected product, the original form will be triggered to add the rendering and display of the form items associated with the model value according to the value entered into the "model" field. The newly added form item can be, for example, "color". In conjunction with the above example, we refer to the form item generated depending on the value of the initial item as the target item, and the code module required to render the target item as the target component. The field that triggers the target component to perform the rendering operation is called the dependent field, which represents the initial field that the target component depends on when it is triggered. The update condition represents the trigger condition for executing the rendering or cancellation of the target component on the original form, including: the current value of the dependent value of the dependent field is different from its original value, and the current value is the expected data that meets the content filling rules or the expected option that meets the selection rules, triggering the addition operation; and, when the current value is null or abnormal data that does not meet the content filling rules, the cancellation operation is triggered.
[0033] In the present disclosure, when implementing the update of the form, the maintainer only needs to set the dependent fields, target components and update conditions, and the required code writing workload is limited to the implementation of the three. After the dependent fields, target components and update conditions are passed to the processor, the processor will automatically analyze the dependent values written by the user based on these three parts, and then automatically render and update the form when the update conditions are met. In other words, when updating the form, the maintainer does not need to exhaust the code writing of the dependent logic between various possible dependent values and update conditions, which greatly reduces the maintainer's code writing and reduces the code maintenance cost. In addition, the dependent fields, target components and update conditions are not unique. When the same dependent field is assigned different dependent values, the triggered target components are different. For example, model A will trigger a target component containing red and yellow; model B will trigger a target component containing purple and yellow, etc.
[0034] It should be noted that the dependent fields of the present disclosure can be written in array form or name path form, which is universal.
[0035] Step S102: the client inputs the dependent value of the dependent field written into the original form into the processor.
[0036] The dependent value is the expected data or expected option assigned by the user to the dependent field in the client. For example, if the dependent field is "color", the expected data or expected option may be "red" or "blue", etc.
[0037] Step S103: When the change of the dependent field makes the extraction environment compliant, the processor extracts the dependent value.
[0038] In order to ensure that the rendering or cancellation of the target item meets the update conditions and reduce the error rate of form updates, after the processor receives the dependent value, it needs to first determine the changes in the dependent fields; only when the changes in each dependent field meet the dependent logic will the dependent value be extracted to execute subsequent steps. The extraction environment indicates whether the conditions for extracting dependent values to update the form are met. When the extraction environment is compliant, it means that the changes in each dependent field meet the dependent logic; otherwise, it means that at least one dependent field has a change that does not meet the dependent logic, then there is no need to change the form.
[0039] Among them, when the dependent field is of Boolean type, the dependent field has the ability to monitor changes in dependent values, and will automatically generate changes in the dependent field. If there is a change, true is returned, which means a change; otherwise, false is returned, which means no change. If the dependent field is not of Boolean type, first build a judgment function for the dependent field, call the current value and original value of the dependent field, and use the judgment function to analyze whether there is a difference between the two. If there is a difference between the two, true is returned; otherwise, false is returned.
[0040] Step S104: The processor matches the dependency value with the update condition to determine the processing requirement.
[0041] The processing requirement indicates the update direction of the target component in the original form, including to be added and to be cancelled. Specifically, when the dependent field changes, if the change of the dependent field is from a null value to the expected data that complies with the content filling rules or the expected option that complies with the selection rules, the processing requirement is to be added, so as to render the target item corresponding to the target component; if the dependent field changes, and the change is from the expected data or the expected option to a null value or an abnormal value, the processing requirement is to be cancelled, so as to cancel the rendering of the existing target component and restore it to a form without the target component but without the dependent field filled in. In other words, when updating the form, the present disclosure supports operations such as rendering and canceling the target options, meets various application scenarios such as users filling in dependent values and clearing dependent values, and supports users' needs to refill the form.
[0042] For example, when the dependency value is changed from "empty value" to "Model A", the processing requirement is to increase the target component "first color scheme component"; when the dependency value is cleared from "Model A" to "empty value", the processing requirement is to cancel the rendered "first color scheme component".
[0043] Step S105 : The processor renders or presents the target component in the original form in response to the processing requirement to form a target form.
[0044] When the processing requirement is to be added, the processor renders the target component in the original form to form a target form containing the target item. When the processing requirement is to be cancelled, the processor cancels the rendering of the target component in the original form to form a target form that proposes the target item.
[0045] Finally, the target form is presented to the client in response to the user's input to the dependent fields. For example, when the user fills in "Model A" in the "Model" field of the original form, the processor analyzes the dependency logic between "Model A" and the target component and its update conditions, determines that the target component to be rendered is the "first color scheme component", and renders the target item corresponding to the target component in the original form. In this way, on the basis of providing users with dynamic forms, the maintainer is reduced in the amount of code writing for the dependency logic of various dependent values, and reduces the cost of manual code writing and maintenance.
[0046] Figure 4 1 is a flowchart of an updating process of a form updating method according to an embodiment of the present disclosure. Figure 4 , the specific implementation process of the form update method is described in detail below.
[0047] The processor runs a logic processing module, which determines the extraction environment of the dependent value and extracts the dependent value based on the changes in the dependent field and the dependent logic. However, the logic processing module only has the ability to cooperate with dependent fields of Boolean type or function type. Therefore, after the maintainer synchronizes the dependent field, target component and update conditions to the processor, it is necessary to determine whether the dependent field is of Boolean type.
[0048] Figure 5 It is a schematic diagram of a processing procedure for determining an extraction environment according to a dependent field according to an embodiment of the present disclosure.
[0049] Combine the following Figure 5 , the process of processing dependent fields until the extraction environment is determined is explained.
[0050] If the dependent field is of Boolean type, when the user fills in or selects the dependent value in the original form, it will automatically monitor its changes and return true or false to indicate the changes of the dependent field.
[0051] If the dependent field is not a Boolean type, a judgment function needs to be constructed for the dependent field. Then, the current value and original value of the dependent field are obtained, and the judgment function is called to determine whether the current value is inconsistent with the original value. If they are inconsistent, the comparison result is returned as the difference and passed to the logic processing module in the form of true; otherwise, the comparison result is returned as the same and passed to the logic processing module in the form of false.
[0052] It should be noted that in some cases, there can be multiple dependent fields.
[0053] After obtaining the changes in each dependent field, the parsing unit of the logic processing module will set the dependency logic according to the update conditions, and match the changes in each dependent field with the dependency logic to determine the extraction environment. The dependency logic is used to characterize the relationship between the overall changes in each dependent field and the trigger conditions of the target component, and at least includes the first logic and the second logic. Among them, the first logic indicates that if the change in any dependent field is a change, the trigger condition for the target component can be met, and the extraction environment is compliant at this time; the second logic indicates that the changes in all the set dependent fields are changes, which can meet the trigger condition for the target component, and the extraction environment is compliant at this time.
[0054] Specifically, determine whether the dependency logic is the first logic; if so, determine whether there is a change in any dependent field; if so, the extraction environment is compliant, otherwise, the extraction environment is abnormal. For example, when the dependency logic is the first logic, if dependent field 1 in the original form is "email address" and dependent field 2 is "telephone", both will trigger the rendering of the target component "name", then when the user fills in or deletes one of the two, the extraction environment is compliant.
[0055] If the dependent logic is not the first logic, then determine whether the changes in each dependent field are all changes; if so, the extraction environment is compliant, otherwise the extraction environment is abnormal. For example, when the dependent logic is the second logic, if dependent field 1 in the original form is "type" and dependent field 2 is "size", when the user fills in or deletes both, the extraction environment is compliant.
[0056] After the extraction environment is determined, the dependency value acquisition unit of the logic processing module will be triggered. The dependency value acquisition unit first determines whether the extraction environment is compliant. If not, it re-monitors the changes in the dependency value. If the extraction environment is compliant, the dependency value is extracted according to the position of the dependent field.
[0057] After obtaining the dependent value, determine whether the dependent value meets the update condition. If the dependent value meets the update condition, the processing requirement is set to be added; otherwise, the processing requirement is set to be cancelled. Further, in response to the processing requirement, the operation of adding or canceling the target component is performed. So that the original form is updated to the target form. Specifically, if the dependent field changes from an empty value to the expected data that meets the content filling rules or the expected options that meet the selection rules, respond to the processing requirement to be added to render the target item corresponding to the target component; if the dependent field changes from the expected data or the expected options to an empty value or an abnormal value, respond to the processing requirement to be cancelled to cancel the rendering of the existing target component and restore it to a form without the target component and without filling in the dependent field.
[0058] In some embodiments, the logic processing module also includes a content rendering unit, which is based on the target design tool and is used to render the initial display component to form an original form. Of course, it is also used to respond to processing requirements and render or cancel the rendering operation of the target component. Among them, the target design tool can be Ant Design (Ant Design System), which has a wealth of components that cover common production and economic needs such as buttons, tables, forms, layouts, navigation and pop-ups, and is universal.
[0059] Figure 6 is a flow chart of a form updating method according to an embodiment of the present disclosure.
[0060] like Figure 6 As shown, the present disclosure proposes a form updating method M200 for implementing the aforementioned solution to at least simplify the development cost of dependent logic for the maintainer.
[0061] The form update method M200 includes: step S210, calling the logic processing module to analyze the changes of the dependent fields of the target component in the original form, and obtaining the dependent values of the dependent fields; step S220, matching the dependent values with the update conditions of the target component, and determining the processing requirements of the form regarding the target component; and step S230, in response to the processing requirements, updating the target component in the original form to obtain the target form.
[0062] Figure 7 is a structural block diagram of a form updating system according to an embodiment of the present disclosure, such as Figure 7As shown, the form update system 1000 includes: a dependency value acquisition module 110, which is used to call the logic processing module to analyze the changes in the dependency fields of the target component in the original form and obtain the dependency values of the dependency fields; a processing requirement determination module 120, which is used to match the dependency values with the update conditions of the target component and determine the processing requirements of the form regarding the target component; and a response module 130, which is used to update the target component in the original form in response to the processing requirements and obtain the target form.
[0063] In some embodiments, the execution steps of the dependency value acquisition module 110 include: calling the parsing unit of the logic processing module to analyze changes in the dependency field and determine the extraction environment, where the dependency field is in array form or name path form; and when the extraction environment is compliant, calling the dependency value acquisition unit of the logic processing module to extract the dependency value of the dependency field.
[0064] Specifically, the method of determining the extraction environment includes: setting dependency logic for dependent fields; if the dependency logic is the first logic, when the change situation of any dependent field is a change, setting the extraction environment to be compliant; or, if the dependency logic is the second logic, when the change situation of each dependent field is a change, setting the extraction environment to be compliant.
[0065] In some implementations, the method further includes: determining the field type of the dependent field; if the field type is not a Boolean type, constructing a determination function for the dependent field.
[0066] In some embodiments, before step S210, it includes: when the dependent field is of Boolean type, using a built-in monitoring mechanism to obtain changes in the dependent field; or when the dependent field is not of Boolean type, using a judgment function to compare the current value and the original value of the dependent field to obtain changes.
[0067] In some embodiments, the execution steps of the processing requirement determination module 120 include: when the dependent value is expected data that complies with the content filling rules or an expected option that complies with the selection rules, determining that the processing requirement is to be increased; or when the dependent value is a null value or abnormal data that does not comply with the content filling rules, determining that the processing requirement is to be cancelled.
[0068] In some embodiments, the execution steps of the response module 130 include: when the processing demand is to be increased, calling the content rendering unit of the logic processing module to render the target component as a target item to form a target form containing the target item; when the processing demand is to be cancelled, calling the content rendering unit to cancel the rendering of the target component to form a target form that excludes the target item.
[0069] In some implementations, the further step includes: based on the target design tool, calling the content rendering unit of the logic processing module to render the initial display component to form an original form.
[0070] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the line of sight process of the corresponding steps in the above-mentioned method, which will not be repeated here.
[0071] The form updating system 1000 may be a cloud server or a physical server, for example Figure 1 The server 100 is shown in FIG.
[0072] The hardware structure of the update system 1000 of the form can be implemented using a bus architecture. The bus architecture can include any number of interconnected buses and bridges, depending on the specific application and overall design constraints of the hardware. The bus 1100 connects various circuits including one or more processors 1200, memory 1300 and / or hardware modules together. The bus 1100 can also connect various other circuits 1400 such as peripherals, voltage regulators, power management circuits, external antennas, etc.
[0073] The bus 1100 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Component (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the figure only uses one connecting line, but does not mean that there is only one bus or one type of bus.
[0074] The present disclosure also provides a readable storage medium, in which a computer program is stored, and the computer program is used to implement the above method when executed by a processor. "Readable storage medium" can be any device that can contain, store, communicate, propagate or transmit a program for use in an instruction execution system, device or equipment or in combination with these instruction execution systems, devices or equipment. More specific examples of readable storage media include the following: an electrical connection portion (electronic device) with one or more wirings, a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and editable read-only memory (EPROM or flash memory), an optical fiber device, and a portable read-only memory (CDROM), etc.
[0075] The present disclosure also provides a computer program product. The method of the present disclosure can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed, the process or function of the present disclosure is executed in whole or in part.
[0076] The computer program or instructions may be stored in a readable storage medium or transmitted from one readable storage medium to another readable storage medium, for example, the computer program or instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired or wireless means. The readable storage medium may be any available medium that can be accessed or a data storage device such as a server, data center, etc. that integrates one or more available media. The available medium may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; it may also be an optical medium, such as a digital video disk; it may also be a semiconductor medium, such as a solid state drive. The computer readable storage medium may be a volatile or non-volatile storage medium, or may include both volatile and non-volatile types of storage media.
[0077] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0078] The present disclosure is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the present disclosure. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0079] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0080] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0081] In the description of this specification, the description with reference to the terms "one embodiment / method", "some embodiments / methods", "example", "specific example", or "some examples" etc. means that the specific features, structures, or characteristics described in conjunction with the embodiment / method or example are included in at least one embodiment / method or example of the present disclosure. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment / method or example. Moreover, the specific features, structures, or characteristics described may be combined in any one or more embodiments / methods or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments / methods or examples described in this specification and features of different embodiments / methods or examples, unless they are contradictory.
[0082] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, "plurality" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0083] Those skilled in the art should understand that the above embodiments are only for the purpose of clearly illustrating the present disclosure, and are not intended to limit the scope of the present disclosure. For those skilled in the art, other changes or modifications may be made based on the above disclosure, and these changes or modifications are still within the scope of the present disclosure.
Claims
1. A form updating method, characterized in that: include: Calling the logic processing module to analyze changes in the dependent fields of the target component in the original form and obtain the dependent values of the dependent fields; Matching the dependency value with the update condition of the target component to determine the processing requirement of the form with respect to the target component; as well as In response to the processing requirement, an update operation is performed on the target component in the original form to obtain a target form.
2. The form updating method according to claim 1, characterized in that: The calling logic processing module analyzes changes in the dependent fields of the target component in the original form to obtain dependent values of the dependent fields, including: Calling the parsing unit of the logic processing module to analyze changes in the dependent field and determine an extraction environment, wherein the dependent field is in an array form or a name path form; and When the extraction environment is compliant, the dependency value obtaining unit of the logic processing module is called to extract the dependency value of the dependency field.
3. The form updating method according to claim 2, characterized in that: The parsing unit calling the logic processing module analyzes the change of the dependent field and determines the extraction environment, including: Setting dependency logic for the dependency field; If the dependency logic is the first logic, when the change of any of the dependency fields is a change, the extraction environment is set to be compliant; or, if the dependency logic is the second logic, when the change of each of the dependency fields is a change, the extraction environment is set to be compliant.
4. The form updating method according to claim 1, characterized in that: Before the calling logic processing module analyzes the change of the dependent field of the target component in the form and obtains the dependent value of the dependent field, the method includes: Determine the field type of the dependent field; If the field type is not a Boolean type, a judgment function is constructed for the dependent field.
5. The method for updating a form according to claim 4, wherein: Before the calling logic processing module analyzes the change of the dependent field of the target component in the form and obtains the dependent value of the dependent field, the method includes: When the dependent field is of Boolean type, using a built-in monitoring mechanism to obtain changes in the dependent field; or When the dependent field is not of the Boolean type, the current value and the original value of the dependent field are compared using the judgment function to obtain the change condition.
6. The form updating method according to claim 1, characterized in that: The step of matching the dependency value with the update condition of the target component to determine the processing requirement of the form with respect to the target component includes: When the dependent value is expected data that complies with the content filling rule or an expected option that complies with the selection rule, determining that the processing requirement is to be added; or When the dependent value is a null value or abnormal data that does not comply with the content filling rule, it is determined that the processing requirement is to be cancelled.
7. The form updating method according to claim 1, characterized in that: In response to the processing requirement, updating the target component in the original form to obtain a target form includes: When the processing requirement is to be increased, calling the content rendering unit of the logic processing module to render the target component as a target item, forming a target form including the target item; When the processing requirement is to be canceled, the content rendering unit is called to cancel the rendering of the target component, forming a target form with the target item removed.
8. A form updating system, characterized in that: include: a memory storing execution instructions; as well as A processor, wherein the processor executes the execution instruction stored in the memory, so that the processor executes the form updating method according to any one of claims 1 to 7.
9. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program is used to implement the form updating method according to any one of claims 1 to 7.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the computer program is used to at least implement the form updating method according to any one of claims 1 to 7 .
