CN113569550A - Configurable form runtime customization method, equipment and medium - Google Patents

Configurable form runtime customization method, equipment and medium Download PDF

Info

Publication number
CN113569550A
CN113569550A CN202110864109.XA CN202110864109A CN113569550A CN 113569550 A CN113569550 A CN 113569550A CN 202110864109 A CN202110864109 A CN 202110864109A CN 113569550 A CN113569550 A CN 113569550A
Authority
CN
China
Prior art keywords
required field
field
name
type attribute
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.)
Granted
Application number
CN202110864109.XA
Other languages
Chinese (zh)
Other versions
CN113569550B (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 be customized to meet a user scene. The method comprises the following steps: 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; acquiring the name of a required field and the type attribute information of the required field by a front-end rendering engine; matching and presetting an input component of 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, equipment and medium
Technical Field
The present disclosure relates to the field of electronic forms, and in particular, to a method, an apparatus, and a medium for customizing a configurable form during runtime.
Background
Enterprise Resource Planning (ERP) is enterprise management software integrating material resource management, human resource management, financial resource management and information resource management. It will contain a client/service framework, using a graphical user interface, using open system authoring. In addition to the standard functionality already present, it also includes other features such as quality, process operation management, and tuning reports.
With the development of front-end technology, more and more ERP systems and information management systems are switched from a C/S architecture to a B/S architecture. The requirements for data in different customer service flows are different, and the form page used in the service flow should be matched with the actual service flow. As standard business software, on the premise of a set of default functional forms with strong universality, the product on line also provides the capability of freely customizing page forms so as to meet the characteristic requirements of customers.
At present, a common customization scheme during the operation of a front-end form, such as a dragging scheme, is too open in a data structure, a form page is redrawn once in a visual mode, adjustable parameters are more, the visiting position of a component is random, the process is complex, and the method is not suitable for directly facing commercial software users and is more suitable for rapid development of secondary developers; however, most of implementers do not have the capability of secondary development when facing business software users, and the customization mode not only cannot meet the customization requirement of the business flow, but also is easy to introduce additional software errors and data errors and influence the normal use of customers.
Disclosure of Invention
One or more embodiments of the present specification provide a configurable form runtime customization method, device, and medium, which are used to solve the following technical problems: how to provide a method which can not only meet the service scene, but also facilitate the user to make a characteristic customized interface.
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 the 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 and presetting an input component of 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. Optionally, in one or more embodiments of the present specification, 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 and automatically generating a back-end entity class corresponding to the database table based on a preset back-end reflection mechanism to obtain an initial data structure so as to adjust the required field; wherein the initial data structure comprises: a field name in the database table and type attribute information of the field.
Optionally, in one or more embodiments of the present specification, before configuring the name of the required field and the type attribute information of the required field based on the initial data structure, if the required field is an associated field, the method further includes:
acquiring the preset association identifier of the required field, performing cyclic retrieval on the identifier of the association field, acquiring an association table and the association field corresponding to the required field, and realizing multi-level expansion of the required field;
and directly extracting the related data information of the required field through the multi-stage extension of the required field so as to perform custom configuration on the related data information of the required field.
Optionally, in one or more embodiments of the present specification, 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 and rear-end key value pair database, and realizing 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 specification, the obtaining, by the front-end engine, the name of the required field and the type attribute of the required field specifically include:
acquiring an exclusive 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 exclusive configuration record;
if the exclusive configuration record cannot be obtained through the front-end cache by the front-end rendering engine, searching the exclusive configuration record of the back-end key value pair database, and obtaining 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 specification, after obtaining the dedicated configuration record of the front-end cache by the front-end rendering engine, 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 groups, department groups, consumption groups;
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 specification, 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 association fields according to the front-end rendering engine so as to realize dynamic loading of the association table.
Optionally, in one or more embodiments of the present specification, before the matching preset in the input component of the front-end rendering engine according to the name of the required field, the method further includes:
collecting input type attributes of the form, taking the input type attributes of the form as input component attributes and integrating the input type attributes 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 apparatus, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
configuring the 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 and presetting an input component of 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.
One or more embodiments of the present specification provide a non-transitory computer storage medium storing computer-executable instructions configured to:
configuring the 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 and presetting an input component of 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.
The embodiment of the specification adopts at least one technical scheme which can achieve the following beneficial effects: the front-end rendering engine is used for expanding the front-end component, so that the type attribute of the field is matched with the corresponding input component to modify the type, content and the like of the input component, and the problem that a front-end form cannot be customized to meet a user scene is solved. Through the examination of the management fields, the customized display of the associated fields is supported. The high availability of the customization system during operation is ensured and the loading of the original functions is not influenced by the high-speed access mode of the front-end cache and the back-end cache, and after the type attribute information of the required field is obtained, the automatic rendering is carried out through the rendering engine, the performance of the system is not influenced, and the customization effect of the form during operation can be seen in time.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present specification, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort. In the drawings:
FIG. 1 is a schematic diagram illustrating a method flow of a configurable form customization method according to one or more embodiments of the present disclosure;
fig. 2 is a schematic flowchart of an application scenario of the method in fig. 1 in an application scenario provided in one or more embodiments of the present disclosure;
FIG. 3 is a schematic diagram illustrating an internal structure of a configurable form customization apparatus according to one or more embodiments of the present disclosure;
fig. 4 is a schematic diagram of an internal structure of a non-volatile storage medium according to one or more embodiments of the present disclosure.
Detailed Description
The embodiment of the specification provides a configurable form customization method, equipment and a medium.
In order to make those skilled in the art better understand the technical solutions in the present specification, 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 a part of the embodiments of the present specification, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present specification without any creative effort shall fall within the protection scope of the present specification.
In most enterprise information systems, the form is a basic interface for interaction between the system and a user, the form provides information display and input information receiving, information collection, processing and circulation are achieved, and the form plays an important role in the enterprise information systems. In the development process of an enterprise information system, the number of forms to be processed is large and the types are complicated; in the use process of the enterprise information system, the form shows strong changeability along with the change of the production flow of the enterprise. The default form page of the standard enterprise information and the business software of the same type is difficult to completely meet the customization requirements of users, different users have different requirements on the same function in terms of data display and data association, and the forms need to be customized.
Meanwhile, with the development of front-end technologies, more and more EPR systems and information correlation systems are switched from a C/S architecture to a B/S architecture. The requirements for data in different customer service flows are different, and the form page in the service flow should be matched with the actual service flow. As standard business software, on the premise of a set of default functional forms with strong universality, the product also has the capability of freely customizing page forms when being on line so as to meet the characteristic requirements of customers.
At present, the differentiation requirements of different users are mainly met through a programming-based customization mode, and customized forms are provided for personalized users. For example: a form A comprises input box components B, C, D and E, a user a requires the form to show B and C only, and C can only input numbers smaller than x when the input value of B is the number x, otherwise, a submit button is not displayed; user b asks for form displays B, C, D and E; when the input value of B is the number x, C can only input the number larger than x, and D and E must input the value, otherwise the submit button is not displayed. For the user a and the user b, a developer customizes a set of forms with fixed form structures and cascading rules for the user a and the user b respectively in a code compiling mode, or the user a and the user b respectively compile customized different code fragments into codes of the form A to form different forms so as to meet the differentiation requirements of the user a and the user b. And currently common front-end form runtime customization schemes, such as drag and drop schemes, often have too open a data structure. The form page needs to be redrawn once in a visual mode, the adjustable parameters are more, the component placement positions are random, the process is complex, and the method is not suitable for directly facing commercial software users and is more suitable for quick development of second-generation personnel; most of the implementing personnel do not have two-way capability, are not suitable for using the customization mode, but cannot meet the customization requirement of the service flow, and are easy to introduce additional software errors and data errors to influence the normal use of customers.
In order to solve the technical problem, an embodiment of the present specification provides a configurable form runtime customization method. The configurable front-end rendering engine is used for expanding the front-end input assembly, so that the input assembly corresponding to the field attribute matching is realized, the field attribute is realized to control the type, the content and the like of the input assembly, and the problem that a front-end form cannot meet the user scene is solved. By means of the high-speed access mode of the front-end cache and the back-end cache, function loading and front-end rendering under the condition that the form operation is not influenced are achieved. The associated fields of the associated form are actively searched, the associated fields are identified through the associated identifiers, the correctness of the fields associated with the required fields is guaranteed, the wireless extension and the extension of the associated fields are realized, and the traceable and calculable effect is realized by the associated form.
One or more embodiments in this specification can perform the following steps by a server that requires form customization and an internal execution unit of the server.
The technical solution provided in the present specification is described in detail below with reference to the accompanying drawings.
Fig. 1 is a schematic diagram illustrating a method flow of a configurable form runtime customization method according to one or more embodiments of the present specification, where the flow in fig. 1 may include the following steps:
s101: and configuring the 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.
In one or more embodiments of the present specification, 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 and automatically generating a back-end entity class corresponding to the database table based on a preset back-end reflection mechanism to obtain an initial data structure so as to adjust the required field; wherein the initial data structure comprises: a field name in the database table and type attribute information of the field.
In one or more embodiments of the present specification, if the required field is an associated field, before configuring the required field based on an initial data structure and acquiring a name of the required field and type attribute information of the required field, the method further includes:
acquiring the preset association identifier of the required field, performing cyclic retrieval on the identifier of the association field, acquiring an association table and the association field corresponding to the required field, and realizing multi-level expansion of the required field;
and directly extracting the related data information of the required field through the multi-stage extension of the required field so as to perform custom configuration on the related data information of the required field.
The database table is mapped into an entity class through a back-end reflection mechanism, parameterizations of the class, member variables, methods, construction methods and the like of the class are converted into json structures convenient to identify, and fields and attribute functions of the fields are dynamically called on the premise that a large number of codes are not changed. The accurate data structure in the database table is analyzed through a back-end reflection mechanism, and the data structure is used as an initial data structure, so that the correctness of the field is ensured. Meanwhile, when subsequent adjustment is carried out, the user-defined modification can be carried out on the input assembly on the basis of the initial data structure under the condition that the basic function of the form is not influenced.
Configuring the 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 sorting configuration information, field renaming configuration information, field read-only control, and field input type configuration information.
Due to the cross condition of business of each department of an enterprise, various association tables and association fields are inevitably generated, and data among the association tables are in interdependence and influence relationship. Such as: three data tables for a certain enterprise: the employee basic information table includes: job number, name; the service table comprises: service name, service number; the payroll table includes: job number, business name, performance. Then the "payroll number" and "business number" in the payroll table must be the data present in the other two tables to be meaningful; and once a certain employee leaves the job or a certain business task in the other two tables is deleted, the corresponding payroll number or business name in the payroll table must be automatically deleted. This is an associative relationship. The method can ensure the integrity of the data, and can realize the automatic extraction of the data and reduce the process of data input when the data is called.
In one or more embodiments of the present disclosure, if it is determined that the required field is the associated field, as shown in fig. 2, the associated fields need to be sequentially retrieved until the associated fields and the associated table required by the required field are obtained. Specifically, the method comprises the following steps: the method comprises the steps of presetting associated identification of fields in the fields, obtaining the preset associated identification of the required fields when the names and the type attribute information of the required fields need to be changed so as to adjust the correspondence of the front-end input components, and obtaining the association table and the upper-level or lower-level association table of the association table in sequence by circularly searching the associated identification so as to obtain the multi-level table associated with the required fields. According to the multi-level expansion of the required fields, the related data information of the required fields can be directly obtained from the multi-level form. For example: the first department form of the associated form is found through the name in the employee table, the group task forms of the subordinate forms of the first department form are also found, the tasks of the employee in the month are called through the group task forms, the manual input process is saved, and the multi-level expansion of the associated fields is realized. In addition, after the type attribute information of the required field is configured and changed as required, the associated field can also realize the same custom configuration as the required field, and the custom display of the associated field is realized.
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 specification, 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 and rear-end key value pair database, and realizing 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 specification, the obtaining, by the front-end engine, the name of the required field and the type attribute of the required field specifically include:
acquiring an exclusive 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 exclusive configuration record;
if the exclusive configuration record cannot be obtained through the front-end cache by the front-end rendering engine, searching the exclusive configuration record of the back-end key value pair database, and obtaining 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 specification, after obtaining the dedicated configuration record of the front-end cache by the front-end rendering engine, 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 groups, department groups, consumption groups;
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 specification, 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 association fields according to the front-end rendering engine so as to realize dynamic loading of the association table.
Aiming at the problem that the existing form configuration does not have real-time property when in effect, a high-speed access scheme based on a front-end cache rear-end key value pair database cache is used for storing the field name and the type attribute information after the required field configuration, and exclusive configuration records of the required field are respectively stored in the front-end cache rear-end key value pair database such as Redis. The configuration is stored and then the form is supported to be effective when running, so that the operation difficulty is reduced, and the customization efficiency and accuracy are improved.
Under the normal working state of the system, the front-end rendering engine firstly retrieves the exclusive configuration record of the front-end cache, and acquires the name of the required field and the type attribute information of the required field according to the exclusive configuration record. The configuration information is acquired through the front-end cache, so that the speed of configuring the form is increased. If the front-end rendering engine searches in the front-end cache, the exclusive configuration record of the required field can be deleted due to the updating of the front-end cache, and at the moment, the Redis rear-end cache information is searched, and the required page configuration information is quickly loaded. The existing configuration information is asynchronously retrieved when a user is online so as to ensure the high availability of form customization, and the normal loading of the original functions of the system is not influenced. Secondly, by using the high-speed access strategy, a user can see the customization effect of the form when the form runs, and related data information is obtained based on the cache, so that the process of automatic rendering of a front-end component cannot be felt when the form is loaded subsequently, the performance of the system is almost not influenced, and the reliability of the system is ensured.
As shown in fig. 2, after the front-end rendering engine acquires the dedicated configuration record from the cache, if there is no personal configuration record in the dedicated configuration record to implement the self-defined configuration of the form, it is necessary to determine the user group of the personal information included in the dedicated configuration record. For example: if the basic information of the employee a is contained in the business form, the user group can be analyzed: if the configuration requirement of a form of a business is met, the configuration record of the employee A of the individual user is obtained according to the configuration requirement of the user group. And subsequent dynamic form loading is carried out based on the configuration record of the employee A.
As can be seen from the related fields described in step S101, the fields that need to be modified for type attribute may be ordinary unrelated fields, or may be specific fields associated with other forms or other fields. If the required field is associated with other fields or other forms, the other fields or other forms corresponding to the associated identifier need to be obtained according to the preset associated identifier comparison of 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 components matched with the other fields according to a front-end rendering engine to obtain a customized input interface and realize customized display of other forms related to the required fields.
S103: matching and presetting an input component of 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.
In one or more embodiments of the present specification, before the matching an input component preset in the front-end rendering engine according to the name of the required field, the method further includes:
collecting input type attributes of the form, taking the input type attributes of the form as input component attributes and integrating the input type attributes 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 configurability of the required fields, common form input types, i.e., common input box types, such as plain text, numeric, tick, 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 attributes as the attributes of the input components into a front-end rendering engine so as to realize corresponding modification according to the matching of the type attribute information of the required fields and the attributes of the corresponding input components. It should be noted that the type attribute information of the required field may be identified by an identifier, the identifier of the required field is prestored in the input component, and the required field may be automatically matched to the corresponding input component according to the identifier, so as to control the type, content, read-only, display and hidden of the input component 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 a self-defined front-end display page after rendering.
As shown in fig. 2, in one or more embodiments of the present specification, a form runtime flow diagram of an application scenario of a configurable form runtime method is provided. The database table is mapped into an entity class through a preset rear-end reflection mechanism, and then the entity class is converted into a json structure which is convenient to recognize and serves as an initial data structure, so that a server can conveniently perform subsequent analysis processing. And based on the initial data structure, the name of the required field and the type attribute configuration information of the required field are stored, generated and stored in the front end and the back end. The front-end rendering engine checks the front-end record, if the user-specific configuration record exists in the front-end cache and the user-specific configuration record is contained in the front-end cache, the configuration information of the required field is obtained 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 the exclusive configuration record of the user, if the exclusive configuration record of the user exists, the personal configuration information and the related information of the required field are obtained, whether the required field is related to other fields or not is checked, and the circular detection guides the obtaining of the multi-level expanded form to obtain the required data extracted from other fields. And after the front-end rendering engine acquires the relevant information of the required fields, rendering the input components matched with the required fields to acquire the dynamically loaded form.
As shown in fig. 3, in one or more embodiments of the present specification, an internal structural diagram of a configurable form runtime customization apparatus is provided. As can be seen from fig. 3, the apparatus comprises:
at least one processor 301; and the number of the first and second groups,
a memory 302 communicatively coupled to the at least one processor 301; wherein the content of the first and second substances,
the memory 302 stores instructions executable by the at least one processor 301 to cause the at least one processor 301 to:
configuring the 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 and presetting an input component of 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.
As shown in fig. 4, a schematic diagram of an internal structure of a nonvolatile storage medium is provided in one or more embodiments of the present specification. As can be seen from fig. 4, the non-volatile storage medium stores computer-executable instructions 401, where the executable instructions 401 are configured to:
configuring the 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 and presetting an input component of 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.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may 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 may also be possible or may be advantageous.
The above description is merely one or more embodiments of the present disclosure and is not intended to limit the present disclosure. Various modifications and alterations to one or more embodiments of the present description will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of one or more embodiments of the present specification should be included in the scope of the claims of the present specification.

Claims (10)

1. A configurable form runtime customization method, the method comprising:
configuring the 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 and presetting an input component of 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.
2. The configurable form runtime customization method of claim 1, wherein 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 comprises:
reading a database table and automatically generating a back-end entity class corresponding to the database table based on a preset back-end reflection mechanism to obtain an initial data structure so as to adjust the required field; wherein the initial data structure comprises: a field name in the database table and type attribute information of the field.
3. The configurable form runtime customization method according to claim 1, wherein if the required field is an associated field, the required field is configured based on an initial data structure, and before obtaining the name of the required field and the type attribute information of the required field, the method further comprises:
acquiring the preset association identifier of the required field, performing cyclic retrieval on the preset association identifier of the required field, acquiring an association table and an association field corresponding to the required field, and realizing multi-level expansion of the required field;
and directly extracting the related data information of the required field through the multi-stage extension of the required field so as to perform custom configuration on the related data information of the required field.
4. The configurable form runtime customization method of claim 1, wherein before the obtaining of the name of the required field and the type attribute information of the required field by the front-end rendering engine, 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 and rear-end key value pair database, and realizing high-speed access of the name of the required field and the type attribute information of the required field.
5. The configurable form runtime customization method of claim 4, wherein the obtaining, by the front-end engine, the name of the required field and the type attribute of the required field specifically comprises:
acquiring an exclusive 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 exclusive configuration record;
if the exclusive configuration record cannot be obtained through the front-end cache by the front-end rendering engine, searching the exclusive configuration record of the back-end key value pair database, and obtaining the name of the required field and the type attribute information of the required field according to the exclusive configuration record.
6. The configurable form runtime customization method of claim 5, wherein after the obtaining of the proprietary configuration record of the front-end cache by the front-end rendering engine, if the proprietary 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 groups, department groups, consumption groups;
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.
7. The configurable form runtime customization method of claim 3, wherein after obtaining the name of the required field and the type attribute information of the required field by a front-end rendering engine, the method further comprises:
if the required field is determined to be associated with other fields or other forms, acquiring the 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 the dynamic loading of other forms related to the required fields.
8. The configurable form runtime customization method of claim 1, wherein the matching of the name of the required field is preset before an input component of the front-end rendering engine, the method further comprising:
collecting input type attributes of the form, taking the input type attributes of the form as input component attributes and integrating the input type attributes 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.
9. A configurable form runtime customization apparatus, the apparatus comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
configuring the 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 and presetting an input component of 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.
10. A non-volatile storage medium storing computer-executable instructions, the executable instructions configured to:
configuring the 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 and presetting an input component of 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.
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 true CN113569550A (en) 2021-10-29
CN113569550B 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 (4)

* 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
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

Patent Citations (4)

* 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
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
CN113569550B (en) 2023-06-23

Similar Documents

Publication Publication Date Title
CN101171571B (en) Apparatus for analysing and organizing artifacts in a software application
KR101517460B1 (en) Graphic representations of data relationships
CN108027763B (en) Relational database adjusting device and method
JP2770715B2 (en) Structured document search device
US9697577B2 (en) Patent mapping
US20060004528A1 (en) Apparatus and method for extracting similar source code
US20040164961A1 (en) Method, system and computer product for continuously monitoring data sources for an event of interest
CN109710250B (en) Visualization engine system and method for constructing user interface
CN114185874A (en) Big data based modeling method and device, development framework and equipment
US8112458B1 (en) User segmentation user interface
Augusto et al. Automated discovery of process models with true concurrency and inclusive choices
CN113569550A (en) Configurable form runtime customization method, equipment and medium
CN115617338A (en) Method and device for quickly generating service page and readable storage medium
Thasal et al. Information retrieval and de-duplication for tourism recommender system
US10635573B2 (en) Auto-generated multiple input variants
JP2002108649A (en) Recording medium in which program to support trace analysis is recorded and program product
US10268730B2 (en) Focus-driven user interface
US11822566B2 (en) Interactive analytics workflow with integrated caching
US20230325057A1 (en) Smart filtering in an overview page
US11762874B2 (en) Interactive workflow for data analytics
Sonnleitner et al. Persistence of workflow control data in temporal databases
CN116401031A (en) Online program table generation method and device based on batch scheduling files
CN114416858A (en) Data map generation device and track recording method thereof
KR101680050B1 (en) Apparatus and method for supporting collection and analysis of statistical data and statistical production
CN115587177A (en) Word cloud generation display method and system for time sequence data

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