Code-free configuration of form page control system based on form designer

Through the codeless configuration system, the form control object set and expression specification definition module are used to realize complex logic control, which solves the problem of low-code platform coding in complex scenarios, improves configuration capabilities and design efficiency, and enhances the flexibility of the form. performance and maintainability.

CN118466955BActive Publication Date: 2024-09-10NANJING JIRAN SOFTWARE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410923765.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-09-10
Estimated Expiration
2044-07-10

AI Technical Summary

Technical Problem

Existing low-code platforms still need to write code to implement complex business scenarios and logic control, resulting in a high threshold for configuration personnel and affecting the universality of the platform.

Method used

A codeless configuration system based on the form designer is adopted. Through the form control object set, expression specification definition module, expression configuration function module and page monitoring module, the calculation logic and control logic can be described without programming, reducing configuration complexity.

Benefits of technology

It greatly reduces the ability requirements of low-code platform configuration personnel, improves the flexibility and efficiency of form design, enhances the reusability and maintainability of forms, and improves user experience and development efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118466955B
    Figure CN118466955B
Patent Text Reader

Abstract

The present invention discloses a form page control system based on codeless configuration on a form designer, including: a form control object set, an expression specification definition module, an expression configuration function module, an expression parsing module and a page monitoring module. The form page control system based on codeless configuration on a form designer uses expressions to configure control properties, and implements the configuration of these complex page operation logics through monitoring and control references. This method, on the one hand, uses a method that everyone can usually understand to express the calculation logic, and does not require programming thinking. Secondly, it can be used without understanding the development language, which greatly reduces the ability requirements of low-code platform configuration personnel and improves the configuration capabilities of the low-code platform.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of form page control, in particular to a form page control system based on code-free configuration on a form designer. Background Art

[0002] In enterprise management scenarios, websites, and other areas, the low-code platform has lowered the development threshold, but in some complex business scenarios, professional developers may still be required for secondary development and customization. Therefore, the low-code platform is not a code-free platform. Some complex computing scenarios and logical control scenarios still need to be implemented through code.

[0003] The existing publication number CN117492756A discloses a front-end design method for draggable forms and lists on a low-code platform, wherein the component script event is an extension of the component, which is used to execute script operations by writing executable JavaScript strings: the component script events include triggering scripts when component values ​​change and triggering scripts when components lose focus.

[0004] For example, in the application example of the above-mentioned low-code platform in form design, when the form designer of the existing low-code platform is designing a form, for example, for the calculation logic and control logic of complex form controls, when we want to implement a more complex operation logic in the form page, we need to write JavaScript code to implement it, requiring the form configuration personnel to be proficient in JavaScript development language, which greatly increases the threshold for form configuration personnel. For example, if we want to make a physical examination application form in the form, when the age entered in the age control is greater than 40 years old, the cancer screening item in the physical examination item will be automatically checked. The implementation method of some similar scenarios in the low-code platform is to configure an event attribute for the age control, and write JavaScript code to find and replace the style attributes of the control elements in the page. Such complex scenarios account for more than 30% of the actual development process based on low-code, affecting the universality of the low-code platform. Summary of the invention

[0005] In view of the shortcomings of the prior art, the present invention provides a form page control system based on code-free configuration on a form designer, which solves the problem that the existing form control calculation technologies can only achieve low-code but cannot achieve code-free, and some complex computing scenarios and logical control scenarios still need to be implemented through code.

[0006] To achieve the above objectives, the present invention is implemented through the following technical solutions: a form page control system based on code-free configuration on a form designer, comprising:

[0007] The form control object set defines the controls in the page as objects and stores them in the page global object pool Entity for reference when writing expressions;

[0008] The expression specification definition module defines a set of expression writing specifications to describe the calculation logic in a non-programming way;

[0009] The expression configuration function module provides a method to describe the calculation logic based on expression configuration for the properties of each control during form design, and references the objects corresponding to the controls in the form page as variables in the expression;

[0010] The expression parsing module determines which expressions refer to the objects corresponding to the currently triggered controls based on the identified triggering events. Then, the expression parsing module parses the expressions and assigns the results to the properties of the controls on the form page to achieve the calculation logic and page control logic on the page.

[0011] The page monitoring module monitors the events of the page through the business monitoring module and identifies the changes in the control values ​​and properties.

[0012] Preferably, the specific operation steps of the form control object set are:

[0013] S1.1 First, define an object Entity and define properties for Entity to describe the controls in the form designer. When a control is dragged into the form designer, an Entity object is created for it at the same time, and its properties are improved and stored in the control object pool EntityS;

[0014] S1.2 The Entity object establishes a mutual assignment relationship with the form control in the page, that is, when the value in the object changes, the value of the control attribute in the form is automatically adjusted, thereby referencing the changes in the form page. When the value in the form control is modified, the value in the Entity object corresponding to the control is automatically modified.

[0015] Preferably, the specific operation steps of the expression specification definition module are:

[0016] S2.1 Define a set of description specifications and processing methods for operation and judgment logic, describe the operation and judgment logic based on this set of specifications and methods, and name the writing mode of this set of operation and judgment logic "expression";

[0017] S2.2 In expression writing, reference the properties of the control object in EntityS as calculation parameters.

[0018] Preferably, the expression configuration function module configures the expression into the control after defining the specification of expression writing, and adds expression writing, storage and checking capabilities for the attributes of the form control, specifically including:

[0019] Each attribute of the S3.1 form control supports the expression assignment writing method. When configuring the control attributes, write the expression according to the expression specification to meet the calculation requirements of the control attribute assignment;

[0020] S3.2 When configuring the control attribute, write an expression for the attribute value. When the configuration is completed and saved, determine that the attribute value is an expression and store the expression, the control and the association relationship between the controls in the library according to the set format.

[0021] After the S3.3 expression is configured, a two-step check will be performed. The first step is a format check, which performs semantic parsing and analysis on the expression format to determine whether the expression complies with the writing specifications; the second step is a reference relationship check, which filters the expressions in the library to determine whether there are any controls that reference each other; and prompts are given for these two situations.

[0022] Preferably, the expression parsing module obtains the calculation result by parsing and calculating the expression defined in the writing specification, specifically including:

[0023] The S4.1 expression parsing module first performs semantic text parsing on the expression, and then breaks the expression into several elements, which are variables, constants, operators and methods in the expression, and then sorts out the relationship between these elements;

[0024] S4.2 The parsing module first takes the value from the attribute of the variable Entity object as the constant of the operation;

[0025] S4.3 Write a code library of corresponding operation methods for all operators and methods in the expression parsing module;

[0026] The S4.4 module calls the operation method according to the element relationship and sequence parsed from the expression to obtain the value of the expression.

[0027] Preferably, the page monitoring module is a monitoring mechanism, which is used to determine the time points of expression calculation, control assignment, and object assignment, and is used to link the calculation logic based on expression configuration with the user's operation action on the form. The specific steps include:

[0028] S5.1 The monitoring module first registers an event capture method EventCapture for the global event of the form after the form page is loaded. The EventCapture method monitors the changes of controls in the page. When the attribute value of the page control changes, it captures which control and which attribute value has changed and then starts the disposal process;

[0029] S5.2 In the processing flow, first match the Entity object corresponding to the control according to the control information of the triggering event, obtain the values ​​of all attributes of the control object from the form page and compare them with the attributes of the corresponding Entity object. If the values ​​are the same, no processing will be done. If the values ​​are different, assign the values ​​of the control attributes to the corresponding attributes of the Entity object, and record the attributes of the Entity object in the queue RenewList that records the changes, and store them in the queue. If there is no change in the attribute value of the entire control, the task ends after the check is completed;

[0030] After the comparison, S5.3 compares the RenewList queue with the expression reference object properties in the expression library according to the first-in-first-out principle, and checks whether the properties of the Entity object are referenced. At this time, there are two scenarios. One is that there is no match, then the process ends and the properties of the next Entity object in the queue are checked; the second is that only one expression references the properties of the Entity object, then the expression is recorded in the queue PendingList, waiting for the expression to be calculated;

[0031] S5.5 calls the expression parsing module to parse the expression in the queue PendingList, calculates the expression result, and assigns the result to the property of the Entity object corresponding to the control to which the expression belongs;

[0032] S5.6 When assigning values ​​to the properties of the Entity object, a value change occurs. At this time, the action of assigning values ​​to the controls will be executed again to update the properties of the form page controls corresponding to the Exntity object;

[0033] S5.7 When the property value of a control changes, the updated control will also be captured by the event listener, and then the control will be identified and processed again according to the previous process until no expression is matched.

[0034] Preferably, the association between the Entity object and the form control in the form control object set is: the Entity object is a variable set, each variable corresponds to a property of a form control;

[0035] The expression specification definition module defines the Entity object as a set X (X1, X2, ..., XN ) variables and, its expression R is: ;

[0036] The expression parsing module sets the current attribute value of the form control to Rc, then Xc i is the current value of the i-th variable in the set X, that is, ;

[0037] When the page monitoring module detects that the value of the variable has changed, it recalculates the value of the expression, updates the corresponding control, and sets the update attribute value of the form control to Rn. Then Xn i is the updated value of the i-th variable in the set X, that is .

[0038] Preferably, an error handling mechanism is added to the expression parsing module to throw an exception and capture the exception information when an error is encountered when parsing or executing an expression; and a debugging interface or tool is developed to allow users to set breakpoints, step through expressions and view variable values.

[0039] Preferably, the expression parsing module also establishes a connection with an external data source, supports obtaining data from the external data source, and binds the data to the properties of the form control. When the external data changes, the properties and behaviors of the form control are automatically updated. The specific steps include:

[0040] 1) Define a data binding interface or API that allows users to configure data sources and binding rules;

[0041] 2) When the form is loaded or the control properties are changed, data is obtained from the external data source according to the binding rules and the control properties are updated;

[0042] 3) Use asynchronous programming technology to process external data requests to ensure the timeliness and accuracy of data updates.

[0043] Preferably, in the page monitoring module, when the property values ​​of multiple controls change at the same time, batch processing is used to reduce repeated calculations and assignment operations; for monitoring events that do not affect immediate user feedback, asynchronous processing is used to avoid blocking the UI thread; for data that is frequently read but not often changed, a cache mechanism is introduced to reduce unnecessary database or remote service access.

[0044] The present invention provides a form page control system based on codeless configuration on a form designer. Compared with the prior art, it has the following beneficial effects: 1. The form page control system based on codeless configuration on a form designer uses expressions to configure control properties, and implements the configuration of these complex page operation logics through monitoring and control references. On the one hand, this method uses a method that everyone can usually understand to express the calculation logic, and does not require programming thinking. Secondly, it does not require the understanding of development languages ​​to use it, which greatly reduces the ability requirements of low-code platform configuration personnel and improves the configuration capabilities of the low-code platform.

[0045] 2. The form page control system based on the codeless configuration on the form designer, the form design mechanism involved in this system, significantly improves the flexibility and efficiency of form design compared to traditional low-code platforms. Through the close association between Entity objects and form controls, as well as the expression configuration function, developers can easily implement dynamic logic between controls without writing complex code. This mechanism not only reduces the difficulty and cost of development, but also enhances the reusability and maintainability of the form. In addition, the page monitoring module can respond to changes in control values ​​in real time and trigger corresponding business logic, improving the user experience. Overall, these mechanisms provide an efficient, flexible, and easy-to-maintain solution for designing forms on low-code platforms, support complex business logic, and significantly improve development efficiency and the practicality of forms.

[0046] 3. The form page control system based on code-free configuration on the form designer enhances the system's error handling and debugging capabilities, allowing developers to quickly locate and solve problems, while providing flexible debugging tools to improve development efficiency. Secondly, through the dynamic data binding function, the form controls can reflect changes in external data in real time, enhancing the real-time and accuracy of the form. In addition, the use of asynchronous programming technology to process external data requests ensures the timeliness and accuracy of data updates and improves the user experience. These improvements not only simplify the development process and reduce complex code writing, but also make the low-code platform more efficient, flexible and reliable in form design, providing developers with more convenient and powerful tools to build feature-rich form applications.

[0047] 4. This form page control system based on codeless configuration on the form designer significantly reduces repeated calculation and assignment operations by batch processing changes in multiple control property values, thereby improving page response performance. This optimization makes form applications built in low-code platforms smoother, especially when dealing with a large number of controls or complex logic. For monitoring events that do not affect immediate user feedback, asynchronous processing is used to avoid blocking the UI thread. This ensures that the page can respond quickly to user operations, and even if data is being updated or processed in the background, it will not affect the user's normal usage experience. The introduction of a caching mechanism to store data that is frequently read but not often changed reduces unnecessary database or remote service access. This not only speeds up data access, but also reduces the burden on the server and network, further improving page performance and response speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 It is a schematic diagram of the process of the present invention;

[0049] Figure 2 It is a schematic diagram of monitoring and handling logic of the present invention;

[0050] Figure 3 It is a schematic diagram of a form operation case of the present invention. DETAILED DESCRIPTION

[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0052] The present invention provides four technical solutions:

[0053] Figure 1-Figure 3 The first embodiment is shown: a form page control system based on code-free configuration on a form designer, comprising:

[0054] The form control object set defines the controls in the page as objects and stores them in the page global object pool Entity for reference when writing expressions;

[0055] The expression specification definition module defines a set of expression writing specifications to describe the calculation logic in a non-programming way;

[0056] The expression configuration function module provides a method to describe the calculation logic based on expression configuration for the properties of each control during form design, and references the objects corresponding to the controls in the form page as variables in the expression;

[0057] The expression parsing module determines which expressions refer to the objects corresponding to the currently triggered controls based on the identified triggering events. Then, the expression parsing module parses the expressions and assigns the results to the properties of the controls on the form page to achieve the calculation logic and page control logic on the page.

[0058] The page monitoring module monitors the events of the page through the business monitoring module and identifies the changes in the control values ​​and properties.

[0059] This system defines a specification and method for calculating expressions, which is used to describe some complex calculation logic, and implements a set of functions for parsing the expression and a method library for parsing, so as to parse and calculate the expression and calculate the result of the operation. The expression is applied to the design and configuration of the low-code platform to configure various properties of the control, expanding the configuration capability of the control properties; and a monitoring module is added to the page to monitor the changes of the controls in the page. When the change is found, it determines whether the control value is referenced by which expression. When it is judged to be referenced, the result of the expression will be recalculated through the expression parsing module, and the result will be assigned to the property of the control to which the expression belongs; through the expression method, the page logic operations that originally needed to be implemented by writing the JAVASCRIPT programming language have been turned into configuration, which improves the configuration capability of the low-code platform and greatly reduces the ability requirements of the low-code platform configuration personnel.

[0060] This system uses expressions to configure control properties, and implements the configuration of these complex page operation logics through monitoring and control references. On the one hand, this method uses a method that everyone can generally understand to express the calculation logic, which does not require programming thinking. Secondly, it does not require knowledge of development languages ​​to use it, which greatly reduces the ability requirements of low-code platform configuration personnel and improves the configuration capabilities of the low-code platform.

[0061] The specific operation steps of the form control object set are:

[0062] S1.1 First define an object Entity and define the properties for Entity. The properties are as follows:

[0063] [nnf_size] width and position offset; the width valid range is 6-24, the position offset valid range is 0-18;

[0064] [label] Field name (will be displayed in the form);

[0065] [required] Whether it is required;

[0066] [regex] Regular expression validation;

[0067] [regex_text] Regular expression verification error prompt;

[0068] [tester] Customized validation expression (returning true means the validation passed);

[0069] [tester_text] Customize the error prompt of the validation expression;

[0070] [label-width] Label width, inherited from the "main container" by default;

[0071] [hide-if-empty] Whether to hide this component when the variable has no value (in the case of disabled);

[0072] [clearable] Whether the option can be cleared when selecting a single option;

[0073] [placeholder] Input box placeholder text;

[0074] [valueVariable] variable name (create a new variable, or reference an existing variable);

[0075] [initValue] The initial value of the variable;

[0076] [multiple] Whether to use multiple selection mode;

[0077] [options] data source;

[0078] [textVariable] text field;

[0079] [disabled] Whether to disable;

[0080] [defaultValue] Default Value (applied when the option is changed);

[0081] [mlMark] Whether to mark the option with a multilingual mark;

[0082] [dependOn] Dependency variable; if the variable used in the expression changes, reset the value of the current component;

[0083] Used to describe the controls in the form designer. When a control is dragged into the form designer, an Entity object is created for it at the same time, and its properties are improved and stored in the control object pool EntityS;

[0084] S1.2 The Entity object establishes a mutual assignment relationship with the form control in the page, that is, when the value in the object changes, the value of the control attribute in the form is automatically adjusted, thereby referencing the changes in the form page. When the value in the form control is modified, the value in the Entity object corresponding to the control is automatically modified.

[0085] The specific operation steps of the expression specification definition module are:

[0086] S2.1 defines a set of description specifications and processing methods for operation and judgment logic. Based on this set of specifications and methods, the operation and judgment logic is described, and the writing mode of this set of operation and judgment logic is named "expression". The writing specification of the expression requires that all expressions start with "=", such as "=EntityS.age.value>50?True:False". If this expression is configured in the disable and enable attribute (disabled) of the form A control, the operation logic implemented is that if the value of the age control in the form is greater than 50, the A control is enabled, otherwise the A control is disabled.

[0087] S2.2 In expression writing, reference the properties of the control object in EntityS as calculation parameters.

[0088] Define operators for writing expressions in a standard way:

[0089] Provides operators: + / - / > / < / == / a> b?a:b / ();

[0090] Provides digital processing methods add(), ceil(), divide(), floor(), max(), maxBy(), mean(), meanBy(), min(), minBy(), multiply(), round(), subtract(), sum(), sumBy();

[0091] Provides text processing methods camelCase(), capitalize(), deburr(), endsWith(), escape(), escapeRegExp(), kebabCase(), lowerCase(), lowerFirst(), replace(), split(), startCase(), template(), toLower(), toUpper(), trim(), trimEnd(), trimStart();

[0092] Provides time processing methods such as dateNow(), dateLength(), day(), year(), month(), week(), etc.

[0093] The expression configuration function module configures the expression into the control after defining the expression writing specification, and adds expression writing, storage and checking capabilities for the properties of the form control, specifically including:

[0094] Each attribute of the S3.1 form control supports the expression assignment writing method. When configuring the control attributes, write the expression according to the expression specification to meet the calculation requirements of the control attribute assignment;

[0095] S3.2 When configuring the control property, write an expression for the property value. When the configuration is completed and saved, determine that the property value is an expression and store the expression, the control and the relationship between the controls in the library according to the set format (control property, expression, [Entity. Object property]);

[0096] After the S3.3 expression is configured, a two-step check will be performed. The first step is a format check, which performs semantic parsing and analysis on the expression format to determine whether the expression complies with the writing specifications; the second step is a reference relationship check, which filters the expressions in the library to determine whether there are any controls that reference each other; and prompts are given for these two situations.

[0097] The expression parsing module obtains the calculation result by parsing and calculating the expression defined in the writing specification, specifically including:

[0098] The S4.1 expression parsing module first performs semantic text parsing on the expression, and then breaks the expression into several elements, which are variables, constants, operators and methods in the expression, and then sorts out the relationship between these elements;

[0099] S4.2 The parsing module first takes the value from the attribute of the variable Entity object as the constant of the operation;

[0100] S4.3 Write a code library of corresponding operation methods for all operators and methods in the expression parsing module;

[0101] The S4.4 module calls the operation method according to the element relationship and sequence parsed from the expression to obtain the value of the expression.

[0102] The page monitoring module is a monitoring mechanism, which is used to determine the time points of expression calculation, control assignment, and object assignment, and is used to link the calculation logic based on expression configuration with the user's operation actions on the form. The specific steps include:

[0103] S5.1 The monitoring module first registers an event capture method EventCapture for the global event of the form after the form page is loaded. The EventCapture method monitors the changes of controls in the page. When the attribute value of the page control changes, it captures which control and which attribute value has changed and then starts the disposal process;

[0104] S5.2 In the processing flow, first match the Entity object corresponding to the control according to the control information of the triggering event, obtain the values ​​of all attributes of the control object from the form page and compare them with the attributes of the corresponding Entity object. If the values ​​are the same, no processing will be done. If the values ​​are different, assign the values ​​of the control attributes to the corresponding attributes of the Entity object, and record the attributes of the Entity object in the queue RenewList that records the changes, and store them in the queue. If there is no change in the attribute value of the entire control, the task ends after the check is completed;

[0105] After the comparison, S5.3 compares the RenewList queue with the expression reference object properties in the expression library according to the first-in-first-out principle, and checks whether the properties of the Entity object are referenced. At this time, there are two scenarios. One is that there is no match, then the process ends and the properties of the next Entity object in the queue are checked; the second is that only one expression references the properties of the Entity object, then the expression is recorded in the queue PendingList, waiting for the expression to be calculated;

[0106] S5.5 calls the expression parsing module to parse the expression in the queue PendingList, calculates the expression result, and assigns the result to the property of the Entity object corresponding to the control to which the expression belongs;

[0107] S5.6 When assigning values ​​to the properties of the Entity object, a value change occurs. At this time, the action of assigning values ​​to the controls will be executed again to update the properties of the form page controls corresponding to the Exntity object;

[0108] S5.7 When the property value of a control changes, the updated control will also be captured by the event listener, and then the control will be identified and processed again according to the previous process until no expression is matched. Since the automatic check is done during the early expression configuration, mutual references are avoided and there will be no dead loop scenario. The entire monitoring and processing logic is as follows Figure 2 As shown:

[0109] The association between the Entity object and the form control in the form control object set is: the Entity object is a variable set, each variable corresponds to a property of a form control;

[0110] The expression specification definition module defines the Entity object as a set X (X1, X2, ..., X N ) variables and, its expression R is: ;

[0111] The expression parsing module sets the current attribute value of the form control to Rc, then Xc i is the current value of the i-th variable in the set X, that is, ;

[0112] When the page monitoring module detects that the value of the variable has changed, it recalculates the value of the expression, updates the corresponding control, and sets the update attribute value of the form control to Rn. Then Xn i is the updated value of the i-th variable in the set X, that is .

[0113] The form design mechanism involved in this system significantly improves the flexibility and efficiency of form design compared to traditional low-code platforms. Through the close association between Entity objects and form controls, as well as the expression configuration function, developers can easily implement dynamic logic between controls without writing complex code. This mechanism not only reduces the difficulty and cost of development, but also enhances the reusability and maintainability of the form. In addition, the page monitoring module can respond to changes in control values ​​in real time and trigger corresponding business logic, improving the user experience. Overall, these mechanisms provide an efficient, flexible, and easy-to-maintain solution for designing forms on low-code platforms, support complex business logic, and significantly improve development efficiency and the practicality of forms.

[0114] The third implementation method is mainly different from the second implementation method in that an error handling mechanism is added to the expression parsing module, and an exception is thrown and the exception information is captured when an error is encountered when parsing or executing an expression; and a debugging interface or tool is developed to allow users to set breakpoints, step through expressions, and view variable values.

[0115] The expression parsing module also establishes a connection with an external data source, supports obtaining data from the external data source, and binds the data to the properties of the form control. When the external data changes, the properties and behaviors of the form control are automatically updated. The specific steps include:

[0116] 1) Define a data binding interface or API that allows users to configure data sources and binding rules;

[0117] 2) When the form is loaded or the control properties are changed, data is obtained from the external data source according to the binding rules and the control properties are updated;

[0118] 3) Use asynchronous programming technology to process external data requests to ensure the timeliness and accuracy of data updates.

[0119] The solution of this embodiment first enhances the error handling and debugging capabilities of the system, allowing developers to quickly locate and solve problems, while providing flexible debugging tools to improve development efficiency. Secondly, through the dynamic data binding function, the form controls can reflect changes in external data in real time, enhancing the real-time and accuracy of the form. In addition, the use of asynchronous programming technology to process external data requests ensures the timeliness and accuracy of data updates and improves the user experience. These improvements not only simplify the development process and reduce complex code writing, but also make the low-code platform more efficient, flexible and reliable in form design, providing developers with more convenient and powerful tools to build feature-rich form applications.

[0120] The fourth implementation mode is mainly different from the second implementation mode in that: in the page monitoring module, when the property values ​​of multiple controls change at the same time, batch processing is used to reduce repeated calculations and assignment operations to improve performance; for monitoring events that do not affect immediate user feedback, asynchronous processing is used to avoid blocking the UI thread and improve page response speed; for data that is frequently read but not often changed, a cache mechanism is introduced to reduce unnecessary database or remote service access.

[0121] The monitoring event rules that do not affect immediate user feedback are:

[0122] ① Non-critical path events: If the monitored events are not directly related to the core functions of the page or the main operation flow of the user, they can be regarded as events that do not affect immediate user feedback. For example, the update of background data, changes in non-critical areas of the user interface, etc.

[0123] ② Delay tolerance: If the processing results of an event do not need to be displayed to the user immediately, or the user has a certain tolerance for the delay of the processing results, then these events can be regarded as events that do not affect immediate user feedback. For example, the collection of statistical data, the recording of logs, etc.

[0124] ③ Non-UI blocking: Any event that may block the UI thread or cause the page to freeze should not be processed immediately. These events should be marked as asynchronous processing to ensure the smoothness of the page.

[0125] ④ Resource consumption assessment: For events that require a lot of computing resources or network requests, if their processing may affect the response speed of the page, asynchronous processing should also be considered.

[0126] The rules for data that is frequently read but not often changed are:

[0127] ① Data stability assessment: For data that needs to be read frequently, first assess the frequency of its changes. If the data will not change in a short period of time (such as a few minutes, hours, or longer), then consider introducing a caching mechanism.

[0128] ②Access frequency: Evaluate the access frequency of data. If a data item is frequently requested and each request needs to be obtained from the database or remote service, then introducing a cache can significantly improve performance.

[0129] ③ Data consistency requirements: For data that needs to maintain a high degree of consistency (such as user account information, transaction data, etc.), the use of cache needs to be cautious. In these cases, you should ensure that the cache data is updated synchronously with the source data, or avoid using the cache.

[0130] ④ Cache expiration policy: Set a reasonable expiration time for cached data. The expiration time should be determined based on the frequency of data changes and access frequency. If the data changes frequently, the expiration time should be set shorter; if the data changes infrequently but is frequently accessed, the expiration time can be set longer.

[0131] ⑤Cache cleanup mechanism: When cached data expires, becomes invalid, or occupies too many resources, there should be a corresponding cleanup mechanism to release resources and keep the cache in a healthy state.

[0132] ⑥Cache monitoring: monitor cache usage, including cache hit rate, cache size, cache clearing frequency, etc.

[0133] By batch processing changes in multiple control property values, repeated calculations and assignment operations are significantly reduced, thereby improving the performance of page response. This optimization makes form applications built in low-code platforms smoother, especially when dealing with a large number of controls or complex logic. For listening events that do not affect immediate user feedback, asynchronous processing is used to avoid blocking the UI thread. This ensures that the page can respond quickly to user operations, and even if data is being updated or processed in the background, it will not affect the user's normal usage experience. The introduction of a caching mechanism to store data that is frequently read but not often changed reduces unnecessary database or remote service access. This not only speeds up data access, but also reduces the burden on the server and network, further improving page performance and response speed.

[0134] Meanwhile, the contents not described in detail in this specification belong to the prior art known to those skilled in the art.

[0135] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0136] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A form page control system based on code-free configuration on a form designer, characterized by: include: The form control object set defines the controls in the page as objects and stores them in the page global object pool Entity for reference when writing expressions; The expression specification definition module defines a set of expression writing specifications to describe the calculation logic in a non-programming way; The expression configuration function module provides a method to describe the calculation logic based on expression configuration for the properties of each control during form design, and references the objects corresponding to the controls in the form page as variables in the expression; The expression parsing module determines which expressions refer to the objects corresponding to the currently triggered controls based on the identified triggering events. Then, the expression parsing module parses the expressions and assigns the results to the properties of the controls on the form page to achieve the calculation logic and page control logic on the page. The page monitoring module monitors page events through the business monitoring module and identifies changes in control values ​​and properties; The page monitoring module is a monitoring mechanism, which is used to determine the time points of expression calculation, control assignment, and object assignment, and is used to link the calculation logic based on expression configuration with the user's operation actions on the form. The specific steps include: S5.1 The monitoring module first registers an event capture method EventCapture for the global event of the form after the form page is loaded. The EventCapture method monitors the changes of controls in the page. When the attribute value of the page control changes, it captures which control and which attribute value has changed and then starts the disposal process; S5.2 In the processing flow, first match the Entity object corresponding to the control according to the control information of the triggering event, obtain the values ​​of all attributes of the control object from the form page and compare them with the attributes of the corresponding Entity object. If the values ​​are the same, no processing will be done. If the values ​​are different, assign the values ​​of the control attributes to the corresponding attributes of the Entity object, and record the attributes of the Entity object in the queue RenewList that records the changes, and store them in the queue. If there is no change in the attribute value of the entire control, the task ends after the check is completed; After the comparison, S5.3 compares the RenewList queue with the expression reference object properties in the expression library according to the first-in-first-out principle, and checks whether the properties of the Entity object are referenced. At this time, there are two scenarios. One is that there is no match, then the process ends and the properties of the next Entity object in the queue are checked; the second is that only one expression references the properties of the Entity object, then the expression is recorded in the queue PendingList, waiting for the expression to be calculated; S5.5 calls the expression parsing module to parse the expression in the queue PendingList, calculates the expression result, and assigns the result to the property of the Entity object corresponding to the control to which the expression belongs; S5.6 When assigning values ​​to the properties of the Entity object, a value change occurs. At this time, the action of assigning values ​​to the controls will be executed again to update the properties of the form page controls corresponding to the Exntity object. S5.7 When the property value of a control changes, the updated control will also be captured by the event listener, and then the control will be identified and processed again according to the previous process until no expression is matched.

2. The form page control system based on code-free configuration on a form designer according to claim 1, characterized in that: The specific operation steps of the form control object set are: S1.1 First, define an object Entity and define properties for Entity to describe the controls in the form designer. When a control is dragged into the form designer, an Entity object is created for it at the same time, and its properties are improved and stored in the control object pool EntityS; S1.2 The Entity object establishes a mutual assignment relationship with the form control in the page, that is, when the value in the object changes, the value of the control attribute in the form is automatically adjusted, thereby referencing the changes in the form page. When the value in the form control is modified, the value in the Entity object corresponding to the control is automatically modified.

3. The form page control system based on code-free configuration on a form designer according to claim 1, characterized in that: The specific operation steps of the expression specification definition module are: S2.1 defines a set of description specifications and processing methods for operation and judgment logic, describes the operation and judgment logic based on this set of specifications and methods, and names the writing mode of this set of operation and judgment logic as "expression"; S2.2 In expression writing, reference the properties of the control objects in EntityS as calculation parameters.

4. The form page control system based on code-free configuration on a form designer according to claim 1, characterized in that: The expression configuration function module configures the expression into the control after defining the expression writing specification, and adds expression writing, storage and checking capabilities for the properties of the form control, specifically including: Each attribute of the S3.1 form control supports the expression assignment writing method. When configuring the control attributes, write the expression according to the expression specification to meet the calculation requirements of the control attribute assignment; S3.2 When configuring the control attribute, write an expression for the attribute value. When the configuration is completed and saved, determine that the attribute value is an expression and store the expression, the control and the association relationship between the controls in the library according to the set format. After the S3.3 expression is configured, a two-step check will be performed. The first step is a format check, which performs semantic parsing and analysis on the expression format to determine whether the expression complies with the writing specifications; the second step is a reference relationship check, which filters the expressions in the library to determine whether there are any controls that reference each other; and prompts are given for these two situations.

5. The form page control system based on code-free configuration on a form designer according to claim 1, characterized in that: The expression parsing module obtains the calculation result by parsing and calculating the expression defined in the writing specification, specifically including: The S4.1 expression parsing module first performs semantic text parsing on the expression, and then breaks the expression into several elements, which are variables, constants, operators and methods in the expression, and then sorts out the relationship between these elements; S4.2 The parsing module first takes the value from the attribute of the variable Entity object as the constant of the operation; S4.3 Write a code library of corresponding operation methods for all operators and methods in the expression parsing module; The S4.4 module calls the operation method according to the element relationship and sequence parsed from the expression to obtain the value of the expression.

6. The form page control system based on code-free configuration on a form designer according to claim 1, characterized in that: The association between the Entity object and the form control in the form control object set is: the Entity object is a variable set, each variable corresponds to a property of a form control; The expression specification definition module defines the Entity object as a set X (X1, X2, ..., X N ) variables and, its expression R is: ; The expression parsing module sets the current attribute value of the form control to Rc, then Xc i is the current value of the i-th variable in the set X, that is, ; When the page monitoring module detects that the value of the variable has changed, it recalculates the value of the expression, updates the corresponding control, and sets the update attribute value of the form control to Rn. Then Xn i is the updated value of the i-th variable in the set X, that is .

7. The form page control system based on code-free configuration on a form designer according to claim 1, characterized in that: Add an error handling mechanism in the expression parsing module to throw an exception and capture the exception information when an error occurs when parsing or executing an expression; And develop a debugging interface or tool that allows users to set breakpoints, step through expressions, and view variable values.

8. The form page control system based on code-free configuration on a form designer according to claim 1, characterized in that: The expression parsing module also establishes a connection with an external data source, supports obtaining data from the external data source, and binds the data to the properties of the form control. When the external data changes, the properties and behaviors of the form control are automatically updated. The specific steps include: 1) Define a data binding interface or API that allows users to configure data sources and binding rules; 2) When the form is loaded or the control properties are changed, data is obtained from the external data source according to the binding rules and the control properties are updated; 3) Use asynchronous programming technology to process external data requests to ensure the timeliness and accuracy of data updates.

9. The form page control system based on code-free configuration on a form designer according to claim 1, characterized in that: In the page monitoring module, when the property values ​​of multiple controls change at the same time, batch processing is used to reduce repeated calculations and assignment operations; for monitoring events that do not affect immediate user feedback, asynchronous processing is used to avoid blocking the UI thread; for data that is frequently read but not often changed, a cache mechanism is introduced to reduce unnecessary database or remote service access.

Citation Information

Patent Citations

  • Front-end design method and device for draggable forms and lists of low-code platform

    CN117492756A

  • Form design method and system based on form designer and event rules

    CN112579071A

  • Low-code form opening method, system and device based on configuration

    CN114035773A

  • Method for configuration execution between user-defined form controls

    CN114185528A

  • Interface building / design tool for generating nested interface systems and displays

    US20060112073A1