Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Simple Report Menu

Description

Provides a means of displaying a menu with reports that the user can quickly generate.

Note that for BIRT reports the report menu uses existing report configuration items to populate the menu, it does not point directly to the BIRt BIRT report definition files.

ID

...

Code Block
xml
xml
linenumberstrue

	<item action="com.cohga.client.action.simplereportmenu">
		<label>Quick Reports</label>
		<tooltip>
			<title>Quick Report</title>
			<text>Generate a preset report</text>
		</tooltip>

		<!-- Set a default format, the user can't choose one if you do this -->
		<format>pdf</format>

		<reports>
			<report>
				<label>A4 Portrait Map Report</label><report>map_portrait_a4</report>
				<report>birt.map_portrait_a4</report>

			</report>!-- Overwrite the report label -->
			<report>
				<label>A4 Landscape Map Report</label>
				<report>birt.map<report>map_landscape_a4a4</report>
			</report>

			<!-- Only enable the entry for a particular entity -->
			<report>
				<entity>property</entity>
				<label>Property Detail</label>
				<report>birt.property<report>property_details</report>
			</report>

			<!-- set the report parameter rather than the user having to enter it -->
			<report>
				<entity>property</entity>
				<label>Property Detail - 1:5000</label>
				<report>birt.property<report>property_details</report>
				<!-- assumes the report has a parameter called 'scale' that the user usually inputs -->
				<parameters>
					<scale>5000</scale>
				</parameters>
			</report>
		</reports>
	</item>

...