CN110222047B - Dynamic form generation method and device - Google Patents
Dynamic form generation method and device Download PDFInfo
- Publication number
- CN110222047B CN110222047B CN201910350836.7A CN201910350836A CN110222047B CN 110222047 B CN110222047 B CN 110222047B CN 201910350836 A CN201910350836 A CN 201910350836A CN 110222047 B CN110222047 B CN 110222047B
- Authority
- CN
- China
- Prior art keywords
- data
- request
- generating
- dynamic
- page
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2282—Tablespace storage structures; Management thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/28—Databases characterised by their database models, e.g. relational or object models
- G06F16/283—Multi-dimensional databases or data warehouses, e.g. MOLAP or ROLAP
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the invention provides a method and a device for generating a dynamic form, wherein the method comprises the following steps: constructing a data dictionary; constructing an object model according to the data dictionary; storing the object model in a preset object model library; generating a form page according to the object model library; and generating a corresponding dynamic form according to the form page. The embodiment of the invention can realize that the function of the original database is commonly assumed by utilizing the cooperative application of data of different types and characteristics through the design of specific data architecture and data operation, so that the form data can meet the functions of OLTP (online transaction processing), OLAP (online analysis processing) and the like, and can meet the requirements of dynamically revising the form and persisting the data under the conditions of no halt, no restart or even no modification of the database form.
Description
Technical Field
The invention relates to the technical field of Web front-end application (WebApp) design, in particular to a dynamic form generation method and a dynamic form generation device.
Background
The HTML form is a main component of the Web application program, and the basic principle of the HTML form is that the form required by the Web application program for providing specific scene services is formed by specific combination of different types of form elements (such as input boxes, check boxes, radio buttons, submit buttons and the like), and input data of a user is collected through interaction with the user. After the HTML form collects user input data, the form data is often selected to be persisted in the data for subsequent application. Among conventional Web applications, due to the advantages of relational databases (e.g., SQL Server, Oracle, MySQL, etc.) in terms of structured query, transactional and consistency, even today with rapid development of internet technologies, many large internet projects will introduce NoSQL databases (e.g., Mongodb, Redis, Riak, Membase, Neo4j, HBase, etc.) into their data architectures, but SQL databases are still selected as the first choice for form data persistence, and NoSQL databases are more used for persistent storage and caching of massive data, unstructured data, and data with high requirements on data access speed.
With the popularization of software development engineering ideas, Web application programs applied in some enterprise-level business scenes (such as business process management, office automation and enterprise resource planning) gradually get rid of a pure mode of manually customizing and developing HTML forms, and online and dynamic development of the HTML forms is realized by selectively developing and providing a form engine. However, when the HTML form selects the SQL database to perform persistent data operation, once the HTML form needs to be dynamically modified (such as increasing or decreasing table elements), the persistent data operation of the corresponding SQL database and the Web application program must be modified in the database table (schema) and the code layer, and the modification of the database table will bring hidden troubles to the stability of the database and the security of the data, and the modification of the code of the persistent data of the Web application program also requires the Web application program to be restarted to be effective, which affects user experience. In particular, for a cloud computing Web application in the SaaS (software as a service) form, the above operation cannot occur at all in no operation on a program line.
Disclosure of Invention
In view of the above, embodiments of the present invention are proposed to provide a dynamic form generation method and apparatus that overcome or at least partially solve the above problems.
In order to solve the above problem, an embodiment of the present invention discloses a dynamic form generation method, including the following steps:
constructing a data dictionary;
constructing an object model according to the data dictionary;
storing the object model in a preset object model library;
generating a form page according to the object model library;
generating a corresponding dynamic form according to the form page;
further, the step of constructing the data dictionary includes:
acquiring terms;
determining semantic relationships between the terms;
generating a data dictionary by adopting the terms and the semantic relation;
further, the step of constructing an object model from the data dictionary includes:
determining a target business object by adopting a data dictionary; the target business object comprises a plurality of object attributes;
acquiring a characteristic relation among a plurality of object attributes of a target business object; the characteristic relation comprises at least one of a conditional relation, a constraint relation and a calculation relation;
generating an object model by adopting the object attributes and the characteristic relation;
further, the step of generating a form page according to the object model library includes:
determining a target object model;
obtaining the model attribute of a target object model from an object model library;
generating a form page according to the model attribute;
further, the step of generating a form page according to the model attributes includes:
acquiring an initial form and a user operation instruction; the initial form comprises a plurality of form elements;
binding the model attribute to a corresponding table element to generate an attribute form;
generating a form page by adopting the attribute form;
further, the step of generating a corresponding dynamic form according to the form page includes:
receiving a user instruction by adopting the form page, wherein the instruction comprises at least one of a request for adding, updating, deleting data, a request for inquiring data and a request for analyzing data;
generating a corresponding dynamic form according to the instruction;
further, the step of generating a dynamic form by the form page receiving the instruction of the request for adding, updating and deleting data includes:
receiving requests for adding, updating and deleting data by adopting the form page;
converting the data updating request and the data deleting request into data adding requests;
generating a form data instance according to the data increasing request;
converting the form data instance into an object data instance;
generating a dynamic form according to the object data instance;
further, the step of generating a dynamic form by the form page receiving the instruction of the query data request includes:
receiving a data query request by adopting the form page; the form page is used for acquiring a query result from a big data warehouse according to the query data request;
generating a dynamic form by adopting a query result;
further, the step of receiving the instruction of the request for analyzing data by the form page to generate a dynamic form includes:
receiving a data analysis request by adopting the form page; the form page is used for acquiring an analysis result from a big data warehouse according to the analysis data request;
generating a dynamic form according to the analysis result;
an embodiment of the present invention further provides a dynamic form generating apparatus, including:
the acquisition module is used for acquiring data to construct a data dictionary;
the building module is used for building an object model by the data dictionary;
the storage module is used for storing the constructed object model in an object model library;
and the generating module is used for generating a form page from the object model library and generating a corresponding dynamic form from the form page.
The embodiment of the invention has the following advantages: through the design of specific data architecture and data operation, the functions of the original database are commonly assumed by utilizing the cooperative application of data of different types and characteristics, so that the form data can meet the functions of OLTP (online transaction processing), OLAP (online analysis processing) and the like, and can meet the requirements of dynamically revising the form and persisting the data under the conditions of no halt, no restart or even no modification of a database form.
Drawings
FIG. 1 is a flowchart illustrating steps of a first embodiment of a dynamic form generation method of the present invention;
FIG. 2 is a flowchart illustrating steps of a second embodiment of a dynamic form generation method of the present invention;
FIG. 3 is a flowchart illustrating the steps of a third embodiment of a method for generating a dynamic form according to the present invention;
FIG. 4 is a flowchart illustrating the fourth step of a dynamic form generation method according to a fourth embodiment of the present invention;
FIG. 5 is a flowchart illustrating the fifth step of a dynamic form generation method according to an embodiment of the present invention;
FIG. 6 is a flowchart illustrating the sixth step of a dynamic form generation method according to an embodiment of the present invention;
FIG. 7 is a flowchart illustrating the seventh step of a dynamic form generation method according to an embodiment of the present invention;
FIG. 8 is a flowchart illustrating the steps of an eighth embodiment of a method for dynamic form generation;
FIG. 9 is a flowchart illustrating the ninth step of a dynamic form generation method of the present invention;
fig. 10 is a block diagram of a dynamic form generation apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a dynamic form generation method according to the present invention is shown, which may specifically include the following steps:
step S10: constructing a data dictionary;
the data dictionary is used for defining terms related to the business and semantic relations among the terms; the meaning of the method lies in the concept of unified and standardized global business, and the method can easily store and analyze data across different databases.
Step S20: constructing an object model according to the data dictionary;
through an object modeling tool (e.g., UML), for building a conceptual model of related objects participating in a business.
Step S30: storing the object model in a preset object model library;
the object model is constructed by the object modeling tool and is stored in a server in a file form described by a certain domain-specific language, but is loaded in a cache database (such as Redis) when a Web application program is started so as to be accessed quickly;
the embodiment of the invention is based on a JSON-defined form description language FDL, which describes element descriptions necessary for a form object model, including form element descriptions, element coordinate descriptions, constraints and rules, third-party data binding descriptions and the like.
Step S40: generating a form page according to the object model library;
based on the object model in the object model library, binding the necessary attributes in the object model to the corresponding form elements, and generating the form meeting the requirements of individual services through the interactive operation of the user-level self-defined form.
Step S50: and generating a corresponding dynamic form according to the form page.
And the user sends an instruction to the form page through the interaction with the form page, and generates a corresponding dynamic form according to the instruction.
As the step S10, a data dictionary is constructed, which specifically includes the following steps: acquiring terms; determining semantic relationships between the terms; and generating a data dictionary by adopting the terms and the semantic relation.
As mentioned in step S20, the object model is constructed according to the data dictionary, and the steps specifically include: determining a target business object by adopting a data dictionary; the target business object comprises a plurality of object attributes; acquiring a characteristic relation among a plurality of object attributes of a target business object; the characteristic relation comprises at least one of a conditional relation, a constraint relation and a calculation relation; and generating an object model by adopting the object attribute and the characteristic relation.
As described in step S30, the object models are stored in a preset object model library, and the object models are stored in the object model library in the form of files described in a certain domain-specific language.
As the step S40, a form page is generated according to the object model library, which includes the following steps: determining a target object model; obtaining the model attribute of a target object model from an object model library; and generating a form page according to the model attribute.
As the step S50, according to the form page, a corresponding dynamic form is generated, which specifically includes the steps of: receiving a user instruction by adopting the form page, wherein the instruction comprises at least one of a request for adding, updating, deleting data, a request for inquiring data and a request for analyzing data; and generating a corresponding dynamic form according to the instruction.
Referring to fig. 2, in this embodiment, in the above dynamic form generation method, a flowchart of steps of a second embodiment of the dynamic form generation method according to the present invention is shown, and a data dictionary is constructed, where the steps specifically include:
step S101: acquiring terms;
where the terms obtained are as follows: name, age, identification number;
step S102: determining semantic relationships between the terms;
the semantic relationship is as follows: the certificate number belongs to an identity card number;
step S103: generating a data dictionary by adopting the terms and the semantic relation;
and unifying and standardizing the terms and the semantic relation among the terms to generate a data dictionary.
Referring to fig. 3, in this embodiment, in the above dynamic form generation method, a flowchart of steps of a third embodiment of the dynamic form generation method according to the present invention is shown, where the step of constructing an object model according to the data dictionary specifically includes:
step S201: determining a target business object by adopting a data dictionary; the target business object comprises a plurality of object attributes;
the concept model is used for constructing related objects participating in the business, wherein the related objects comprise users, schools, classes and the like;
in the embodiment of the invention, the business object is determined to be a user, the user is a student, and the student comprises attributes such as name, age, gender and the like;
step S202: acquiring a characteristic relation among a plurality of object attributes of a target business object; the characteristic relation comprises at least one of a conditional relation, a constraint relation and a calculation relation;
in the embodiment of the invention, a plurality of objects for acquiring target service objects are determined as scores, wherein the scores comprise attributes such as courses, scores, teacher giving lessons and the like; calculating a condition relation, a constraint relation and a calculation relation among the attributes;
step S203: generating an object model by adopting the object attributes and the characteristic relation;
and generating corresponding user object models, namely student object models and achievement object models through an object modeling tool (such as UML).
Referring to fig. 4, in this embodiment, in the above dynamic form generation method, a flowchart illustrating steps of a fourth embodiment of the dynamic form generation method according to the present invention is shown, and a form page is generated according to an object model library, where the steps specifically include:
step S401: determining a target object model;
determining a target object model as a user object model in an embodiment of the present invention;
step S402: obtaining the model attribute of a target object model from an object model library;
obtaining attributes of a user object model from an object model library, wherein the attributes of the model are students;
step S403: and generating a form page according to the model attribute.
And generating a corresponding student form page according to the model attributes.
Referring to fig. 5, in this embodiment, in the above dynamic form generation method, a flowchart of a fifth step of an embodiment of the dynamic form generation method according to the present invention is shown, and the step of generating a form page according to the model attribute specifically includes:
step S4031: acquiring an initial form and a user operation instruction; the initial form comprises a plurality of form elements;
acquiring an initial form and a plurality of form elements of a release form based on an object model in an object model library;
step S4032: binding the model attribute to a corresponding table element to generate an attribute form;
binding the attribute in the necessary object model to the corresponding table element to generate a corresponding attribute form;
step S4033: generating a form page by adopting the attribute form;
and generating a form page meeting the requirements of the individual service of the form through a form designer according to the attribute form.
Referring to fig. 6, in this embodiment, in the above-mentioned dynamic form generation method, a flowchart of a sixth step of the dynamic form generation method embodiment of the present invention is shown, and according to the form page, a corresponding dynamic form is generated, which includes the following steps:
step S501: receiving a user instruction by adopting the form page, wherein the instruction comprises at least one of a request for adding, updating, deleting data, a request for inquiring data and a request for analyzing data;
receiving instructions of a user according to the form page, wherein the instructions comprise data adding, updating and deleting requests, data inquiring requests and data analyzing requests;
step S502: generating a corresponding dynamic form according to the instruction;
and the form page generates a corresponding dynamic form according to the corresponding instruction.
Referring to fig. 7, in this embodiment, in the above-mentioned dynamic form generation method, a flowchart of a seventh step of the dynamic form generation method embodiment of the present invention is shown, where a form page receives the instruction of the request for adding, updating, and deleting data to generate a dynamic form, and the steps specifically are:
step S50111: receiving requests for adding, updating and deleting data by adopting the form page;
a user receives a request of a corresponding instruction through interaction of a form page;
step S50112: converting the data updating request and the data deleting request into data adding requests;
when there are requests for updating data and deleting data, converting the requests into requests for adding data;
step S50113: generating a form data instance according to the data increasing request;
and generating corresponding form data instances according to the object models corresponding to the form pages, wherein one form has one or only one form data instance, describing the object model property bound by the corresponding form unit element through JSON description, and describing the key in the file, wherein the value comes from the value filled in the corresponding form unit element by the user.
Step S50114: converting the form data instance into an object data instance;
and extracting and assembling data in the form data instances according to the object model corresponding to the form to generate object data instances, wherein one form data instance can generate one to a plurality of data object instances, and the data object instances are all described through JSON.
Step S50115: generating a dynamic form according to the object data instance;
the document database (such as MongoDB) is used for storing the object data instance described by JSON, and the object database can meet the storage requirement of user data due to the performance advantage of the document database (such as MongoDB) for actually storing data in the aspect of reading and writing. Meanwhile, the invention changes the updating and deleting requests into new adding operation by the updating of the appointed data in the form of newly adding new version data and the deleting of the appointed data in the mode of changing the state mark of the old version, so that the object database can actually meet the storing, updating and deleting requests of the user data and generate a corresponding dynamic form.
Referring to fig. 8, in this embodiment, in the above-mentioned dynamic form generation method, a flowchart of the eighth step of the dynamic form generation method embodiment of the present invention is shown, where the form page receives the instruction of the query data request to generate the dynamic form, and the step specifically is:
step S50121: receiving a data query request by adopting the form page; the form page is used for acquiring a query result from a big data warehouse according to the query data request;
a user receives a request of a corresponding instruction through interaction of a form page; converting and storing data in the object database to a big data warehouse (such as HIVE) through a database converter;
step S50122: generating a dynamic form by adopting a query result;
and generating a corresponding dynamic form according to the query result.
Referring to fig. 9, in this embodiment, in the above-mentioned dynamic form generation method, a flowchart of the eighth step of the dynamic form generation method embodiment of the present invention is shown, where the form page receives the instruction of the analysis data request to generate the dynamic form, and the step specifically is:
step S50131: receiving a data analysis request by adopting the form page; the form page is used for acquiring an analysis result from a big data warehouse according to the analysis data request;
a user receives a request of a corresponding instruction through interaction of a form page; converting and storing data in the object database to a big data warehouse (such as HIVE) through a database converter;
step S50132: generating a dynamic form according to the analysis result;
and generating a corresponding dynamic form according to the analysis result.
Example one
Taking a form as an example, the form design function is mainly to input the annual course scores of students. Before designing a form, modeling objects participating in the form, and establishing a user object model and a achievement object model: the student object model comprises attributes such as 'name', 'age' and the like; the achievement object model mainly comprises: the attributes of "course" and "achievement".
The name is Zhang III,
the age is 18 percent,
"achievement list" [ { "course": Chinese "," achievement ": a" }, { "course": math "," achievement ":
"B"}],
1553226681 is used as a time stamp.
Where the time stamp records the time at which the data was generated.
The student object instance after the form data instance is split and converted is
"ID":"X001",
The name is Zhang III,
the age is 18 percent,
1553226681 is used as a time stamp.
An example of an achievement list object is
"student" "X001",
"achievement list" [ { "course": Chinese "," achievement ": a" }, { "course": math "," achievement ": B" } ],
1553226681 is used as a time stamp.
At the moment, the object model and the 'input student score' form are dynamically modified, and the attribute support of the 'gender' of the students and the attribute support of the 'teaching teacher' in the score are added after modification. And inputting data of a new student (such as Liqu), wherein after the form is submitted, the generated form data example is as follows:
{ "name": lie four ",
the age is 17 percent of the total age of the patient,
"gender" means "female",
"achievement list" [ { "course": Chinese "," achievement ": a", "teaching teacher": Mary "}, {" course ": mathematics", "achievement": a "," teaching teacher ": John" },
"timestamp" 1553226681 }.
The student object instance after the form data instance is split and converted is
{"ID":"X002",
The name is Lifours,
the age is 14, and the number of the children is 14,
"gender" means "female",
"timestamp" 1553226681 }.
An example of an achievement list object is
{ "student": X002",
"achievement list" [ { "course": Chinese "," achievement ": a", "teaching teacher": Mary "}, {" course ": mathematics", "achievement": a "," teaching teacher ": John" },
"timestamp" 1553226681 }.
When the form data is updated, if the Chinese score of the student 'LiSi' is updated to be B, the method converts the update request into a new request and keeps the reference of the original data in the new data.
{ "student": X002",
"achievement list": Chinese { "course": Chinese, "" achievement ": B," "lecture teacher": Mary "}, {" course ": mathematics," "achievement": a, "" lecture teacher ": John" },
a "time stamp" of 1553745899 that is,
"request" "update",
"previous version data ID": 2f791a10dbcda7a7a490a1ec10981f44 "}.
The key "last version data ID" records the source data of the update object, and the corresponding value is the unique value obtained by hashing (such as MD5) the last version data object. Similarly, the "delete" request for data can be converted into the "add" request.
It can be seen from the above cases that when the form changes dynamically, the collected information in the object data instance also changes correspondingly, but because the persistence layer and the data layer do not need to be modified in terms of codes and a database, the new addition, update, query, analysis and statistics of the mobile phone data before and after modification can be supported, and therefore the change of the dynamic form does not need to require the SaaS system to be restarted.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 10, a block diagram of a dynamic form generation apparatus according to an embodiment of the present invention is shown, which may specifically include the following modules:
an obtaining module 1001, configured to obtain data to construct a data dictionary;
a construction module 1002, configured to construct an object model by using a data dictionary;
a storage module 1003, configured to store the constructed object model in an object model library;
the generating module 1004 is configured to generate a form page from the object model library and generate a corresponding dynamic form from the form page.
In a preferred embodiment, the obtaining module 1001 may include:
an acquisition unit configured to acquire a related term;
a judging unit for judging the semantic relationship between the determined terms;
and the construction unit is used for constructing the data dictionary according to the adopted terms and the semantic relation.
In a preferred embodiment, the building module 1002 may include:
the screening unit is used for screening and determining the target business object by adopting the data dictionary;
the operation unit is used for operating the characteristic relation among the object attributes of the target business object;
and the construction unit is used for constructing an object model according to the object attribute and the characteristic relation.
In a preferred embodiment, the generating module 1004 may include:
a determination unit for determining a target object model;
the attribute acquiring unit is used for acquiring the model attribute of the target object model according to the object model library;
the first generation unit is used for generating a form page according to the model attribute;
the instruction unit is used for receiving an instruction of a user by the form page;
and the second generating unit is used for generating a corresponding dynamic form according to the instruction.
In a preferred embodiment, the first generating unit includes:
the initial form subunit is used for acquiring an initial form and a user operation instruction; the initial form comprises a plurality of form elements;
the attribute form generation subunit is used for binding the model attribute to the corresponding form element to generate an attribute form;
and the form page generating subunit is used for generating the form page by adopting the attribute form.
In a preferred embodiment, the instruction unit comprises:
the receiving instruction first unit is used for receiving an instruction of a user by adopting the form page, wherein the instruction comprises at least one of a request for adding, updating, deleting data, a request for inquiring data and a request for analyzing data;
and the instruction generating subunit is used for generating a corresponding dynamic form according to the instruction.
In a preferred embodiment, the receiving instruction subunit includes:
the request conversion subunit is used for converting the data updating request and the data deleting request into data adding requests;
the data instance generating subunit is used for generating a form data instance according to the data increasing request;
the data instance conversion subunit is used for converting the form data instance into an object data instance;
and the first dynamic form generation unit is used for generating a dynamic form according to the object data instance.
In a preferred embodiment, the receiving instruction subunit includes:
a second unit of receiving instructions, configured to receive a request for querying data by using the form page; the form page is used for acquiring a query result from a big data warehouse according to the query data request;
and the dynamic form generation second unit is used for generating the dynamic form by adopting the query result.
In a preferred embodiment, the receiving instruction subunit includes:
a third unit for receiving instructions, configured to receive a request for analyzing data by using the form page; the form page is used for acquiring an analysis result from a big data warehouse according to the analysis data request;
and the dynamic form generation third unit is used for generating a dynamic form according to the analysis result.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The method and the device for generating the dynamic form provided by the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (5)
1. A dynamic form generation method is characterized by comprising the following steps:
constructing a data dictionary;
constructing an object model according to the data dictionary, wherein a target business object is determined by adopting the data dictionary; the target business object comprises a plurality of object attributes; acquiring a characteristic relation among a plurality of object attributes of a target business object; the characteristic relation comprises at least one of a conditional relation, a constraint relation and a calculation relation; generating an object model by adopting the object attributes and the characteristic relation;
storing the object model in a preset object model library;
generating a form page according to the object model library;
generating a corresponding dynamic form according to the form page, wherein the form page is adopted to receive a user instruction, and the instruction comprises at least one of a data adding request, a data updating request, a data deleting request, a data inquiring request and a data analyzing request; and generating a corresponding dynamic form according to the instruction, wherein,
the step of generating the dynamic form by the form page receiving the instruction of the request for adding, updating and deleting data includes: receiving requests for adding, updating and deleting data by adopting the form page; converting the data updating request and the data deleting request into data adding requests, wherein references to original data are reserved in data of the data adding requests; generating a form data instance according to the data increasing request; converting the form data instance into one or more object data instances; generating a dynamic form according to the object data instance;
the step of the form page receiving the instruction of the query data request to generate a dynamic form includes: receiving a data query request by adopting the form page; the form page is used for acquiring a query result from a big data warehouse according to the query data request; generating a dynamic form by adopting a query result;
the step of the form page receiving the instruction of the analysis data request to generate a dynamic form includes: receiving a data analysis request by adopting the form page; the form page is used for acquiring an analysis result from a big data warehouse according to the analysis data request; and generating a dynamic form according to the analysis result.
2. The dynamic form generation method of claim 1, wherein the step of building a data dictionary comprises:
acquiring terms;
determining semantic relationships between the terms;
and generating a data dictionary by adopting the terms and the semantic relation.
3. The dynamic form generation method of claim 1, wherein the step of generating a form page from an object model library comprises:
determining a target object model;
obtaining the model attribute of a target object model from an object model library;
and generating a form page according to the model attribute.
4. The dynamic form generation method of claim 3, wherein the step of generating a form page based on the model attributes comprises:
acquiring an initial form and a user operation instruction; the initial form comprises a plurality of form elements;
binding the model attribute to a corresponding table element to generate an attribute form;
and generating a form page by adopting the attribute form.
5. A dynamic form generation apparatus, comprising:
the acquisition module is used for acquiring data to construct a data dictionary;
the construction module is used for constructing an object model according to the data dictionary, wherein a target business object is determined by adopting the data dictionary; the target business object comprises a plurality of object attributes; acquiring a characteristic relation among a plurality of object attributes of a target business object; the characteristic relation comprises at least one of a conditional relation, a constraint relation and a calculation relation; generating an object model by adopting the object attributes and the characteristic relation;
the storage module is used for storing the constructed object model in an object model library;
the generating module is used for generating a form page according to the object model library; generating a corresponding dynamic form according to the form page, wherein the form page is adopted to receive a user instruction, and the instruction comprises at least one of a data adding request, a data updating request, a data deleting request, a data inquiring request and a data analyzing request; and generating a corresponding dynamic form according to the instruction, wherein,
the step of generating the dynamic form by the form page receiving the instruction of the request for adding, updating and deleting data includes: receiving requests for adding, updating and deleting data by adopting the form page; converting the data updating request and the data deleting request into data adding requests, wherein references to original data are reserved in data of the data adding requests; generating a form data instance according to the data increasing request; converting the form data instance into one or more object data instances; generating a dynamic form according to the object data instance;
the step of the form page receiving the instruction of the query data request to generate a dynamic form includes: receiving a data query request by adopting the form page; the form page is used for acquiring a query result from a big data warehouse according to the query data request; generating a dynamic form by adopting a query result;
the step of the form page receiving the instruction of the analysis data request to generate a dynamic form includes: receiving a data analysis request by adopting the form page; the form page is used for acquiring an analysis result from a big data warehouse according to the analysis data request; and generating a dynamic form according to the analysis result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910350836.7A CN110222047B (en) | 2019-04-28 | 2019-04-28 | Dynamic form generation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910350836.7A CN110222047B (en) | 2019-04-28 | 2019-04-28 | Dynamic form generation method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110222047A CN110222047A (en) | 2019-09-10 |
CN110222047B true CN110222047B (en) | 2021-03-16 |
Family
ID=67820148
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910350836.7A Active CN110222047B (en) | 2019-04-28 | 2019-04-28 | Dynamic form generation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110222047B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111161113A (en) * | 2019-12-31 | 2020-05-15 | 厦门悦讯信息科技股份有限公司 | Method and system for quickly assisting in entering score information |
CN113590592A (en) * | 2021-08-04 | 2021-11-02 | 亚联(天津)信息技术有限责任公司 | Dynamic modeling method and device based on relational database |
CN115238660B (en) * | 2022-09-21 | 2023-01-24 | 广东省科技基础条件平台中心 | Form dynamic generation method, device, equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101308490A (en) * | 2008-04-28 | 2008-11-19 | 北京航空航天大学 | Dynamic report generation method and platform |
CN103577197A (en) * | 2013-11-18 | 2014-02-12 | 深圳市远行科技有限公司 | Method for achieving android application program dynamic form |
CN106909610A (en) * | 2017-01-10 | 2017-06-30 | 中电科华云信息技术有限公司 | Visualization based on browser pulls the method and system of inquiry data |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090043736A1 (en) * | 2007-08-08 | 2009-02-12 | Wook-Shin Han | Efficient tuple extraction from streaming xml data |
CN101661508B (en) * | 2009-09-29 | 2012-08-22 | 金蝶软件(中国)有限公司 | Method for generating memu for multi-technology platform and device thereof |
US9535573B2 (en) * | 2011-08-26 | 2017-01-03 | Salesforce.Com, Inc. | Systems and methods for dynamic list views and detail pages |
CN103246733A (en) * | 2013-05-13 | 2013-08-14 | 浪潮集团山东通用软件有限公司 | Dynamic form system based on metadata and generation method thereof |
CN103235727B (en) * | 2013-05-17 | 2016-08-03 | 杭州世导信息技术有限公司 | Local dynamic station list engine apparatus, system and method |
CN105630502A (en) * | 2015-12-28 | 2016-06-01 | 武汉传神信息技术有限公司 | Method and system for generating dynamic form |
-
2019
- 2019-04-28 CN CN201910350836.7A patent/CN110222047B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101308490A (en) * | 2008-04-28 | 2008-11-19 | 北京航空航天大学 | Dynamic report generation method and platform |
CN103577197A (en) * | 2013-11-18 | 2014-02-12 | 深圳市远行科技有限公司 | Method for achieving android application program dynamic form |
CN106909610A (en) * | 2017-01-10 | 2017-06-30 | 中电科华云信息技术有限公司 | Visualization based on browser pulls the method and system of inquiry data |
Non-Patent Citations (1)
Title |
---|
集成工作流的GIS应用动态表单组件设计与实现;陈颖 等;《湖北大学学报(自然科学版)》;20131205;第35卷(第4期);521-526 * |
Also Published As
Publication number | Publication date |
---|---|
CN110222047A (en) | 2019-09-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Joss et al. | The smart city as global discourse: Storylines and critical junctures across 27 cities | |
CN110457439B (en) | One-stop intelligent writing auxiliary method, device and system | |
Whitmore | Using open government data to predict war: A case study of data and systems challenges | |
Morsey et al. | Dbpedia and the live extraction of structured data from wikipedia | |
EP3502928A1 (en) | Intelligent natural language query processor | |
KR20210040891A (en) | Method and Apparatus of Recommending Information, Electronic Device, Computer-Readable Recording Medium, and Computer Program | |
CN110222047B (en) | Dynamic form generation method and device | |
Silva et al. | Integrating big data into the computing curricula | |
Alonso-Rorís et al. | Information extraction in semantic, highly-structured, and semi-structured web sources | |
Panda | Usefulness and impact of Big Data in libraries: An opportunity to implement embedded librarianship | |
Kim et al. | Comprehensive Knowledge Archive Network harvester improvement for efficient open‐data collection and management | |
Candela | An automatic data quality approach to assess semantic data from cultural heritage institutions | |
Shadbolt et al. | EGovernment | |
Sielis et al. | ArchReco: a software tool to assist software design based on context aware recommendations of design patterns | |
Xu et al. | Construction of an open knowledge framework for geoscientific models | |
Knoll et al. | Tool-based Support for the FAIR Principles for Control Theoretic Results: The'Automatic Control Knowledge Repository' | |
Makola et al. | Critical Success Factors for Adopting Enterprise Architecture Metamodel in the Health Sector: Literature Review | |
Varadharajulu et al. | Spatial data supply chains | |
Creamer et al. | Archiving a TEI Project FAIRly | |
Willmes | CRC806-Database: A semantic e-Science infrastructure for an interdisciplinary research centre | |
Sahara et al. | Integration Model of Academic Information Systems and Learning Management Systems with REST Web Services Using External Databases | |
Białas et al. | Information technology systems that support science and higher education RAD-on: Reports, analyses, data | |
Zeller et al. | Towards a proof framework for information systems with weak consistency | |
Vidal et al. | Applying semantics to grid middleware | |
Aven | Hadoop in 24 Hours, Sams Teach Yourself |
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 |