This section discusses how you can make scenes dynamic by setting object properties equal to variables, adding events that trigger actions to objects, and using the Drilldown wizard to pass a scene parameter and add a jump from a data point in one scene to another scene.
QMF Visionary offers other powerful tools for creating dynamic scenes. See the DB2 QMF Visionary Developer's Guide for more ways to make a scene dynamic.
To map an object property to a variable (such as a column or parameter), you set the value of a property to the variable name. You can use the Formula bar, the Variables bar, or, using the Object Inspector, type the variable name preceded by an equals sign directly into the appropriate cell.
The Variables bar displays a list of global and scene parameters and SQL columns.
To map an object property to a variable using the Variables bar:
The column name appears in the property value cell, preceded by an equals sign.
You might want users to be able to click a data point to jump to another scene containing more information about that data point. For example, users might be shown a pie chart of sales per region. When users click a region "slice," they jump to another scene, which shows a map and other details for that region. You can create drilldown events using the Drilldown wizard for layouts that support data templates.
The Drilldown wizard creates the following events and objects:
To create a drilldown event, click a data template in the Data Template Editor. and click Insert --> Drilldown. The Drilldown wizard appears; click Next.
You want to identify the destination of your click event. Select an existing scene name from the drop-down list, or enter the name of a scene in the text box. If you enter the name of a new scene, when you click Next, you will be asked to confirm that you want to create a new scene for the drilldown.
The following figure shows the Destination Scene page of the Drilldown wizard.
You want to select which values from fields in the original scene to map as scene parameters to the new scene. Select the values you want to pass through to your destination scene.
The following figure shows the Fields page of the Drilldown wizard.
If your destination scene has at least one scene parameter, you can coordinate the scene parameters being mapped to the destination scene with the destination scene's existing parameter.
The following shows the Set Parameter Values page of the Drilldown wizard.
You can change the parameter names for you destination scene. You may only use a parameter name that has not been used in this QMF Visionary world. This step is optional.
The following shows the Rename Parameter page of the Drilldown wizard.
Click Finish to complete the drilldown event.