INFORMIX Visionary Tutorial

List of Tasks

Tutorial Task #11

Inserting a Global Parameter

You can access a global parameter from anywhere in a Visionary world. In this task, you define a global parameter for the title of the OrdersByDate scene. You define a second global parameter for the value of the Dmanu_code data source parameter that you defined in task #9.

In the Scenes Panel of the World Manager, right-click World1 and select Insert Global Parameter.

In the Insert Parameter dialog box, enter Gmanu_name in the Name text box. Select Text in the Data type list box. Enter Husky Wear in the Has Default Value text box. Leave Public at runtime checked. Click OK.

Right-click OrdersByDate and select Open Scene.

From the main menu bar, choose Insert Primitive Text. The text displays in the center of the scene.

Drag the Text object from the center and position it above the chart.

Right-click the Text object and select Properties.

In the Object Inspector, select Text1. Enter Gmanu_name in the Text property cell.

In the Object Inspector, select Text1.Font1. Select or enter True in the Italic property cell. Select or enter Blue in the Color property cell.

Click Runtime Mode to test.

Your graphic should appear similar to the following one. The blue bars represent orders and the red bars represent backlog.

The next steps in this task require you to set the parameter Dmanu_code so that it always has the same value as Gmanu_code.

Make sure you are in Design mode.

Right-clilck World1 and select Insert Global Parameter.

In the Insert Parameter dialog box, for Name enter Gmanu_code. For Data type select Text. For Has default value: enter ANZ. Leave Public at runtime checked. Click OK.

In the Scenes Panel of the World Manager, right-click OrdersByDate and select Open scene.

Position your mouse anywhere in the background (not on an object) of the scene and right-click to select Properties.

From the the Object Inspector list box, select Timeline Chart1.DataElement1.OrdersByDate1.

Enter Gmanu_code as the value for Dmanu_code.

If you test in this task, you will not see any changes. The next task shows you how to use the global parameter you created with an event action.


Copyright © 1998, Informix Software, Inc. All rights reserved.