Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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 report definition files.

ID

com.cohga.client.action.simplereportmenu

Sub-tags

Name

type

cardinality

description

label

String

0..1

Label to display in button

format

String

0..1

The format to generate the report in (can also be set per-report)

reports

report list

1..1

The list of reports to include in the menu

Example

	<item action="com.cohga.client.action.simplereportmenu">
		<label>Quick Reports</label>
		<tooltip>
			<title>Quick Report</title>
			<text>Generate a preset report</text>
		</tooltip>
		<format>pdf</format>
		<reports>
			<report>
				<label>A4 Portrait Map Report</label>
				<report>birt.map_portrait_a4/report>
			</report>
			<report>
				<label>A4 Landscape Map Report</label>
				<report>birt.map_landscape_a4/report>
			</report>

			<!-- Only enable the entry for a particular entity -->
			<report>
				<entity>property</entity>
				<label>Property Detail</label>
				<report>birt.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_details</report>
				<!-- assumes the report has a parameter called 'scale' that the user usually inputs -->
				<parameters>
					<scale>5000</scale>
				</parameters>
			</report>
		</reports>
	</item>
  • No labels