Predefined EGL report handler functions

The Report Handler provides the following predefined function names, corresponding to events during report fill. Add your code to these functions to create additional detail for your reports:
Function Where the function operates
beforeReportInit(); Before report initialization
afterReportInit(); After report initialization
beforePageInit(); Entering a page
afterPageInit(); Leaving a page
beforeColumnInit(); Before column initialization
afterColumnInit(); After column initialization
beforeGroupInit (groupName String); Before group initialization, where groupName refers to a <group> tag in the design document
afterGroupInit(groupName String); After group initialization
beforeDetailEval(); Before each row is printed
afterDetailEval(); After each row is printed
Within one of these functions, you can make calls to other functions. For example, you can make a call to setReportVariable(), as follows:
function afterGroupInit(groupName String)
	if (groupName == “cat”)
		setReportVariableValue (“NewGroupName”, “dog”);
	else
		setReportVariableValue (“NewGroupName”, groupName);
	end
end

You can also create your own functions. See JasperReports documentation for information about creating custom functions.

For examples using predefined report handler functions, see Creating an EGL report handler.

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.