This section illustrates how you can write scripts that dynamically change the data source of objects "on the fly" at run-time. As we discussed in the Working with iFIX Objects chapter, animating objects begins by making a connection to a data source. The first example shows you how to create a direct connection while in the run-time environment. It includes the following topics:
- Creating a Direct Connection to an Object
- Changing a Text Object's Caption
- Changing a Variable Object's Current Value
- Changing the Data Source of a Data Link
- Change a FIX Event's Data Source
- Replacing String Properties
NOTE: When you change a data source at run time, the change does not remain intact when you switch back to the configuration environment. The behavior of the picture depends on the status of the picture cache. In addition, if you add or delete scripts in run mode, the picture will not be loaded into cache when it is closed. Refer to the Using Picture Caching section of the Creating Pictures manual.
See Also
How Do I...
connect an AI tag to the Horizontal Fill Percentage of a rectangle when you click it
set an object and change the source of the animation object that is connected to it
change a text object's caption
change a Variable object's caption
change the data source of a Data link using the Format object
change the data source of a FIX event in the run-time environment
search for AO data sources in a picture and replace with them AI data sources