
Defining to send a message
You can specify whether to send out a message, including a built-in message 0001 - Filter or 0002 - Sort, or a user defined message when a specific event occurs on a table/crosstab field, a Google map, or on some chart elements in a library component.
To define to send out a message:
-
Do one of the following to display the Send Message - Web Action Builder dialog. See the dialog.
- Right-click a field in the table/crosstab of a library component, select Display Type from the shortcut menu to display the Display Type dialog, select a trigger event from the drop-down list in the Events column and click
in the Actions column of the Web Behaviors box to display the Web Action List dialog, then select *SendMessage and click OK.
- In the Behaviors tab of some chart formatting dialogs, select a trigger event from the drop-down list in the Events column and click
in the Actions column, then select *SendMessage and click OK in the displayed Web Action List dialog.
- Right-click a Google map and select Google Map Wizard from the shortcut menu, in the Marker screen of the Google Map Wizard, select a trigger event from the drop-down list in the Events column and click
in the Actions column. Then select *SendMessage in the Web Action List dialog and click OK.
- Select a message from the Message drop-down list.
- 0001 - Filter
Specifies the message to be 0001 - Filter, which is a built-in message only allowing you to change its values in the Value column.
- 0002 - Sort
Specifies the message to be 0002 - Sort, which is a built-in message only allowing you to change its values in the Value column.
- User Defined
Specifies a message as required, including the message ID, name, keys, data types and values.
- For the user defined message, specify the ID and Name in the ID text box and Name text box. The ID should be a natural number beyond 1000.
- Click
to add a message key-value line for the user defined message.
- In the Key column, specify a key from the drop-down list or select Input from the drop-down list and then input a key into the text box.
- In the Value column, specify the value of the key from the drop-down list or select Input from the drop-down list and then input a key into the text box.
- The data type column lists the data type of the value you select from the Value drop-down list or you can specify the data type from the drop-down list for the value you input by hand in the Value column.
- If necessary, click
to add a new message key-value line and specify the key, data type and value for the user defined message.
To delete a message key-value line, click
. To adjust the order of the message key-value lines, click
or
.
- Upon finishing, click the OK button to close this dialog.
In addition to the above method, another more convenient way to send a message is by using the Send Message command. To do this, right-click a field in the table/crosstab of a library component and select Send Message > Filter/Sort/Customize from the shortcut menu.
- If Filter is selected, a built-in filter message, whose trigger event is Click by default, will be sent out.
- If Sort is selected, a built-in sort message, whose trigger event is Click by default, will be sent out.
- If Customize is selected, you can define the message by yourself in the Send Message dialog. See the dialog.
To define a message:
- In the Events box, select a trigger event by clicking on the event and checking the checkbox beside it.
- Refer to above steps 2-9 to define to send the message.
