publishStringToInfoBus method


Publishes a single string to the InfoBus as a data item of type ImmediateAccess.

Syntax

ScriptHelper.publishStringToInfoBus(itemName, itemValue)

Applies to

ScriptHelper object.

Parameters

itemName
String. The name by which the data item is announced, managed, and retrieved by InfoBus members.
itemValue
String. The String value that the data item holds.

Usage

The published data item has Java data type ImmediateAccess.

If you specify a new data item name, the item gets published as a new data item. All previously published items remain available.

If you specify a data item name that has already been published by this instance of ScriptHelper using the publishStringToInfoBus method, the new value replaces the old one in the data item, which remains on the InfoBus. (This results in a Java event notification of type DataItemChangeEvent to existing InfoBus listeners.) However, if you specify a data item name that has already been published using the publishVectorToInfoBus method, the ScriptHelper applet revokes the old data item and announces availability of the new item to all InfoBus listeners via a Java event.

Example
Charting file data example

See also
ScriptHelper applet
publishVectorToInfoBus method
createInfoBusVector method
InfoBusVector class