How to Get Cell Value in Web Report by javascript Function - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

How to Get Cell Value in Web Report by javascript Function

wayne_zjwwayne_zjw Posts: 19Member
After Releasing the report, sometimes you need to get the cell value by the mouse click event of the cell, how to implement the requirement? RAQ Report implements this function by Defining this function in jsp.

Firstly, we need to know how the report is displayed on the web page. showReport.jsp under the installation directory of RAQ Report: webappsquiee
eportJsp is a typical jsp example of report display:
[img=http://www.raqsoft.com/know-how/wp-content/uploads/2009/12/image0021.jpg]
From the figure above, it can be seen that the whole report tag < report:html> is included in a < table> tag, when report is expanded, it is actually expanded in this table.

If you want to get the cell value by mouse click event, you have to locate the cell, And how to locate a cell? Use the name attribute in < report:html> tag, then add the cell name to locate the cell: for example: report1_A1 represents cell A1 in report1.

Next, add a JavaScript function in the page, which is used to get the cell value.

< script language=
Sign In or Register to comment.