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!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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:
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.