Java report Finereport two times the use of JS to explain

Source: Internet
Author: User

I. Overview

With the development of Finereport, the designers and servers it provides should be able to satisfy most of your needs, fully 0 encoded software developed, revolutionizing the speed of software development, and improving software stability. But the demand is finereport, and the function that it contains is generally typical in the industry of the watch, and perhaps some of its sexual functions have passed through the Finereport software. For this reason, Finereport supports developers using Web-based, API-based interfaces to develop and control finereport in depth to meet their sexual needs. Of course, if you find that one of your requirements has to be programmed, it is suggested that you first give our consultants a consultation call, maybe he can provide you with a simple way to meet your needs without a process, and it will be about your time.

Here, we mainly introduce the use of JS, in order to need to finereport report in-depth development of the application of the developers to provide reference.

Second, the use of JS to explain

JavaScript is a kind of foot-language that can be used to make complex software that interacts with the Internet, interacting with the user. It is a language based on the Based (Object) and the event Driver. JavaScript is dynamic, and it can directly affect user or client input, not through Web services. It responds to the user's response by means of event drivers. The "event" is called "event", which is the action of doing something in the main page (the home page). For example, you can think of a mouse, a sliding window, a menu, and so on. When events occur, they may cause responses to events.

JavaScript is dependent on the browser itself, and the operating environment is not relevant, as long as the browser can run the computer, and support JavaScript browser can be done. That is, the JavaScript source code is not required to be translated before it is delivered to the client, but instead it is sent to the client editor by the browser to directly explain the text format.

(a) Description of the problem

Finereport report using the jquery v1.5.2 framework, jquery is a fast, easy-to-use JavaScript library that makes it easier for users to handle HTML documents, events, animations, and to provide Ajax interactivity to the Web site. And it is compatible with various browsers (IE 6.0+, FF 1.5+, Safari 2.0+, Opera 9.0+). The Finereport report is finally parsed into an HTML page, so you can use the JS statement to do the various things, you can use the jquery framework of all the methods of the report to operate, on this basis, Finereport also sealed a lot of internal JS method. Next, we'll do an introduction to the basic use of JS.

(b) How to use JS

1. Use JS in the report template

When designing a template, you can add JS events to the controls, tools linked fields buttons, and the entire report, and each event responds to a function. When the watch turns into an HTM page, these fuction are added to the head of the HTML. The function is executed when the event is hit at the click of a button, or when the line is printed out.

Introducing a JS file that is now

A single template introduces an external JS file: Page preview, fill out a preview, or set the icon next to the analysis, then click on the reference JavaScript;

All templates in the report project introduce external JS files: server > Server configuration > Reference JavaScript.

The relative path reference JS: Relative to the report project records such as Webreport, such as Webreport\js under the quoted JS file Test.js, the opposite path is js/test.js; absolute path reference JS: such as D:\tomcat\webapps\ Webreport\web-inf\scripts\script.js.

Java report Finereport two times the use of JS to explain

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.