Besides the built-in messages, a data component (table, chart, crosstab or geographic map) in a library component can also receive user defined messages and then respond web actions, such as Filter, Sort, Property and Parameter.
The Filter web action enables you to filter the records of the data component when it receives the message.
The Sort web action enables you to sort the records of the data component when it receives the message.
The Property web action enables you to change properties of the data component itself when it receives the message.
The Parameter web action enables you to run a library component, especially a library component with parameters using predefined parameter values, or re-run the library component with predefined parameter values when the message is received.
This document shows how to make a data component receive a user defined message and respond different action in detail.
To receive a user defined message and respond the Filter web action:
that appears in the text box. To receive a user defined message and respond the Sort web action:
To receive a user defined message and respond the Property web action:
In the two drop-down lists, you may find some items have the icon
ahead of them and they are listed under the Message Key node. If you choose an item of this type, it means the item will not be used directly in the property changing condition, instead, it will be mapped to a key in the message and JReport will search for the value that is specified to the key from the message first and then use that value to compose the property changing condition.
to add a new line to change another property.
To delete a property line, select it and click
. To adjust the order of the properties, click
or
.
To receive a user defined message and respond the Parameter web action:
to add a parameter line and specify the parameter and value if needed.
In the Parameter Name and Value drop-down list, you may find some items have the icon
ahead of them and they are listed under the Message Key node. If you choose an item of this type, it means the item will not be used directly in the parameter condition, instead, it will be mapped to a key in the message and JReport will search for the value that is specified to the key from the message first and then use that value to compose the parameter condition.
. To adjust the order of the parameters, click
or
.See also Filter dialog, Sort dialog, Parameter dialog, Change Property dialog for additional information about options in the dialog.