Altova MobileTogether Designer

The OnBroadcastReceive page event is available for all pages (top pages and sub pages). It is triggered when the solution receives a message because of a Subscribe to Broadcast Topic action that has been defined on the page. It can make use of the $MT_Broadcast variable, which contains the text of the received broadcast message.

 

Actions to perform when a broadcast message is received

You can define what actions to execute when a broadcast message is received. Do this by dragging and dropping actions into the event's main pane (screenshot below).

 

In the screenshot below, for example, our action tree displays a message box when the broadcast message is received. The title of the message box has been set to Greeting, and the text contained in the message box is the text of the received broadcast message (which has automatically been stored in the $MT_Broadcast variable.

PageEventOnBroadcastReceive

Note the following points:

 

The actions defined on this event will be triggered each time a broadcast message is received for any and all broadcast subscriptions defined on the page.

The text of the received broadcast message is stored in the $MT_Broadcast variable and can be used in the action tree of the page event.

The content of $MT_Broadcast will not be available after the action tree has finished executing.

If you want to use the text of the received broadcast message after the action tree has finished executing, make sure that one of the actions passes the value of $MT_Broadcast to a page source node.  

If no actions have been set on this page event, then the OnBroadcastReceive actions at the project level will be executed—if defined. If no actions are defined at the project level either, then no action will be performed when a broadcast message is received.

 

© 2018-2024 Altova GmbH