CN115130444A - Method, device, equipment and medium for generating dynamic form - Google Patents
Method, device, equipment and medium for generating dynamic form Download PDFInfo
- Publication number
- CN115130444A CN115130444A CN202210749396.4A CN202210749396A CN115130444A CN 115130444 A CN115130444 A CN 115130444A CN 202210749396 A CN202210749396 A CN 202210749396A CN 115130444 A CN115130444 A CN 115130444A
- Authority
- CN
- China
- Prior art keywords
- dynamic
- target
- manager
- elements
- generating
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 62
- 230000006870 function Effects 0.000 claims description 28
- 238000012545 processing Methods 0.000 claims description 18
- 238000004590 computer program Methods 0.000 claims description 16
- 230000008859 change Effects 0.000 claims description 3
- 230000004044 response Effects 0.000 claims description 2
- 238000013461 design Methods 0.000 abstract description 6
- 238000004891 communication Methods 0.000 description 8
- 238000011161 development Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 230000003993 interaction Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 230000001617 migratory effect Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000013480 data collection Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003631 expected effect Effects 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/177—Editing, e.g. inserting or deleting of tables; using ruled lines
- G06F40/18—Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
-
- 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/284—Relational databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0482—Interaction with lists of selectable items, e.g. menus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0486—Drag-and-drop
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the invention discloses a method, a device, equipment and a medium for generating a dynamic form. Wherein, the method comprises the following steps: acquiring form elements according to a preset relational database, and storing the form elements into a form manager; wherein, the form element is used for representing attribute information of a column of data; creating a blank form, and displaying all form elements in the form manager in a form manager display column; and adding the target form element in the form manager to the blank form to generate a target dynamic form. According to the technical scheme, elements in the relational database can be arbitrarily dragged according to different service requirements to generate the dynamic form, so that the flexibility of form design is improved, and the maintainability of the system is improved.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for generating a dynamic form.
Background
In enterprise-level development, forms are often required to be designed according to different business requirements, and data acquisition and application are realized through interaction between the forms and users. The form may be data collection and display of a service, or collection and pushing of critical information of a workflow.
However, when a user puts forward a new business requirement, developers are often required to customize and develop the form based on the business requirement, so that the development workload of the business system is increased, the project development period is prolonged, the development cost is increased, and the system maintenance difficulty is increased.
Therefore, how to provide a method for generating a dynamic form capable of flexibly configuring service requirements is a technical problem to be urgently solved by those skilled in the art.
Disclosure of Invention
The invention provides a method, a device, equipment and a medium for generating a dynamic form, which can arbitrarily drag elements in a relational database according to different service requirements to generate the dynamic form, increase the flexibility of form design and improve the maintainability of a system.
According to an aspect of the present invention, there is provided a method for generating a dynamic form, the method including:
acquiring form elements according to a preset relational database, and storing the form elements into a form manager; wherein, the form element is used for representing attribute information of a column of data;
creating a blank form, and displaying all form elements in the form manager in a form manager display column;
and adding the target form element in the form manager to the blank form to generate a target dynamic form.
According to another aspect of the present invention, there is provided a dynamic form generating apparatus, including:
the form element acquisition module is used for acquiring form elements according to a preset relational database and storing the form elements into the form manager; wherein, the form element is used for representing attribute information of a column of data;
the system comprises a blank form creating module, a form manager display column and a form management module, wherein the blank form creating module is used for creating a blank form and displaying all form elements in the form manager display column;
and the dynamic form generation module is used for adding the target form element in the form manager to the blank form to generate a target dynamic form.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform a method of generating a dynamic form according to any of the embodiments of the invention.
According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement the method for generating a dynamic form according to any one of the embodiments of the present invention when the computer instructions are executed.
According to the technical scheme of the embodiment of the invention, the form elements are obtained according to the preset relational database and are stored in the form manager; wherein, the form element is used for representing attribute information of a column of data; creating a blank form, and displaying all form elements in the form manager in a form manager display column; and adding the target form element in the form manager to the blank form to generate a target dynamic form. According to the technical scheme, the elements in the relational database can be arbitrarily dragged according to different service requirements to generate the dynamic form, so that the flexibility of form design is improved, and the maintainability of the system is improved.
It should be understood that the statements in this section are not intended to identify key or critical features of the embodiments of the present invention, nor are they intended to limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart of a method for generating a dynamic form according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for generating a dynamic form according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a dynamic form generating apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device implementing the method for generating a dynamic form according to the embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," "target," and the like in the description and claims of the present invention and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Moreover, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
Fig. 1 is a flowchart of a method for generating a dynamic form according to an embodiment of the present invention, where the method is applicable to a case where time-series data contents are hierarchically combined, and the method may be executed by a dynamic form generating apparatus, where the dynamic form generating apparatus may be implemented in a form of hardware and/or software, and the dynamic form generating apparatus may be configured in an electronic device with data processing capability. As shown in fig. 1, the method includes:
s110, acquiring form elements according to a preset relational database, and storing the form elements into a form manager; wherein the form element is used for representing attribute information of a column of data.
The preset relational database may be a database established on the basis of a relational database model, or a database formed by a set of all form elements and relations between form elements in a given domain. The preset relational database may be, for example, Oracle, DB2, SQLServer, Sybase, MySQL, or the like. It should be noted that, in the embodiment of the present invention, the preset relational database may be selected according to actual needs, and the type of the preset relational database is not limited in the embodiment of the present invention.
The form element may be attribute information for describing a list of data in the preset relational database, for example, name, age, gender, and the like, and may be stored in the form of a configuration file. A table element may include a field and field attributes, e.g., a field may include a field identification, a field type, or a field name, and a field attribute may include an attribute name and an attribute value.
The form manager may be a display interaction platform that provides form elements for end users, and may include form elements, controls, and the like, where the controls may include textboxes, textfields, drop-down boxes, radio boxes, check boxes, table layouts, dynamic attachments, dynamic rows, and the like.
In the embodiment of the invention, the table element is obtained according to the preset relational database, for example, the preset relational database is SQLServer, and the table element can be obtained through a system storage process and a system function; for another example, if the preset relational database is Sybase, the table elements can be obtained through a system table or a system storage process; for another example, the preset relational database is Oracle, and the table element can be acquired through the data dictionary view.
In addition, table elements in the preset relational database are stored in the form manager, and the table elements can be completely or partially imported into the form manager from the preset relational database through an import function; the elements in the entity attribute table can also be imported into the form manager by creating the entity attribute table in the preset relational database.
In this embodiment of the present invention, optionally, obtaining an element according to a preset relationship database, and storing the element in the form manager includes: newly building an entity table in a preset relational database; the entity table comprises all elements of the preset relational database; and storing all elements in the entity table in a form manager according to the attributes of the elements.
The entity table may be a mapping relationship between entities in a preset relational database. An entity may be a thing or concept definable within a system, such as a person/role (e.g., student), an object (e.g., invoice), a concept (e.g., profile), or an event (e.g., transaction). Each entity corresponds to a corresponding attribute, and the attribute may also be a column or field for describing the entity, and may include an identifier such as an attribute name, a type, a length, a primary key, or a foreign key. It is understood that the entity table may have one-to-one, one-to-many, or many-to-many relationships between entities.
The elements in the preset relational database are extracted through the entity table, and the elements in the entity table are stored in the form manager according to the attributes of the elements, so that the elements can be conveniently classified and stored and subsequently operated.
And S120, creating a blank form, and displaying all form elements in the form manager in a form manager display field.
The blank form may be a form for initializing the generated dynamic form, and is used for displaying, inputting, and modifying data. The blank form may be a form that initializes the style, number of columns and rows, width of columns and rows, name of the form, etc. of the generated dynamic form.
The form manager display column may be used to display form elements, controls, and the like, for example, the form elements may be displayed according to their character types and control types; and the method can also be used for dragging the form elements and controls in the form manager.
And S130, adding the target form element in the form manager to the blank form to generate a target dynamic form.
The target dynamic form may be a form manually generated by a manual drag operation based on a target form element, or may be a form automatically generated based on a preset form to which each business function belongs. The target form element can be a dynamic form element determined based on business requirements and actual requirements, wherein the business requirements can comprise preset form elements based on business functions of the target dynamic form and can be automatically generated; the actual demand may include table elements other than the preset table elements in the business demand, and the table elements may be added by a manual drag. It can be understood that when a terminal program such as a browser configured in association with the form manager is manually manipulated to add a target form element in the form manager to a blank form, the target form element is dragged.
For example, the standing population of a certain area is counted, the preset form elements are name, identification number, gender, age, ethnicity, education level, industry, occupation and migratory movement, and if the marriage rate of the certain area is counted on the basis of the standing population statistics, the marital status can be increased.
The target dynamic forms may include the forms needed to perform the defined services. It will be appreciated that the required forms differ when handling business transactions for different business functions. For example, when dealing with the business functions related to census, the required form can be a short census table, a long census table, a census table for harbor and Australian staffs or a death population questionnaire; when handling business functions related to property management, the required form may be a business owner basic information registry, a utility maintenance statistical table, a property management fee statistical table, or the like.
It should be noted that, while the target dynamic form is generated, the unique identification number of the target dynamic form is generated. The unique identification number uniquely corresponds to the corresponding target dynamic form, and the unique identification number may include an identification of each form element in the target dynamic form. After the unique identification number is manually configured and issued, the user can perform corresponding operations, such as query, questionnaire survey and the like, on the target dynamic form by accessing the configuration page corresponding to the unique identification number.
According to the method for generating the dynamic form, table elements are obtained according to a preset relational database and are stored in a form manager; wherein, the form element is used for representing attribute information of a column of data; creating a blank form, and displaying all form elements in the form manager in a form manager display column; and adding the target form element in the form manager to the blank form to generate a target dynamic form. By the technical scheme provided by the embodiment of the invention, the elements in the relational database can be arbitrarily dragged according to different service requirements to generate the dynamic form, so that the flexibility of form design is increased, and the maintainability of the system is improved.
Example two
Fig. 2 is a flowchart of a method for generating a dynamic form according to a second embodiment of the present invention, and the second embodiment is optimized based on the first embodiment. The specific optimization is as follows: responding to the drag operation of the target form element, adding the target form element into the blank form, and generating a target dynamic form, wherein the method comprises the following steps: responding to the drag operation of the target table element, adding the target table element into the blank form, and generating a first dynamic form; generating a preview interface of the first dynamic form; and if the preview interface meets the preset standard, determining the first dynamic form as a target dynamic form.
As shown in fig. 2, the method of this embodiment specifically includes the following steps:
s210, acquiring form elements according to a preset relational database, and storing the form elements into a form manager; wherein the form element is used for representing attribute information of a column of data.
S220, creating a blank form, and displaying all form elements in the form manager in a form manager display column.
And S230, adding the target form element in the form manager to the blank form to generate a first dynamic form.
The first dynamic form may be a form manually generated by a human drag operation based on a target form element, or may be a form automatically generated based on a preset form to which each business function belongs. The target form element may be a dynamic form element determined based on business requirements and actual requirements, where the business requirements may include a preset form element based on a business function to which the first dynamic form belongs, and the actual requirements may include form elements other than the preset form element in the business requirements. For example, the standing population of a certain area is counted, the preset form elements are name, identification number, gender, age, ethnicity, education level, industry, occupation and migratory movement, and if the marriage rate of the certain area is counted on the basis of the standing population statistics, the marital status can be increased.
And S240, generating a preview interface of the first dynamic form.
It is understood that the first dynamic form may be manually generated based on human operation or automatically generated based on a preset form of business function. If the first dynamic form is manually generated based on manual operation, a difference may exist between the first dynamic form and the target dynamic form due to an error of the manual operation; if the first dynamic form is automatically generated based on a preset form of a business function, the first dynamic form may be different from the target dynamic form due to the personalized requirements of the user. Therefore, a preview interface of the first dynamic form is determined according to the generated first dynamic form, and whether the first dynamic form meets the expected effect or not can be determined through the preview interface.
The preview interface may include, among other things, the names, element orders, and display locations of the various form elements in the first dynamic form. By generating the preview interface of the first dynamic form, the application range of the dynamic form can be expanded while the repeated development workload of developers is reduced, and the personalized requirements of different services are met.
And S250, if the preview interface meets the preset standard, determining that the first dynamic form is a target dynamic form.
The preset standard may be a preset type, a preset sequence, a preset name, and a preset display position of the target dynamic form. In the embodiment of the present invention, whether the preview interface meets the preset standard or not may be determined by comparing the preset type, the preset sequence, the preset name and the preset display position respectively, and determining whether the type and the number of the preview type are consistent with those of the preset type, whether the preview sequence is consistent with the preset sequence, whether the preview name is consistent with the preset name or not, and whether the preview display position is consistent with the preset display position or not. If the preview interface meets the preset standard, the first dynamic form bit target dynamic form can be determined.
In this embodiment of the present invention, optionally, after generating the preview interface of the first dynamic form, the method further includes: if the preview interface does not meet the preset standard, determining form elements to be processed according to the first dynamic form and the preset standard; determining a processing mode corresponding to the table element to be processed according to the table element to be processed; and updating the first dynamic form according to the processing mode to obtain a target dynamic form.
The form element to be processed can be a form element with a preview interface inconsistent with a preset standard.
It is understood that the form element to be processed may be the type, order, name or display position of the element that needs to be updated. The types of the elements to be processed which need to be corrected and updated are different, and the corresponding processing modes are also different. For example, if the type of the to-be-processed form element is inconsistent with the preset standard, the corresponding processing mode may be to delete the to-be-processed element and add the correct target form element to the original display position of the to-be-processed element in a dragging mode; for another example, if the sequence of the table elements to be processed is not consistent with the preset standard, the corresponding processing manner may be to adjust the sequence of the table elements to be processed by shifting left, shifting right, shifting up or shifting down.
The elements to be processed are adjusted and changed by adopting a corresponding processing mode, so that the first dynamic form meets the preset standard of the target dynamic form, and the repairability and the modification of the target dynamic form can be improved.
According to the method for generating the dynamic form, the form elements are obtained according to the preset relational database and are stored in the form manager; wherein, the form element is used for representing attribute information of a column of data; creating a blank form, and displaying all form elements in the form manager in a form manager display column; responding to the drag operation of the target form element, adding the target form element into the blank form, and generating a target dynamic form, wherein the method comprises the following steps: responding to the drag operation of the target form element, adding the target form element into the blank form, and generating a first dynamic form; generating a preview interface of the first dynamic form; and if the preview interface meets the preset standard, determining the first dynamic form as a target dynamic form. Through the technical scheme provided by the embodiment of the invention,
based on the foregoing embodiments, optionally, before adding the target form element in the form manager to the blank form and generating the first dynamic form, the method further includes: determining a preset form element of the target dynamic form according to the service function corresponding to the target dynamic form; and determining a target form element corresponding to the preset form element in the form manager according to the preset form element.
The service function may be a function table corresponding to the service. It is understood that one service may correspond to one service function, or may correspond to a plurality of service functions at the same time. For example, if a certain service is book borrowing, the service function corresponding to the book borrowing service may be a book information table and a book borrowing record table. Further illustratively, if a certain business is an order purchase, the business function corresponding to the order purchase may be a product information table, an order information table, a shopping cart table, and a goods inventory table.
In the embodiment of the invention, the preset form element is determined according to the service function, and the target form element is further determined. The preset form elements in the business function are preset, and when the target form elements are determined, the preset form elements can be deleted, added or modified according to the actual business function requirements to determine the target form elements.
Through the setting, the service function can be flexibly configured and expanded, hard coding in the system is avoided, and the maintainability of the system is improved.
On the basis of the foregoing embodiments, optionally, after generating the target dynamic form, the method further includes: if the table structure of the preset relational database is monitored to be changed, generating prompt information of changed information in the form manager; and determining whether to update the changed information into the dynamic form according to the prompt information.
It is understood that the preset relational database is represented by a two-dimensional table structure, the two-dimensional table is a logical group with related information arranged in rows and columns, and the preset relational database may include a plurality of two-dimensional tables. The table structure of the preset relational database may be a two-dimensional table. If the table structure of the preset relational database is monitored to be changed, the fact that the elements in the preset relational database are changed or the relations between the elements are changed is meant. The monitoring mode of the preset relational database may be to start a timing task to scan the preset relational database to obtain data changes. Of course, the embodiment of the present invention does not limit the monitoring method of the preset relational database.
Further, the prompt information generated in the form manager may be represented in the form of bubbles, pop-up windows, sounds by a combination of elements such as sound, text, color, graphics, time, and the like. The prompting mode can be a message type, and the prompting is carried out in a red dot or digital mode; the prompt can be performed in a full screen popup mode; or can be a popup window type, and prompts are carried out in the form of embedded type prompts, modal windows, modeless windows or dialog boxes; the prompt may also be in the form of a label. The prompt message may include the change information that occurred and the option of whether to update. And determining whether the changed information needs to be updated according to the prompt information and the actual service requirement of the target dynamic form.
Through the setting, the real-time performance and the accuracy of the dynamic form can be improved, and the use satisfaction degree of a user can be improved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a device for generating a dynamic form according to a third embodiment of the present invention, where the device can execute a method for generating a dynamic form according to any embodiment of the present invention, and has corresponding functional modules and beneficial effects of the execution method. As shown in fig. 3, the apparatus includes:
the form element acquiring module 310 is configured to acquire a form element according to a preset relational database, and store the form element in a form manager; wherein, the form element is used for representing attribute information of a column of data;
a blank form creating module 320, configured to create a blank form, and display all form elements in the form manager in a form manager display field;
and the dynamic form generating module 330 is configured to add the target form element in the form manager to the blank form to generate a target dynamic form.
According to the device for generating the dynamic form, the form elements are obtained according to the preset relational database and are stored in the form manager; wherein, the form element is used for representing attribute information of a column of data; creating a blank form, and displaying all form elements in the form manager in a form manager display column; and adding the target form element in the form manager to the blank form to generate a target dynamic form. By the technical scheme provided by the embodiment of the invention, the elements in the relational database can be arbitrarily dragged according to different service requirements to generate the dynamic form, so that the flexibility of form design is increased, and the maintainability of the system is improved.
Further, the dynamic form generating module 330 includes:
the first dynamic form generating unit is used for adding the target form element in the form manager to the blank form to generate a first dynamic form;
the preview interface generating unit is used for generating a preview interface of the first dynamic form;
and the target dynamic form determining unit is used for determining the first dynamic form as the target dynamic form if the preview interface meets the preset standard.
Further, the apparatus further comprises:
the to-be-processed form element determining module is used for determining a to-be-processed form element according to the first dynamic form and a preset standard if a preview interface of the first dynamic form is generated and the preview interface does not accord with the preset standard;
the processing mode determining module is used for determining the processing mode corresponding to the table element to be processed according to the table element to be processed;
and the target dynamic form determining module is used for updating the first dynamic form according to the processing mode to obtain a target dynamic form.
Further, the preset rule includes a business function, and a form element associated with the business function.
Further, the apparatus further comprises:
the preset form element determining module is used for determining the preset form element of the target dynamic form according to the corresponding service function of the target dynamic form before the target form element is added to the blank form in response to the drag operation of the target form element and the first dynamic form is generated;
and the target form element determining module is used for determining a target form element corresponding to the preset form element in the form manager according to the preset form element.
Further, the table element obtaining module 310 includes:
the entity table creating unit is used for creating an entity table in the preset relational database; the entity table comprises all elements of the preset relational database;
and the form manager processing unit is used for storing all the elements in the entity table in the form manager according to the attributes of the elements.
Further, the apparatus further comprises:
the prompt information generation module is used for generating prompt information of changed information in the form manager if the form of the preset relational database is monitored to be changed after a target dynamic form is generated;
and the dynamic form updating module is used for determining whether to update the generated change information into the dynamic form according to the prompt information.
The dynamic form generation device provided by the embodiment of the invention can execute the dynamic form generation method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
FIG. 4 illustrates a block diagram of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM)12, a Random Access Memory (RAM)13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM)12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM13, various programs and data required for operation of the electronic device 10 may also be stored. The processor 11, the ROM12, and the RAM13 are connected to each other by a bus 14. An input/output (I/O) interface 15 is also connected to the bus 14.
A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The processor 11 performs the various methods and processes described above, such as the method of dynamic form generation.
In some embodiments, the method of generating a dynamic form may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM12 and/or the communication unit 19. When loaded into RAM13 and executed by processor 11, the computer program may perform one or more of the steps of the generation of the method dynamic form described above. Alternatively, in other embodiments, the processor 11 may be configured to perform the method of generating the dynamic form by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
EXAMPLE five
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), blockchain networks, and the Internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. A method for generating a dynamic form, the method comprising:
acquiring form elements according to a preset relational database, and storing the form elements into a form manager; wherein, the form element is used for representing attribute information of a column of data;
creating a blank form, and displaying all form elements in the form manager in a form manager display column;
and adding the target form element in the form manager to the blank form to generate a target dynamic form.
2. The method of claim 1, wherein adding a target form element to the blank form in response to a drag operation of the target form element, generating a target dynamic form comprises:
adding a target form element in the form manager to the blank form to generate a first dynamic form;
generating a preview interface of the first dynamic form;
and if the preview interface meets the preset standard, determining the first dynamic form as a target dynamic form.
3. The method of claim 2, wherein after generating the preview interface for the first dynamic form, the method further comprises:
if the preview interface does not meet the preset standard, determining a form element to be processed according to the first dynamic form and the preset standard;
determining a processing mode corresponding to the table element to be processed according to the table element to be processed;
and updating the first dynamic form according to the processing mode to obtain a target dynamic form.
4. The method of claim 2, wherein prior to adding the target form element in the form manager to the blank form to generate the first dynamic form, the method further comprises:
determining a target form element of the target dynamic form according to the service function corresponding to the target dynamic form;
and determining a form element corresponding to the target form element in the form manager according to the target form element.
5. The method of claim 1, wherein obtaining the elements from the predetermined relational database and saving the elements to the form manager comprises:
newly building an entity table in a preset relational database; the entity table comprises all elements of the preset relational database;
and storing all elements in the entity table in a form manager according to the attributes of the elements.
6. The method of claim 1, wherein after generating the target dynamic form, the method further comprises:
if the form of the preset relational database is monitored to change, generating prompt information of the changed information in the form manager;
and determining whether to update the changed information into the dynamic form according to the prompt information.
7. An apparatus for generating a dynamic form, the apparatus comprising:
the form element acquisition module is used for acquiring form elements according to a preset relational database and storing the form elements into a form manager; wherein, the table element is used for representing attribute information of a column of data;
the system comprises a blank form creating module, a form manager display column and a form management module, wherein the blank form creating module is used for creating a blank form and displaying all form elements in the form manager display column;
and the dynamic form generation module is used for adding the target form element in the form manager to the blank form to generate a target dynamic form.
8. The apparatus of claim 7, wherein the dynamic form generation module comprises:
the first dynamic form generating unit is used for adding the target form element in the form manager to the blank form to generate a first dynamic form;
the preview interface generating unit is used for generating a preview interface of the first dynamic form;
and the target dynamic form determining unit is used for determining the first dynamic form as the target dynamic form if the preview interface meets the preset standard.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of generating a dynamic form of any one of claims 1-6.
10. A computer-readable storage medium having stored thereon computer instructions for causing a processor, when executed, to implement the method of generating a dynamic form of any of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210749396.4A CN115130444A (en) | 2022-06-28 | 2022-06-28 | Method, device, equipment and medium for generating dynamic form |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210749396.4A CN115130444A (en) | 2022-06-28 | 2022-06-28 | Method, device, equipment and medium for generating dynamic form |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115130444A true CN115130444A (en) | 2022-09-30 |
Family
ID=83380895
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210749396.4A Pending CN115130444A (en) | 2022-06-28 | 2022-06-28 | Method, device, equipment and medium for generating dynamic form |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115130444A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115544994A (en) * | 2022-12-01 | 2022-12-30 | 爱集微咨询(厦门)有限公司 | Data pushing method and device, electronic equipment and readable storage medium |
-
2022
- 2022-06-28 CN CN202210749396.4A patent/CN115130444A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115544994A (en) * | 2022-12-01 | 2022-12-30 | 爱集微咨询(厦门)有限公司 | Data pushing method and device, electronic equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11442930B2 (en) | Method, apparatus, device and storage medium for data aggregation | |
US11847599B1 (en) | Computing system for automated evaluation of process workflows | |
CN114925143A (en) | Method, device, equipment, medium and product for describing logical model blood relationship | |
CN115130444A (en) | Method, device, equipment and medium for generating dynamic form | |
CN114461658A (en) | Name determination method, apparatus, device, program product, and storage medium | |
CN114296737A (en) | Service code generation method, device, equipment and storage medium | |
CN114663015A (en) | Replenishment method and device | |
US12073266B2 (en) | Event-driven service for configurable metrics | |
CN117788115A (en) | Method, device, equipment and storage medium for determining article demand information | |
CN113360693A (en) | Method and device for determining image label, electronic equipment and storage medium | |
CN116414814A (en) | Data checking method, device, equipment, storage medium and program product | |
CN115860872A (en) | Target object determination method and device, electronic equipment and storage medium | |
CN112541335B (en) | Method, device, electronic equipment and storage medium for generating interpretation text | |
CN115576480A (en) | Freely combined matrix questionnaire scoring and configuration method and device | |
US20170161359A1 (en) | Pattern-driven data generator | |
CN118394835B (en) | Analysis method, device, equipment and storage medium for power grid data | |
CN118469582B (en) | Operation and maintenance method, device, equipment and storage medium for guest group management center system | |
US20230153644A1 (en) | Machine learning enabled supplier data association | |
US11093359B2 (en) | System and method for automated desktop analytics triggers | |
CN115357611A (en) | Data processing method and device, electronic equipment and storage medium | |
CN115408395A (en) | Data processing method and device, electronic equipment and storage medium | |
US20200327567A1 (en) | Platform for In-Memory Analysis of Network Data Applied to Market Segmentation with Demand Estimates and Competitor Information | |
CN117350811A (en) | Order processing method, order processing device, electronic equipment and storage medium | |
CN115964081A (en) | Code scale determination method, device, equipment and storage medium | |
CN116955811A (en) | Resource recommendation model, method, electronic equipment and storage medium |
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 |