Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for automatically filling table based on freemarker

An automatic filling and table technology, applied in the direction of response error generation, natural language data processing, and redundant data error detection in calculations, can solve the problems of fault tolerance and low efficiency, so as to improve efficiency and reduce errors rate, improve office efficiency

Pending Publication Date: 2022-03-01
SHENZHEN QIANHAI HUANRONG LIANYI INFORMATION TECH SERVICES CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the expansion of table data requires inserting the syntax specified by freemarker into the template file in ftl format, and the insertion of this syntax is currently manually modified, and the fault tolerance rate and efficiency are low.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for automatically filling table based on freemarker
  • Method for automatically filling table based on freemarker
  • Method for automatically filling table based on freemarker

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0031] see Figure 1-Figure 3 , the present invention provides a technical solution: the method for automatically filling a form based on freemarker comprises the following steps:

[0032] Step 1. Using the freemarker framework to define table-type variables is special, and you need to insert special syntax into the specified position in the label, and the normal freemarker framework generates the final document;

[0033] Step 2. First define a mappi...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for automatically filling a table based on freemarker, and relates to the technical field of contract generation. The method for automatically filling the table based on the freemarker comprises the following steps that firstly, variables of a table type are defined to be special through a freemarker frame, special grammar needs to be inserted into a designated position in a label, and a final document is generated through the normal freemarker frame; 2, firstly defining a mapping relation between Chinese description and table variables, such as {table variables-asset numbers} and {asset.assetNo! '}, and inserting the Chinese description by business personnel in an initial word document stage; 3, converting the word document into an xml (Extensible Markup Language) file; step 4, traversing the labels inside, and judging whether the results exist or not; w: tblgt; the label exists. According to the freemarker-based automatic table filling method, after a word document is converted into an XML file, table variables are processed, so that the learning cost is reduced, the error rate is reduced, and the quality of a finally generated contract is improved.

Description

technical field [0001] The invention relates to the technical field of contract generation, in particular to a method for automatically filling a form based on freemarker. Background technique [0002] FreeMarker is a template engine: a general tool for generating output text (HTML web pages, emails, configuration files, source code, etc.) based on templates and data to be changed. It is not for end users, but a Java class library, a component that programmers can embed in the products they develop, and the template is written as FreeMarkerTemplateLanguage (FTL). It's a simple, dedicated language, not a full-fledged programming language like PHP. That means preparing the data to be displayed in the real programming language, such as database query and business operation, and then the template displays the prepared data. In the template, you can focus on how to present the data, while outside the template you can focus on what data to display. [0003] The Freemarker frame...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F40/12G06F40/174G06F40/186G06F40/154G06F11/14
CPCG06F40/12G06F40/174G06F40/186G06F40/154G06F11/1448
Inventor 郑谷城
Owner SHENZHEN QIANHAI HUANRONG LIANYI INFORMATION TECH SERVICES CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products