CN113569550B - Configurable form runtime customization method, device and medium - Google Patents

Configurable form runtime customization method, device and medium Download PDF

Info

Publication number
CN113569550B
CN113569550B CN202110864109.XA CN202110864109A CN113569550B CN 113569550 B CN113569550 B CN 113569550B CN 202110864109 A CN202110864109 A CN 202110864109A CN 113569550 B CN113569550 B CN 113569550B
Authority
CN
China
Prior art keywords
required field
field
type attribute
name
attribute information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110864109.XA
Other languages
Chinese (zh)
Other versions
CN113569550A (en
Inventor
于兆洋
徐同明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur General Software Co Ltd
Original Assignee
Inspur General Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur General Software Co Ltd filed Critical Inspur General Software Co Ltd
Priority to CN202110864109.XA priority Critical patent/CN113569550B/en
Publication of CN113569550A publication Critical patent/CN113569550A/en
Application granted granted Critical
Publication of CN113569550B publication Critical patent/CN113569550B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/174Form filling; Merging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the specification provides a configurable form runtime customization method, which is used for solving the problem that a front-end form cannot meet a user scene in a self-defined manner. The method comprises the following steps: configuring a required field based on an initial data structure, and acquiring the name of the required field and the type attribute information of the required field; acquiring the name of a required field and the type attribute information of the required field through a front-end rendering engine; matching an input component pre-arranged in the front-end rendering engine according to the name of the required field; and rendering the input component based on the type attribute information of the required field to obtain the required dynamic form.

Description

Configurable form runtime customization method, device and medium
Technical Field
The present disclosure relates to the field of electronic forms, and in particular, to a method, apparatus, and medium for customizing a configurable form in a runtime.
Background
Enterprise Resource Planning (ERP) is enterprise management software that integrates material resource management, human resource management, financial resource management, and information resource management. It will contain a client/service architecture, using a graphical user interface, applying open system production. In addition to existing standard functions, it includes other features such as quality, process operation management, and regulatory reporting.
With the development of front-end technology, more and more ERP systems and information management systems are changed from C/S architecture to B/S architecture. The requirements on data in different customer service flows are different, and the form pages used in the service flows should also be matched with the actual service flows. As standard commercial software, on the premise of a default set of functional forms with strong universality, the capability of freely customizing the page forms is provided when the product is on line so as to meet the characteristic requirements of customers.
At present, a common customization scheme, such as a dragging scheme, is adopted when a front-end form runs, a data structure is often too open, a form page is redrawn once in a visual mode, adjustable parameters are more, a component visit position is random, a process is complex, and the method is not suitable for being directly oriented to commercial software users, and is more suitable for secondary developers to rapidly develop; however, most of operators do not have the capability of secondary development when facing business software users, and the customization mode not only can not meet the customization requirement of business circulation, but also can easily lead out additional software errors and data errors to influence the normal use of clients.
Disclosure of Invention
One or more embodiments of the present disclosure provide a configurable form runtime customization method, device, and medium, for solving the following technical problems: how to provide a method which can meet the service scene and is convenient for users to make characteristic custom interfaces.
One or more embodiments of the present disclosure adopt the following technical solutions:
one or more embodiments of the present specification provide a configurable form runtime customization method, including:
configuring a required field based on an initial data structure, and acquiring the name of the required field and the type attribute information of the required field;
acquiring the name of the required field and the type attribute information of the required field through a front-end rendering engine;
matching an input component preset in the front-end rendering engine according to the name of the required field; and rendering the input component based on the type attribute information of the required field to obtain a required dynamic form. Optionally, in one or more embodiments of the present disclosure, before configuring the required field based on the initial data structure and acquiring the name of the required field and the type attribute information of the required field, the method further includes:
reading a database table, automatically generating a back-end entity class corresponding to the database table based on a preset back-end reflection mechanism, and obtaining an initial data structure so as to adjust required fields; wherein the initial data structure comprises: and the field names in the database table and the type attribute information of the fields.
Optionally, in one or more embodiments of the present disclosure, if the required field is an associated field, before configuring the name of the required field and the type attribute information of the required field based on the initial data structure, the method further includes:
acquiring a preset association identifier of the required field, and circularly searching the identifier of the association field to acquire an association table and an association field corresponding to the required field, thereby realizing multi-level expansion of the required field;
and directly extracting the related data information of the required field through the multi-stage expansion of the required field so as to carry out custom configuration on the related data information of the required field.
Optionally, in one or more embodiments of the present disclosure, before the obtaining, by the front-end rendering engine, the name of the required field and the type attribute information of the required field, the method further includes:
and caching the name of the required field, the type attribute information of the required field and the exclusive configuration record in a front-end key value and a back-end key value database, and realizing the high-speed access of the name of the required field and the type attribute information of the required field.
Optionally, in one or more embodiments of the present disclosure, the obtaining, by the front-end engine, the name of the required field and the type attribute of the required field specifically includes:
acquiring a proprietary configuration record of a front-end cache through a front-end rendering engine, and acquiring the name of the required field and the type attribute information of the required field according to the proprietary configuration record;
if the front-end rendering engine cannot acquire the exclusive configuration record through the front-end cache, searching the exclusive configuration record of the database by the back-end key value, and acquiring the name of the required field and the type attribute information of the required field according to the exclusive configuration record.
Optionally, in one or more embodiments of the present disclosure, after the obtaining, by the front-end rendering engine, the dedicated configuration record of the front-end cache, if the dedicated configuration record does not have a personal configuration record, the method further includes:
determining a user group containing personal information according to the exclusive configuration record; wherein the user group comprises any one or more of: business group, department group, consumption group;
and analyzing the configuration requirement of the user group according to the configuration record of the user group, and acquiring the personal configuration record according to the configuration requirement.
Optionally, in one or more embodiments of the present disclosure, after the obtaining, by the front-end rendering engine, the name of the required field and the type attribute information of the required field, the method further includes:
if the required field is determined to be the associated field, acquiring the associated field of the required field, and replacing the associated field according to the type attribute of the required field;
and rendering the input components matched with the associated fields according to the front-end rendering engine so as to realize dynamic loading of the associated table.
Optionally, in one or more embodiments of the present specification, before the matching the input component of the front-end rendering engine according to the name of the required field, the method further includes:
collecting input type attribute of a form, taking the input type attribute of the form as input component attribute and integrating the input type attribute of the form into the front-end rendering engine; wherein the input component includes an identifier of a field for matching a corresponding desired field.
One or more embodiments of the present specification provide a configurable form runtime customization device, comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
configuring a required field based on an initial data structure, and acquiring the name of the required field and the type attribute information of the required field;
acquiring the name of the required field and the type attribute information of the required field through a front-end rendering engine;
matching an input component preset in the front-end rendering engine according to the name of the required field; and rendering the input component based on the type attribute information of the required field to obtain a required dynamic form.
One or more embodiments of the present specification provide a non-volatile computer storage medium storing computer-executable instructions configured to:
configuring a required field based on an initial data structure, and acquiring the name of the required field and the type attribute information of the required field;
acquiring the name of the required field and the type attribute information of the required field through a front-end rendering engine;
matching an input component preset in the front-end rendering engine according to the name of the required field; and rendering the input component based on the type attribute information of the required field to obtain a required dynamic form.
The above-mentioned at least one technical scheme that this description embodiment adopted can reach following beneficial effect: by using the front-end rendering engine to expand the front-end components, the type attribute of the field is matched with the corresponding input component to modify the type, the content and the like of the input component, and the problem that the front-end form cannot meet the user scene in a self-defined mode is solved. Custom presentation of associated fields is supported through examination of management fields. The high-speed access mode of front and back end cache ensures that the high availability of the customized system is ensured when running without influencing the loading of the original functions, and the customized effect when the form runs can be seen in time by automatically rendering through the rendering engine after the type attribute information of the required field is acquired.
Drawings
In order to more clearly illustrate the embodiments of the present description or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some of the embodiments described in the present description, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. In the drawings:
FIG. 1 is a method flow diagram of a configurable form customization method provided in one or more embodiments of the present disclosure;
fig. 2 is a schematic flow diagram of the method of fig. 1 in an application scenario provided in one or more embodiments of the present disclosure;
FIG. 3 is a schematic diagram of the internal architecture of a configurable form customization device provided in one or more embodiments of the present disclosure;
fig. 4 is a schematic diagram illustrating an internal structure of a nonvolatile storage medium according to one or more embodiments of the present disclosure.
Detailed Description
The embodiment of the specification provides a configurable form customizing method, a configurable form customizing device and a configurable form customizing medium.
In order to make the technical solutions in the present specification better understood by those skilled in the art, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only some embodiments of the present specification, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present disclosure.
In most enterprise information systems, forms are basic interfaces for interaction between the systems and users, and the forms provide information showing and input information receiving, so that information collecting, processing and circulation are realized, and the forms have very important roles in the enterprise information systems. In the development process of an enterprise information system, the quantity of forms to be processed is numerous and various; in the use process of the enterprise information system, the forms show strong variability along with the change of the enterprise production flow. Standard enterprise information and business software of the same type, default form pages are difficult to fully meet the customization requirements of users, and different users have different requirements on the same function on data display and data association, so that the user-defined forms are required.
Meanwhile, with the development of front-end technology, more EPR systems and information-related systems are changed from C/S architecture to B/S architecture. The requirements on data in different customer service flows are different, and form pages in the service flows are matched with actual service flows. On the premise of a default set of function forms with strong universality, the standard commercial software also provides the capability of freely customizing the page forms when the product is on line so as to meet the characteristic requirements of customers.
At present, the customized forms are provided for personalized users mainly by a customized mode based on programming to meet the different requirements of different users. For example: some form a contains input box components B, C, D and E, user a requires that the form only displays B and C, and when the input value of B is the number x, C can only input a number less than x, otherwise the submit button is not displayed; user b asks for form presentations B, C, D and E; when the input value of B is the number x, C can only input numbers greater than x, and D and E must also input values, otherwise the submit button is not displayed. For the user a and the user b, a set of forms with fixed form structures and cascading rules are respectively customized for the user a and the user b by a code writing mode, or different customized code fragments are respectively written into codes of the form A by the developer to form different forms, so that the differentiation requirements of the user a and the user b are met. And currently common front-end forms run-time customization schemes, such as drag schemes, often have data structures that are too open. The form page needs to be redrawn once in a visual mode, the adjustable parameters are more, the placement positions of the components are random, the process is complex, and the method is not suitable for being directly oriented to commercial software users, and is more suitable for quick development of two-person workers; most of implementation personnel do not have two-way capability and are not suitable for using the customization mode, so that the customization requirement of service flow is not met, and additional software errors and data errors are easily led out to influence normal use of clients.
In order to solve the above technical problems, the embodiments of the present disclosure provide a configurable form runtime customization method. By using the configurable front-end rendering engine to expand the front-end input assembly, the input assembly corresponding to field attribute matching is realized, the types, the contents and the like of the field attribute control input assembly are realized, and the problem that the front-end form cannot meet the user scene is solved. By means of the high-speed access mode of front-end and back-end caching, functional loading and front-end rendering under the condition that form operation is not affected are achieved. The associated fields of the associated forms are actively searched, the associated fields are identified through the association identification, the correctness of the associated fields of the required fields is ensured, the wireless extension expansion of the associated fields is realized, and the traceable and calculable effect is realized by the associated forms.
One or more embodiments herein may perform the following steps by a server that requires form customization and an internal execution unit of the server.
The technical scheme provided in the specification is described in detail below with reference to the accompanying drawings.
As shown in fig. 1, fig. 1 is a schematic flow chart of a configurable form runtime customization method according to one or more embodiments of the present disclosure, where the flow in fig. 1 may include the following steps:
s101: and configuring the required fields based on the initial data structure, and acquiring the names of the required fields and the type attribute information of the required fields.
In one or more embodiments of the present disclosure, before configuring the required field based on the initial data structure and obtaining the name of the required field and the type attribute information of the required field, the method further includes:
reading a database table, automatically generating a back-end entity class corresponding to the database table based on a preset back-end reflection mechanism, and obtaining an initial data structure so as to adjust required fields; wherein the initial data structure comprises: and the field names in the database table and the type attribute information of the fields.
In one or more embodiments of the present disclosure, if the required field is an associated field, the method further includes, before configuring the required field based on an initial data structure and obtaining a name of the required field and type attribute information of the required field:
acquiring a preset association identifier of the required field, and circularly searching the identifier of the association field to acquire an association table and an association field corresponding to the required field, thereby realizing multi-level expansion of the required field;
and directly extracting the related data information of the required field through the multi-stage expansion of the required field so as to carry out custom configuration on the related data information of the required field.
The database table is mapped into entity classes through a back-end reflection mechanism, parameterization of class and member variables, methods, construction methods and the like of the classes is converted into json structures which are convenient to identify, and fields and attribute functions of the fields are dynamically called on the premise that codes are not changed in a large number. The accurate data structure in the database table is analyzed through the back-end reflection mechanism, and the data structure is used as an initial data structure, so that the correctness of the field is ensured. And meanwhile, when subsequent adjustment is performed, the input assembly can be subjected to self-defined modification based on the initial data structure under the condition that the basic function of the form is not affected.
Configuring a required field through an initial data structure, and acquiring the name of the required field and the type attribute information of the required field, wherein the type attribute information of the required field at least comprises: field ordering configuration information, field renaming configuration information, field read-only control, field input type configuration information.
Due to the crossing condition of business of each department of the enterprise, various association tables and association fields inevitably appear, and data among the association tables are interdependent and influence. Such as: three data tables for a certain enterprise: the staff basic information table comprises: job number, name; the service table includes: service name, service number; the payroll includes: job number, business name, performance. The "wage" in the wage table and the "business" must be the data present in the other two tables to make sense; and once a employee in the other two tables leaves or a business task is deleted, the corresponding job number or business name in the payroll table must be automatically deleted. This is an association. The method can ensure the integrity of the data, and can realize automatic extraction of the data and reduce the process of data input when the data is called.
If the required field is determined to be the associated field in one or more embodiments of the present disclosure, as shown in fig. 2, the associated fields need to be sequentially searched until the associated field and the association table needed by the required field are obtained. Specifically: the field is preset with the association identifier of the field, when the name and the type attribute information of the required field need to be changed to correspondingly adjust the front-end input component, the association identifier preset in the required field can be obtained, and the association table and the upper or lower association table of the association table can be sequentially obtained by circularly searching the association identifier, so that the multi-level table associated with the required field is obtained. The relevant data information of the required field can be directly obtained from the multi-level form according to the multi-level expansion of the required field. For example: the first department form of the association form and each group task form of the lower level form of the first department form are found through names in the employee form, the month task of the employee is called through each group task form, the manual input process is saved, and the multi-level expansion of the association field is realized. In addition, after the type attribute information of the required field is configured and changed according to the requirement, the associated field can also realize the same self-defined configuration as the required field, thereby realizing the self-defined display of the associated field.
S102: and acquiring the name of the required field and the type attribute information of the required field through a front-end rendering engine.
In one or more embodiments of the present disclosure, before the obtaining, by the front-end rendering engine, the name of the required field and the type attribute information of the required field, the method further includes:
and caching the name of the required field, the type attribute information of the required field and the exclusive configuration record in a front-end key value and a back-end key value database, and realizing the high-speed access of the name of the required field and the type attribute information of the required field.
In one or more embodiments of the present disclosure, the obtaining, by the front-end engine, the name of the required field and the type attribute of the required field specifically includes:
acquiring a proprietary configuration record of a front-end cache through a front-end rendering engine, and acquiring the name of the required field and the type attribute information of the required field according to the proprietary configuration record;
if the front-end rendering engine cannot acquire the exclusive configuration record through the front-end cache, searching the exclusive configuration record of the database by the back-end key value, and acquiring the name of the required field and the type attribute information of the required field according to the exclusive configuration record.
In one or more embodiments of the present disclosure, after the obtaining, by the front-end rendering engine, the dedicated configuration record of the front-end cache, if the dedicated configuration record does not have a personal configuration record, the method further includes:
determining a user group containing personal information according to the exclusive configuration record; wherein the user group comprises any one or more of: business group, department group, consumption group;
and analyzing the configuration requirement of the user group according to the configuration record of the user group, and acquiring the personal configuration record according to the configuration requirement.
In one or more embodiments of the present disclosure, after the obtaining, by the front-end rendering engine, the name of the required field and the type attribute information of the required field, the method further includes:
if the required field is determined to be the associated field, acquiring the associated field of the required field, and replacing the associated field according to the type attribute of the required field;
and rendering the input components matched with the associated fields according to the front-end rendering engine so as to realize dynamic loading of the associated table.
Aiming at the problem that the existing form configuration is effective and does not have instantaneity, a high-speed access scheme based on a front-end cache back-end key value is used for storing field names and type attribute information after the configuration of required fields, and exclusive configuration records of the required fields are respectively stored in a back-end cache back-end key value pair database such as Redis. The configuration is preserved, and the support form takes effect in operation, so that the operation difficulty is reduced, and the customization efficiency and accuracy are improved.
In the normal operation state of the system, the front-end rendering engine firstly searches the exclusive configuration record of the front-end cache, and obtains the name of the required field and the type attribute information of the required field according to the exclusive configuration record. The front-end cache is used for acquiring configuration information, so that the speed of configuring the form is increased. If the front-end rendering engine performs searching in the front-end cache, the update of the front-end cache may delete the exclusive configuration record of the required field, and at this time, the Redis back-end cache information is searched, and the required page configuration information is rapidly loaded. The existing configuration information is asynchronously searched when the user is online so as to ensure high availability of form customization, and normal loading of the original functions of the system is not influenced. And secondly, by using the high-speed access strategy, a user can see the customization effect when the form runs in time, and the process of automatically rendering the front-end component can not be perceived when loading is carried out later based on the acquisition of the related data information of the cache, so that the system performance is hardly influenced, and the reliability of the system is ensured.
As can be seen from fig. 2, after the front-end rendering engine obtains the proprietary configuration record from the cache, if the proprietary configuration record does not have the personal configuration record, in order to implement the custom configuration of the form, the user group of the personal information contained in the proprietary configuration record needs to be determined. For example: the basic information of employee A is contained in a business form, the user group can be analyzed: if the configuration requirement of a form of a service is met, the configuration record of the personnel A of the individual user is obtained according to the configuration requirement of the user group. And carrying out subsequent dynamic form loading based on the configuration record of the staff A.
As is clear from the associated fields described in step S101, the fields requiring the type attribute change may be normal unassociated fields or specific fields associated with other forms or other fields. If it is determined that the required field is associated with other fields or other forms, other fields or other forms corresponding to the association identifier are acquired according to the association identifier comparison preset by the required field, and the other fields are modified according to the type attribute of the required field. And after the modification is finished, rendering the input component matched with the other field according to the front-end rendering engine so as to obtain a customized input interface, and realizing the customized display of other forms related to the required field.
S103: matching an input component preset in the front-end rendering engine according to the name of the required field; and rendering the input component based on the type attribute information of the required field to obtain a required dynamic form.
In one or more embodiments of the present specification, before the matching of the input components pre-placed to the front-end rendering engine according to the name of the required field, the method further includes:
collecting input type attribute of a form, taking the input type attribute of the form as input component attribute and integrating the input type attribute of the form into the front-end rendering engine; wherein the input component includes an identifier of a field for matching a corresponding desired field.
To support the configurability of the required fields, common form input types, i.e., common input box types, such as plain text, numeric, checkpointed, etc., may be collected before the required fields match the input components of the front-end rendering engine. And integrating the collected form input type attribute serving as the attribute of the input component into a front-end rendering engine so as to realize corresponding modification according to the type attribute information of the required field and matching the attribute of the corresponding input component. The type attribute information of the required field can be identified by an identifier, the identifier of the required field is pre-stored in the input component, and the required field can be automatically matched to the corresponding input component according to the identifier, so that the type, the content, the read-only, the display and the like of the input component are controlled by the field attribute.
And after the required fields are matched with the corresponding input components, the front-end engine renders the front-end input components according to the names of the required fields and the type attribute information of the required fields, and the front-end input components obtain the self-defined front-end display pages after rendering.
As shown in fig. 2, in one or more embodiments of the present disclosure, a form runtime flowchart of an application scenario of a configurable form runtime method is provided. The database table is mapped into entity classes through a preset back-end reflection mechanism, and then converted into a json structure which is convenient to identify as an initial data structure, so that a server can conveniently carry out subsequent analysis and processing. And storing the name of the required field and the type attribute configuration information of the required field based on the initial data structure to generate front-end and back-end storage. The front-end rendering engine checks the front-end record, and if the front-end record has a user-specific configuration record in the front-end cache and contains a configuration record of a user individual, acquires configuration information of a required field based on the front-end cache. If the front-end record is checked to find that the front-end cache is cleaned or does not exist in the front-end cache, the back-end Redis cache is checked to obtain a user exclusive configuration record, if the personal configuration record of the user exists in the exclusive configuration record, personal configuration information and relevant information of required fields are obtained, whether the required fields are associated with other fields is checked, and the cycle detection guides to obtain a multi-level expanded form to obtain required other fields and extract required data. And after the front-end rendering engine acquires the related information of the required fields, rendering the input components matched with the required fields to obtain a dynamically loaded form.
As shown in FIG. 3, a schematic diagram of the internal architecture of a configurable form runtime customization device is provided in one or more embodiments of the present description. As can be seen from fig. 3, the apparatus comprises:
at least one processor 301; the method comprises the steps of,
a memory 302 communicatively coupled to the at least one processor 301; wherein,,
the memory 302 stores instructions executable by the at least one processor 301, the instructions being executable by the at least one processor 301 to enable the at least one processor 301 to:
configuring a required field based on an initial data structure, and acquiring the name of the required field and the type attribute information of the required field;
acquiring the name of the required field and the type attribute information of the required field through a front-end rendering engine;
matching an input component preset in the front-end rendering engine according to the name of the required field; and rendering the input component based on the type attribute information of the required field to obtain a required dynamic form.
As shown in fig. 4, in one or more embodiments of the present specification, a schematic internal structure of a nonvolatile storage medium is provided. As can be seen from fig. 4, the non-volatile storage medium stores computer executable instructions 401, the executable instructions 401 being configured to:
configuring a required field based on an initial data structure, and acquiring the name of the required field and the type attribute information of the required field;
acquiring the name of the required field and the type attribute information of the required field through a front-end rendering engine;
matching an input component preset in the front-end rendering engine according to the name of the required field; and rendering the input component based on the type attribute information of the required field to obtain a required dynamic form.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
The foregoing is merely one or more embodiments of the present description and is not intended to limit the present description. Various modifications and alterations to one or more embodiments of this description will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, or the like, which is within the spirit and principles of one or more embodiments of the present description, is intended to be included within the scope of the claims of the present description.

Claims (8)

1. A configurable form runtime customization method, the method comprising:
configuring a required field based on an initial data structure, and acquiring the name of the required field and the type attribute information of the required field;
acquiring the name of the required field and the type attribute information of the required field through a front-end rendering engine;
matching an input component preset in the front-end rendering engine according to the name of the required field; rendering the input component based on the type attribute information of the required field to obtain a required dynamic form;
if the required field is an associated field, configuring the required field based on an initial data structure, and before acquiring the name of the required field and the type attribute information of the required field, the method further comprises:
acquiring a preset association identifier of the required field, and circularly searching the preset association identifier of the required field to acquire an association table and an association field corresponding to the required field, thereby realizing multi-level expansion of the required field;
directly extracting relevant data information of the required field through multi-level expansion of the required field so as to carry out custom configuration on the relevant data information of the required field;
after the front-end rendering engine obtains the name of the required field and the type attribute information of the required field, the method further includes:
if it is determined that other fields or other forms are associated with the required field, acquiring an associated field of the required field, and modifying the other fields according to the type attribute of the required field;
and rendering the input components matched with the other fields according to the front-end rendering engine so as to realize dynamic loading of other forms associated with the required fields.
2. The method of claim 1, wherein the configuring the required field based on the initial data structure, before obtaining the name of the required field and the type attribute information of the required field, the method further comprises:
reading a database table, automatically generating a back-end entity class corresponding to the database table based on a preset back-end reflection mechanism, and obtaining an initial data structure to adjust required fields; wherein the initial data structure comprises: and the field names in the database table and the type attribute information of the fields.
3. The method of claim 1, wherein before the obtaining, by the front-end rendering engine, the name of the required field and the type attribute information of the required field, the method further comprises:
and caching the name of the required field, the type attribute information of the required field and the exclusive configuration record in a front-end key value and a back-end key value database, and realizing the high-speed access of the name of the required field and the type attribute information of the required field.
4. The method for customizing a configurable form runtime of claim 3, wherein said obtaining, by a front-end rendering engine, a name of said required field and a type attribute of said required field comprises:
acquiring a proprietary configuration record of a front-end cache through a front-end rendering engine, and acquiring the name of the required field and the type attribute information of the required field according to the proprietary configuration record;
if the front-end rendering engine cannot acquire the exclusive configuration record through the front-end cache, searching the exclusive configuration record of the database by the back-end key value, and acquiring the name of the required field and the type attribute information of the required field according to the exclusive configuration record.
5. The method according to claim 4, wherein after the front-end rendering engine obtains the dedicated configuration record of the front-end buffer, if the dedicated configuration record does not have a personal configuration record, the method further comprises:
determining a user group containing personal information according to the exclusive configuration record; wherein the user group comprises any one or more of: business group, department group, consumption group;
and analyzing the configuration requirement of the user group according to the configuration record of the user group, and acquiring the personal configuration record according to the configuration requirement.
6. The configurable form runtime customization method according to claim 1, wherein the matching is pre-positioned before the input component of the front-end rendering engine according to the name of the required field, the method further comprising:
collecting input type attribute of a form, taking the input type attribute of the form as input component attribute and integrating the input type attribute of the form into the front-end rendering engine; wherein the input component includes an identifier of a field for matching a corresponding desired field.
7. A configurable form runtime customization device, the device comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
configuring a required field based on an initial data structure, and acquiring the name of the required field and the type attribute information of the required field;
acquiring the name of the required field and the type attribute information of the required field through a front-end rendering engine;
matching an input component preset in the front-end rendering engine according to the name of the required field; rendering the input component based on the type attribute information of the required field to obtain a required dynamic form;
if the required field is an associated field, the processor is further capable of, before configuring the required field based on an initial data structure and obtaining the name of the required field and the type attribute information of the required field:
acquiring a preset association identifier of the required field, and circularly searching the preset association identifier of the required field to acquire an association table and an association field corresponding to the required field, thereby realizing multi-level expansion of the required field;
directly extracting relevant data information of the required field through multi-level expansion of the required field so as to carry out custom configuration on the relevant data information of the required field;
after the obtaining, by the front-end rendering engine, the name of the required field and the type attribute information of the required field, the processor is further capable of:
if it is determined that other fields or other forms are associated with the required field, acquiring an associated field of the required field, and modifying the other fields according to the type attribute of the required field;
and rendering the input components matched with the other fields according to the front-end rendering engine so as to realize dynamic loading of other forms associated with the required fields.
8. A non-volatile storage medium storing computer executable instructions which when executed by a processor perform the method steps of:
configuring a required field based on an initial data structure, and acquiring the name of the required field and the type attribute information of the required field;
acquiring the name of the required field and the type attribute information of the required field through a front-end rendering engine;
matching an input component preset in the front-end rendering engine according to the name of the required field; rendering the input component based on the type attribute information of the required field to obtain a required dynamic form;
if the required field is an associated field, configuring the required field based on an initial data structure, and before acquiring the name of the required field and the type attribute information of the required field, further including:
acquiring a preset association identifier of the required field, and circularly searching the preset association identifier of the required field to acquire an association table and an association field corresponding to the required field, thereby realizing multi-level expansion of the required field;
directly extracting relevant data information of the required field through multi-level expansion of the required field so as to carry out custom configuration on the relevant data information of the required field;
after the front-end rendering engine obtains the name of the required field and the type attribute information of the required field, the method further comprises:
if it is determined that other fields or other forms are associated with the required field, acquiring an associated field of the required field, and modifying the other fields according to the type attribute of the required field;
and rendering the input components matched with the other fields according to the front-end rendering engine so as to realize dynamic loading of other forms associated with the required fields.
CN202110864109.XA 2021-07-29 2021-07-29 Configurable form runtime customization method, device and medium Active CN113569550B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110864109.XA CN113569550B (en) 2021-07-29 2021-07-29 Configurable form runtime customization method, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110864109.XA CN113569550B (en) 2021-07-29 2021-07-29 Configurable form runtime customization method, device and medium

Publications (2)

Publication Number Publication Date
CN113569550A CN113569550A (en) 2021-10-29
CN113569550B true CN113569550B (en) 2023-06-23

Family

ID=78168993

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110864109.XA Active CN113569550B (en) 2021-07-29 2021-07-29 Configurable form runtime customization method, device and medium

Country Status (1)

Country Link
CN (1) CN113569550B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112286999A (en) * 2020-08-12 2021-01-29 北京海致网聚信息技术有限公司 Dynamic form implementation method based on MYSQL and MONGODB
CN112989769A (en) * 2021-02-08 2021-06-18 北京金和网络股份有限公司 Method, device and platform for constructing multi-data-source form based on form engine
CN113094037A (en) * 2021-04-20 2021-07-09 上海携宁计算机科技股份有限公司 Interaction method, development platform, equipment and storage medium for forms and workflows

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160012030A1 (en) * 2014-07-08 2016-01-14 Tuyen Tran Data form generation and gathering

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112286999A (en) * 2020-08-12 2021-01-29 北京海致网聚信息技术有限公司 Dynamic form implementation method based on MYSQL and MONGODB
CN112989769A (en) * 2021-02-08 2021-06-18 北京金和网络股份有限公司 Method, device and platform for constructing multi-data-source form based on form engine
CN113094037A (en) * 2021-04-20 2021-07-09 上海携宁计算机科技股份有限公司 Interaction method, development platform, equipment and storage medium for forms and workflows

Also Published As

Publication number Publication date
CN113569550A (en) 2021-10-29

Similar Documents

Publication Publication Date Title
AU2018281314B2 (en) Integrated system for rule editing, simulation, version control, and business process management
US20230289521A1 (en) System and method for dialog customization
US8626702B2 (en) Method and system for validation of data extraction
US9047346B2 (en) Reporting language filtering and mapping to dimensional concepts
US7117220B2 (en) System and method for non-programmers to dynamically manage multiple sets of XML document data
US20150020006A1 (en) Method and system for creating dynamic browser-based user interface by example
US20170185255A1 (en) Dynamic workflow assistant with shared application context
Saliy et al. Accounting and analytical systems as an integral element of contemporary accounting
CN109583591A (en) Method and system for simplified knowledge engineering
US10282398B1 (en) Editing tool for domain-specific objects with reference variables corresponding to preceding pages
US10417234B2 (en) Data flow modeling and execution
EP4075291A1 (en) Selective recommendation and deployment of extensions in low-code approach
CN113569550B (en) Configurable form runtime customization method, device and medium
US20220335346A1 (en) Method and system for efficient navigation of information records on kanban board
US20190265846A1 (en) Date entry user interface
US11556523B2 (en) Calculating order dependency in configuration activation for complex scenarios
CN114860737A (en) Processing method, device, equipment and medium of teaching and research data
CN109710369B (en) full-graphical user interface display method and device
Bischof et al. Raw data collection software in the Swiss NFI
US20230325057A1 (en) Smart filtering in an overview page
US20120198373A1 (en) Focus-Driven User Interface
US11762874B2 (en) Interactive workflow for data analytics
US11748096B2 (en) Interactive documentation pages for software products and features
Boyhan Agricultural statistical data analysis using Stata
De Jonge The Absolute Guide to Dashboarding and Reporting with Power BI: How to Design and Create a Financial Dashboard with Power BI–End to End

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant