DB2 graphic  QMF Version 8

Using layers in a layout

Layers enable you to show data from several queries in one layout; each layer corresponds to more than one data template in the layout. The figure below illustrates the concept of layers.

Figure 14. Three layers in a layout
Note: The term layer does not appear in QMF Visionary Studio, except in the documentation. The term is used to clarify what it means to have more than one data template in a layout and how to create this effect.

When you create a layout, the wizard prompts you to select a query and then helps you map the query to the layout. That initial query supplies the data for the initial data template.

You can add layers to the following layouts:

To create a layer on a layout, you add another data template--based on a different query--to the layout. There are several ways to create another data template. You can:

To duplicate a data template and change the query:

  1. Right-click the data template in the World Manager and click Copy.
  2. Right-click the layout in the World Manager and click Paste.
  3. Right-click the new data template in the World Manager and click Change Query.
  4. Select a different query and click OK.

To duplicate a data template and use the same query with a query parameter:

  1. Right-click the data template in the World Manager and click Copy.
  2. Right-click the data template in the World Manager and click Paste.
  3. Select the DataTemplate1.QueryParameters object from the Object Inspector list and set the query parameter to a value.
  4. Select the DataTemplate2.QueryParameters object from the Object Inspector list and set the query parameter to a different value.

To add a layer with a different data template:

  1. In the World Manager, right-click layout and click Insert Data Template.
  2. Select the query and click OK.
  3. In the Data Template Editor, insert an alignment panel, if necessary, a data symbol, and any other objects you need.
  4. Specify the location of the alignment panel, if you are using one. See Using an alignment panel for more information.

The second layer is added to the layout. You can modify the objects in each data template to distinguish them. For example, in a chart that uses connectors in the data template, you might make the Connector object for each layer a different color.


Go to the previous page Go to the next page

Downloads | Library | Support | Support Policy | Terms of use | Feedback
Copyright IBM Corporation 1982,2004 Copyright IBM Corporation 1982, 2004
timestamp Last updated: March, 2004