A method for dynamically loading configurations involving changing items in a dynamic form
Through the dynamic form configuration method, the dynamic loading of virtual forms and option controls is solved, and the form implementation method in the existing technology cannot adapt to business needs is improved, and the form reusability and flexibility is improved, and maintenance costs are reduced.
Patent Information
- Application Number
- CN202210947683.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-09
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2042-08-09
AI Technical Summary
In the existing technology, in the office automation of enterprises, the general front-end form implementation method cannot meet different business needs, and the customized development method is low in reusability and difficult to adjust, resulting in high system maintenance costs and difficult to meet the needs of business development and management system upgrade.
Using the method of dynamic forms involving changing items to dynamic load configurations, by creating virtual forms, defining option controls and changing option controls, combining static data, data dictionary and remote data, the interface configuration of form content and data source configuration are realized, and online Programmatically implement dynamic loading of different changes.
It improves the reusability of forms, reduces code repetitive development, reduces the investment cost of enterprises, and realizes dynamic custom configuration of changes to adapt to business changes.
Smart Images

Figure CN115129302B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of computer data files, and in particular to a method for dynamically loading configuration of change items in a dynamic form. Background Art
[0002] With the rapid development of information technology, the degree of office automation in enterprises has been increasingly improved, and the informatization of electronic documents within enterprises has been strengthened. In the past, it was time-consuming and labor-intensive to manually organize document content and enter it into downstream systems. In order to improve the efficiency and quality of document compilation, most companies have carried out structured management of document information.
[0003] In the process of structured management, the document form involves dynamic loading of change items. According to different form change items, the common front-end form operation currently adopts the following two methods: one is a general implementation method, which uses general controls to drag and drop to dynamically generate forms. The other is to combine the company's current business conditions, specific data and document templates, and customize development according to the differentiated needs of customers.
[0004] However, these two front-end form operation methods have the following disadvantages:
[0005] 1. The general implementation method uses general controls to dynamically draw and generate forms by dragging and dropping, which cannot meet the business needs of different forms.
[0006] 2. Based on the current business situation of the enterprise, according to the specific data combined with the document template, customized development is carried out according to the differentiated needs of customers. This method has low reusability, is not easy to adjust, and is not conducive to maintenance. In addition, with the development of the enterprise's business and the upgrading of the management system, the original software is no longer suitable for development. It is inevitable that the enterprise will encounter strategic adjustments and changes in concepts through iterative upgrades to meet current or future business needs. The system will undergo major adjustments or upgrades, and the subsequent continuous investment costs will also increase accordingly. Summary of the invention
[0007] In view of the above technical defects, the present invention proposes a method for dynamically loading configuration of change items in a dynamic form, comprising the following steps:
[0008] S1: Create a virtual form;
[0009] It includes a table splitting component, which includes a virtual form creation module and a selectable table column module;
[0010] The selectable table column module is used to select selectable columns; the selectable columns are all the columns of the table;
[0011] The virtual form creation module is used to create a virtual form, which is a form that needs to be displayed in a document;
[0012] In the virtual form creation module, click the New Form button and select New Virtual Form to create a virtual form.
[0013] After creating a virtual form, select the columns that need to be displayed in the virtual form in the selectable table column module, and the selected columns are presented in the virtual form.
[0014] S2: Define option controls: define option controls and control contents;
[0015] Includes a form editor, which is used to define the contents of controls in a virtual form;
[0016] The following sub-steps are included:
[0017] S21: adding option controls to the virtual form and performing layout design on the controls;
[0018] S22: define the content of the option control;
[0019] In the form editor, define the content of the option control according to the actual needs of the user, and select the data source of the content of the option control in the virtual form;
[0020] The content data of the option control comes from the configured static data, data dictionary and remote data;
[0021] The static data has the following characteristics: the data set in this way will not change over time and other factors in the system, and is only used for the form elements set in the current form, and cannot be reused by other elements. The data that is unique to the form elements and will not be reused can be used in this way;
[0022] The data dictionary has the following features: the system provides a data dictionary customization function, and general static data sources can be maintained by category, which facilitates data source reuse for multiple forms or multiple elements;
[0023] The remote data has the following features: it can be integrated with other systems and dynamically obtain data sources in other systems. It can obtain data from data sources through interface connection. For the interface used, the system provides an interface management interface, which can be configured according to business needs, and the interface name can be submitted for selection for form elements;
[0024] S3: define the content of the change option control;
[0025] In the virtual form, select the option control that needs to be changed, and define the corresponding change option control content according to the user's needs for the selected change option control;
[0026] Change the content of the option control to add a table control. When there are multiple controls, define the multiple controls within the range of an area control.
[0027] S4: Control the dynamic display or hiding of the content of the change option control;
[0028] The form editor includes a check box, and the check box includes an interface for events;
[0029] Check different options for the change options, and configure the code through the event interface to display or hide the content of the change option control;
[0030] If there are multiple table controls in each change option control content, all table controls are stored in the group control as a whole, and the overall options are displayed or hidden through the interface configuration code.
[0031] Beneficial effects:
[0032] According to the present invention, the dynamic form involves a method for dynamically loading and configuring the change items. By dynamically configuring the interface configuration and data source configuration of the structured form content elements, and then implementing the dynamic loading and configuration methods of different change items through online programming, the change items can be dynamically configured. This structured method of dynamic configuration enables different change options to be dynamically customized and configured. It reduces code duplication development, improves reusability, and reduces enterprise investment costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 A schematic diagram of the effect of table splitting in a method for dynamically loading configuration of a change item in a dynamic form of the present invention;
[0034] Figure 2 It is a schematic diagram of the effect of selecting a method for changing option data in Embodiment 2 of a method for dynamically loading configuration of a change item in a dynamic form of the present invention;
[0035] Figure 3 It is a schematic diagram of the effect of defining the content of the changing option control in Embodiment 2 of a method for dynamically loading configuration of changing items in a dynamic form of the present invention;
[0036] Figure 4 It is a schematic diagram of the effect of displaying and hiding the content by checking the change option control in Example 2 of a method for dynamically loading configuration of a change item in a dynamic form of the present invention. DETAILED DESCRIPTION
[0037] In order to provide a further understanding of the purpose, structure, features, and functions of the present invention, the following detailed description is given in conjunction with the embodiments.
[0038] Example 1
[0039] like Figure 1 As shown, a method for dynamically loading configuration of a dynamic form involving a change item includes the following steps:
[0040] S1: Create a virtual form;
[0041] It includes a table splitting component, which includes a virtual form creation module and a selectable table column module;
[0042] The selectable table column module is used to select selectable columns; the selectable columns are all the columns of the table;
[0043] The virtual form creation module is used to create a virtual form, which is a form that needs to be displayed in a document;
[0044] In the virtual form creation module, click the New Form button and select New Virtual Form to create a virtual form.
[0045] After creating a virtual form, select the columns that need to be displayed in the virtual form in the selectable table columns module, and the selected columns are presented in the virtual form;
[0046] Further, it includes creating multiple virtual tables, selecting columns to be displayed in the virtual table in the selectable table column module, the selected columns are presented in the corresponding virtual table, and the selected columns become columns of the virtual table.
[0047] Furthermore, it also includes a module for setting the presentation order of virtual table columns, and the module for setting the presentation order of virtual table columns is used to set the presentation order of columns in the virtual table;
[0048] The present invention creates a virtual table through a virtual table creation module. By checking the selectable table columns, it not only solves the problem that there are too many columns, resulting in the inability to print documents on the same sheet of paper; it also solves the problem of customizing display columns of multiple duplicate tables according to business needs.
[0049] S2: Define option controls: define option controls and control contents;
[0050] Includes a form editor, which is used to define the contents of controls in a virtual form;
[0051] The following sub-steps are included:
[0052] S21: adding option controls to the virtual form and performing layout design on the controls;
[0053] S22: define the content of the option control;
[0054] In the form editor, define the content of the option control according to the actual needs of the user, and select the data source of the content of the option control in the virtual form;
[0055] The content data of the option control comes from the configured static data, data dictionary and remote data;
[0056] The static data has the following characteristics: the data set in this way will not change over time and other factors in the system, and is only used for the form elements set in the current form, and cannot be reused by other elements. The data that is unique to the form elements and will not be reused can be used in this way;
[0057] The data dictionary has the following features: the system provides a data dictionary customization function, and general static data sources can be maintained by category, which facilitates data source reuse for multiple forms or multiple elements;
[0058] The remote data has the following features: it can be integrated with other systems and dynamically obtain data sources in other systems. It can obtain data from data sources through interface connection. For the interface used, the system provides an interface management interface, which can be configured according to business needs, and the interface name can be submitted for selection for form elements;
[0059] S3: define the content of the change option control;
[0060] In the virtual form, select the option control that needs to be changed, and define the corresponding change option control content according to the user's needs for the selected change option control;
[0061] Change the content of the option control to add a table control. When there are multiple controls, define the multiple controls within the range of an area control.
[0062] S4: Control the dynamic display or hiding of the content of the change option control;
[0063] The form editor includes a check box, and the check box includes an interface for events;
[0064] Check different options for the change options, and configure the code through the event interface to display or hide the content of the change option control;
[0065] If there are multiple table controls in each change option control content, all table controls are stored in the group control as a whole, and the overall options are displayed or hidden through the interface configuration code.
[0066] Example 2
[0067] like Figure 1 , Figure 2 , Figure 3 , Figure 4 As shown, a method for dynamically loading configuration of a dynamic form involving a change item according to the present invention comprises the following steps:
[0068] S1: Create a virtual form;
[0069] It includes a table splitting component, which includes a virtual form creation module and a selectable table column module;
[0070] The selectable table column module is used to select selectable columns; the selectable columns are all the columns of the table;
[0071] The virtual form creation module is used to create a virtual form, which is a form that needs to be displayed in a document;
[0072] In the virtual form creation module, click the New Form button and select New Virtual Form to create a virtual form.
[0073] After creating a virtual form, select the columns that need to be displayed in the virtual form in the selectable table columns module, and the selected columns are presented in the virtual form;
[0074] S2: Define option control: define multiple-select control and control content;
[0075] Define a multiple-select control in the form and define the data source for the multiple-select control. Define data using the option control, and define data configuration using one of the following methods: static data, data dictionary, or remote data.
[0076] Figure 2 The data of the defined change options is in "static data" mode. Three change options are defined. You can check different options among the above three options to control the display or hiding of the corresponding controls below.
[0077] S3: define change option controls;
[0078] Define the corresponding option content below for the above three options, which can be a table or other controls. When there are multiple controls, multiple controls can be defined within the range of an area control. Figure 3 The option content controls corresponding to three options are defined - drawing detail / EBOM changes, temporary changes to self-made parts (including outsourcing), and temporary changes to purchased parts.
[0079] S4: Control the dynamic display or hiding of the content of the change option control;
[0080] like Figure 4 As shown, different options are checked for the change options, and the code is configured through the event interface to realize the dynamic display or hiding of the table control in the form, that is, to realize the display or hiding of the content of the change option control;
[0081] If there are multiple table controls in each change option control content, all table controls are stored in the group control as a whole, and the overall options are displayed or hidden through the interface configuration code.
[0082] The present invention has been described by the above-mentioned relevant embodiments, however, the above-mentioned embodiments are only examples for implementing the present invention. It must be pointed out that the disclosed embodiments do not limit the scope of the present invention. On the contrary, changes and modifications made without departing from the spirit and scope of the present invention are all within the scope of patent protection of the present invention.
Claims
1. A method for dynamically loading configuration of a dynamic form involving a change item, characterized in that: The following steps are involved: S1: Create a virtual form; It includes a table splitting component, which includes a virtual form creation module and a selectable table column module; In the virtual form creation module, click the New Form button and select New Virtual Form, and a virtual form will be created. S2: Define option controls: define option controls and control contents; S21: adding option controls to the virtual form and designing the layout of the controls; S22: define the content of the option control; Includes a form editor, which is used to define the contents of controls in a virtual form; Define the content of the option control in the form editor according to the actual needs of the user; Select the data source of the option control content in the virtual form; S3: define the content of the change option control; In the virtual form, select the option control that needs to be changed, and define the corresponding change option control content according to user needs; S4: Control the dynamic display or hiding of the content of the change option control; The form editor includes a check box, and the check box includes an interface for an event; Check different options for the change option control, and configure the code through the event interface to display or hide the content of the change option control.
2. A method for dynamically loading configuration of a dynamic form involving a change item as claimed in claim 1, characterized in that: In step S1, after creating a virtual form, columns to be displayed in the virtual form are selected in the selectable table column module, and the selected columns are presented in the virtual form; The method includes creating a plurality of virtual forms, selecting columns to be displayed in the virtual forms in a selectable table column module, and presenting the selected columns in the corresponding virtual forms, and the selected columns become columns of the virtual forms; It also includes a module for setting the presentation order of virtual table columns, which is used to set the presentation order of columns in the virtual table.
3. A method for dynamically loading configuration of a dynamic form involving a change item as claimed in claim 1, characterized in that: In step S2, the content data of the option control comes from the configured static data, data dictionary and remote data.
4. A method for dynamically loading configuration of a dynamic form involving a change item as claimed in claim 3, characterized in that: The static data has the following characteristics: it will not change over time in the system, is only used for the form elements set in the current form, and cannot be reused by other elements. The unique information of the form elements and the data that will not be reused can be used in this way; The data dictionary has the following features: the system provides a data dictionary customization function, and general static data sources can be maintained by category, which facilitates data source reuse for multiple forms or multiple elements; The remote data has the following features: it can be integrated with other systems and dynamically obtain data sources in other systems; data source data can be obtained through interface connection; for the interface used, the system provides an interface management interface, which can be configured according to business needs, and the interface name can be submitted for selection for form elements.
5. A method for dynamically loading configuration of a dynamic form involving a change item as claimed in claim 1, characterized in that: In step S3, a table control is added to the content of the change option control.
6. A method for dynamically loading configuration of a dynamic form involving a change item as claimed in claim 1, characterized in that: In step S4, if there are multiple table controls in each change option control content, all the table controls are stored in the group control as a whole, and the overall options are displayed or hidden through the interface configuration code.
