CN111581933A - Method and device for managing forms in webpage - Google Patents

Method and device for managing forms in webpage Download PDF

Info

Publication number
CN111581933A
CN111581933A CN202010250726.6A CN202010250726A CN111581933A CN 111581933 A CN111581933 A CN 111581933A CN 202010250726 A CN202010250726 A CN 202010250726A CN 111581933 A CN111581933 A CN 111581933A
Authority
CN
China
Prior art keywords
field
data source
page
editing result
target content
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.)
Withdrawn
Application number
CN202010250726.6A
Other languages
Chinese (zh)
Inventor
曹丽影
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Mininglamp Software System Co ltd
Original Assignee
Beijing Mininglamp Software System Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Mininglamp Software System Co ltd filed Critical Beijing Mininglamp Software System Co ltd
Priority to CN202010250726.6A priority Critical patent/CN111581933A/en
Publication of CN111581933A publication Critical patent/CN111581933A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/174Form filling; Merging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines

Abstract

The embodiment of the application discloses a method and a device for managing tables in a webpage. The method comprises the following steps: after a request for adding a form in a webpage is received, a form generation template is obtained, wherein the form generation template comprises identification information of a data source and form fields; receiving an editing result of the form generation template; adding a form page in a webpage according to a form field in the editing result, acquiring target content corresponding to the form field from a data source in the editing result, and filling the target content into the form page; and outputting the table.

Description

Method and device for managing forms in webpage
Technical Field
The present disclosure relates to the field of information processing, and more particularly, to a method and apparatus for managing a table in a web page.
Background
A data display page is arranged in the management application system and is used for facilitating the user to manage data. Because the pages have simple structures and almost similar structures, the displayed data are different, the pages are generally only used for viewing and have fewer interactive operations, but the working cost of the pages is higher in the development link.
Disclosure of Invention
In order to solve any technical problem, embodiments of the present application provide a method and an apparatus for managing a form in a web page.
To achieve the purpose of the embodiment of the present application, an embodiment of the present application provides a method for managing a form in a web page, including:
after a request for adding a form in a webpage is received, a form generation template is obtained, wherein the form generation template comprises identification information of a data source and form fields;
receiving an editing result of the form generation template;
adding a form page in a webpage according to a form field in the editing result, acquiring target content corresponding to the form field from a data source in the editing result, and filling the target content into the form page;
and outputting the table.
An apparatus for managing forms in a web page, comprising:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a form generation template after receiving a request for adding a form in a webpage, and the form generation template comprises identification information and form fields of a data source;
a receiving module configured to receive an editing result of the form generation template;
the processing module is set to add a form page in a webpage according to a form field in the editing result, acquire target content corresponding to the form field from a data source in the editing result and fill the target content into the form page;
an output module configured to output the table.
A storage medium having a computer program stored therein, wherein the computer program is arranged to perform the method as described above when executed.
An electronic device comprising a memory having a computer program stored therein and a processor arranged to execute the computer program to perform the method as described above.
One of the above technical solutions has the following advantages or beneficial effects:
after a request for adding a form in a webpage is received, a form generation template is obtained, an editing result of the form generation template is received, a form page is added in the webpage according to a form field in the editing result, target content corresponding to the form field is obtained from a data source in the editing result and is filled in the form page, the form is output, the form generation template is used for completing the creation of the form page, the generation efficiency of the form page is improved, and the development cost is reduced.
Additional features and advantages of the embodiments of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the application. The objectives and other advantages of the embodiments of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the embodiments of the present application and are incorporated in and constitute a part of this specification, illustrate embodiments of the present application and together with the examples of the embodiments of the present application do not constitute a limitation of the embodiments of the present application.
FIG. 1 is a flowchart of a method for managing a form in a web page according to an embodiment of the present application;
fig. 2 is a block diagram of an apparatus for managing a table in a web page according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application more apparent, the embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be noted that, in the embodiments of the present application, features in the embodiments and the examples may be arbitrarily combined with each other without conflict.
Fig. 1 is a flowchart of a method for managing a table in a web page according to an embodiment of the present application. As shown in fig. 1, the method shown in fig. 1 includes:
step 101, after a request for adding a form in a webpage is received, obtaining a form generation template, wherein the form generation template comprises identification information of a data source and a form field;
in an exemplary embodiment, the number of tables requested to be added in the web page may be one or more; the form generation template is used to collect configuration information for the generated forms, thereby reducing the code written for each form.
102, receiving an editing result of the form generation template;
in an exemplary embodiment, if the number of requested forms is at least two, after receiving one writing result of the form generation template, the form generation template may be output again to acquire information of a second form until the acquisition of information of all forms is completed.
103, adding a form page in a webpage according to a form field in the editing result, acquiring target content corresponding to the form field from a data source in the editing result, and filling the target content into the form page;
in an exemplary embodiment, the table fields may be header information of the table, and values of columns of the table that need to be generated may be determined according to the number of the headers, and each column in the header is filled with contents of each table field in the edit result, so as to complete generation of the table. ,
and 104, outputting the table.
In one exemplary embodiment, pages may be set on one page, where each page is set to display one table.
According to the method provided by the embodiment of the application, after a request for adding the form in the webpage is received, the form generation template is obtained, the editing result of the form generation template is received, the form page is added in the webpage according to the form field in the editing result, the target content corresponding to the form field is obtained from the data source in the editing result and is filled in the form page, the form is output, the form generation template is utilized to complete the creation of the form page, the generation efficiency of the form page is improved, and the development cost is reduced.
In an exemplary embodiment, the receiving the edit result to the form generation template includes:
outputting data structure information of the table page;
and when the number of the added tables is at least two, recording the data structure of each table in an array mode after receiving the editing result of the data structure information.
The data structure may include a table name, an interface, and table column information, where the table column information may be the contents of each column in the table and corresponding field information in the data source.
Taking the table of the person information and the vehicle information as an example, the data structure is as follows:
Figure BDA0002435384610000041
Figure BDA0002435384610000051
the length of the array is the number of pages, the array is traversed to analyze and generate the pages, the name is the name of a generated menu, the table represents an interface called by the page, and the list is the name of a data column and a text data column displayed by the page.
The maintenance efficiency of the table configuration information can be improved by recording the editing result through the array information.
In an exemplary embodiment, the form fields include each display field in a header of a form page and a target field corresponding to the content corresponding to each display field in the data source;
the obtaining of the target content corresponding to the form field from the data source in the editing result and the filling of the target content into the form page include:
determining field combination of target content in the data source by using the target field in the editing result;
and acquiring the content corresponding to each field in the field combination from each record in the data source to obtain each target content.
Because the information stored in the data source is of various types, the content is extracted according to the field required to be acquired, and the data extraction efficiency can be effectively improved; and filling each extracted result into each column correspondingly, so that the filling of information is facilitated.
In an exemplary embodiment, the obtaining target content corresponding to the form field from a data source in the editing result and filling the target content into the form page includes:
acquiring the updating information of the content in the table field from the data source according to a preset data updating strategy;
adding the updated information to the form page.
The trigger condition for setting the data update operation may be performed by time, or whether to perform the update operation may be determined by detecting whether the data is updated.
The automatic filling of the updated data is completed by automatically acquiring the updated data, so that the cost of manually maintaining the form can be reduced, and the processing efficiency is improved.
Fig. 2 is a block diagram of an apparatus for managing a table in a web page according to an embodiment of the present application. As shown in fig. 2, the method includes:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a form generation template after receiving a request for adding a form in a webpage, and the form generation template comprises identification information and form fields of a data source;
a receiving module configured to receive an editing result of the form generation template;
the processing module is set to add a form page in a webpage according to a form field in the editing result, acquire target content corresponding to the form field from a data source in the editing result and fill the target content into the form page;
an output module configured to output the table.
In one exemplary embodiment, the receiving module includes:
an output unit configured to output data structure information of a form page;
and the recording unit is arranged to record the data structure of each table in an array mode after receiving the editing result of the data structure information when the number of the added tables is at least two.
In an exemplary embodiment, the form fields acquired by the acquisition module include each display field in a header of a form page and a target field corresponding to the content corresponding to each display field in the data source;
the processing module comprises:
a determining unit, configured to determine a field combination of the target content in the data source by using the target field in the editing result;
and the processing unit is set to acquire the content corresponding to each field in the field combination from each record in the data source to obtain each target content.
In one exemplary embodiment, the processing module includes:
the acquisition unit is arranged to acquire the updating information of the content in the table field from the data source according to a preset data updating strategy;
an update unit arranged to add the update information to the form page.
According to the device provided by the embodiment of the application, after a request for adding a form in a webpage is received, a form generation template is obtained, an editing result of the form generation template is received, a form page is added in the webpage according to a form field in the editing result, target content corresponding to the form field is obtained from a data source in the editing result and is filled in the form page, and the form is output, so that the form generation template is utilized to complete the creation of the form page, the generation efficiency of the form page is improved, and the development cost is reduced.
A storage medium having a computer program stored therein, wherein the computer program is arranged to perform the method of any of the above when executed.
An electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the method of any of the above.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.

Claims (10)

1. A method of managing forms in a web page, comprising:
after a request for adding a form in a webpage is received, a form generation template is obtained, wherein the form generation template comprises identification information of a data source and form fields;
receiving an editing result of the form generation template;
adding a form page in a webpage according to a form field in the editing result, acquiring target content corresponding to the form field from a data source in the editing result, and filling the target content into the form page;
and outputting the table.
2. The method of claim 1, wherein receiving the edit result to the form generation template comprises:
outputting data structure information of the table page;
and when the number of the added tables is at least two, recording the data structure of each table in an array mode after receiving the editing result of the data structure information.
3. The method of claim 1, wherein:
the table fields comprise each display field in a table header in a table page and a target field corresponding to the content corresponding to each display field in the data source;
the obtaining of the target content corresponding to the form field from the data source in the editing result includes:
determining field combination of target content in the data source by using the target field in the editing result;
and acquiring the content corresponding to each field in the field combination from each record in the data source to obtain each target content.
4. The method according to claim 1 or 3, wherein the obtaining of the target content corresponding to the form field from the data source in the editing result and the filling into the form page comprises:
acquiring the updating information of the content in the table field from the data source according to a preset data updating strategy;
adding the updated information to the form page.
5. An apparatus for managing forms in a web page, comprising:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a form generation template after receiving a request for adding a form in a webpage, and the form generation template comprises identification information and form fields of a data source;
a receiving module configured to receive an editing result of the form generation template;
the processing module is set to add a form page in a webpage according to a form field in the editing result, acquire target content corresponding to the form field from a data source in the editing result and fill the target content into the form page;
an output module configured to output the table.
6. The apparatus of claim 5, wherein the receiving module comprises:
an output unit configured to output data structure information of a form page;
and the recording unit is arranged to record the data structure of each table in an array mode after receiving the editing result of the data structure information when the number of the added tables is at least two.
7. The apparatus of claim 5, wherein:
the table fields acquired by the acquisition module comprise each display field in a table header in a table page and a target field corresponding to the content corresponding to each display field in the data source;
the processing module comprises:
a determining unit, configured to determine a field combination of the target content in the data source by using the target field in the editing result;
and the processing unit is set to acquire the content corresponding to each field in the field combination from each record in the data source to obtain each target content.
8. The apparatus of claim 5 or 7, wherein the processing module comprises:
the acquisition unit is arranged to acquire the updating information of the content in the table field from the data source according to a preset data updating strategy;
an update unit arranged to add the update information to the form page.
9. A storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 4 when executed.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 4.
CN202010250726.6A 2020-04-01 2020-04-01 Method and device for managing forms in webpage Withdrawn CN111581933A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010250726.6A CN111581933A (en) 2020-04-01 2020-04-01 Method and device for managing forms in webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010250726.6A CN111581933A (en) 2020-04-01 2020-04-01 Method and device for managing forms in webpage

Publications (1)

Publication Number Publication Date
CN111581933A true CN111581933A (en) 2020-08-25

Family

ID=72124265

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010250726.6A Withdrawn CN111581933A (en) 2020-04-01 2020-04-01 Method and device for managing forms in webpage

Country Status (1)

Country Link
CN (1) CN111581933A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112580315A (en) * 2020-12-14 2021-03-30 深圳市金证前海金融科技有限公司 Webpage table display method and device, terminal equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040237040A1 (en) * 2003-05-19 2004-11-25 Malkin Wayne Allan System and method of processing an electronic form using layered aspects
CN103020031A (en) * 2012-12-19 2013-04-03 珠海金山办公软件有限公司 Method and device for updating data pivot table intelligently
CN104156340A (en) * 2014-07-11 2014-11-19 公安部交通管理科学研究所 Data report encapsulation and representation method
CN105868170A (en) * 2015-01-21 2016-08-17 上海可鲁系统软件有限公司 Method for generating industrial data report in server
CN107766309A (en) * 2017-08-29 2018-03-06 腾讯科技(深圳)有限公司 Data form generation method, device and storage medium, electronic installation
CN109657214A (en) * 2018-09-27 2019-04-19 深圳壹账通智能科技有限公司 Report form generation method, device, terminal and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040237040A1 (en) * 2003-05-19 2004-11-25 Malkin Wayne Allan System and method of processing an electronic form using layered aspects
CN103020031A (en) * 2012-12-19 2013-04-03 珠海金山办公软件有限公司 Method and device for updating data pivot table intelligently
CN104156340A (en) * 2014-07-11 2014-11-19 公安部交通管理科学研究所 Data report encapsulation and representation method
CN105868170A (en) * 2015-01-21 2016-08-17 上海可鲁系统软件有限公司 Method for generating industrial data report in server
CN107766309A (en) * 2017-08-29 2018-03-06 腾讯科技(深圳)有限公司 Data form generation method, device and storage medium, electronic installation
CN109657214A (en) * 2018-09-27 2019-04-19 深圳壹账通智能科技有限公司 Report form generation method, device, terminal and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112580315A (en) * 2020-12-14 2021-03-30 深圳市金证前海金融科技有限公司 Webpage table display method and device, terminal equipment and medium

Similar Documents

Publication Publication Date Title
CN107992492B (en) Data block storage method, data block reading method, data block storage device, data block reading device and block chain
CN112769802B (en) Access verification method and device based on server, electronic equipment and storage medium
WO2019085466A1 (en) Association test method and system, application server, and computer readable storage medium
CN109741022B (en) Method, device, storage medium and equipment for sharing electronic government front-end information
CN114547076A (en) Data processing method and data processing system
CN110716804A (en) Method and device for automatically deleting useless resources, storage medium and electronic equipment
CN113518187B (en) Video editing method and device
CN111581933A (en) Method and device for managing forms in webpage
CN113190325A (en) Container creation method and device
CN111427997A (en) Method and device for displaying blood relationship, computer storage medium and terminal
CN108415814B (en) Method for automatically recording field change, application server and computer readable storage medium
CN113778820A (en) Application program data export method, device, electronic device and storage medium
CN108776593B (en) Method and equipment for template configuration in BIOS configuration
CN111262727A (en) Service capacity expansion method, device, equipment and storage medium
CN112379891B (en) Data processing method and device
CN109446100B (en) Method and device for managing script file of equipment
CN111966670B (en) Remote sensing data distribution method and device based on mosaic data set and management platform
CN112363778B (en) Dynamic picture loading method and device, electronic equipment and storage medium
CN111259043A (en) Method, device, computer storage medium and terminal for realizing information processing
CN110909107B (en) Method, equipment and storage medium for presenting map based on Zeppelin
CN112988737B (en) Data storage method and device, data acquisition method and device and electronic equipment
CN108460575B (en) Written document generation method and device, terminal equipment and storage medium
CN115391299A (en) Method, system, device and storage medium for identifying different files during file copying
CN111352917A (en) Information input method and device, electronic equipment and storage medium
CN117271452A (en) Excel file export method, device, equipment and 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
WW01 Invention patent application withdrawn after publication

Application publication date: 20200825

WW01 Invention patent application withdrawn after publication