Passing Parameters Between Displays

Parameters can be passed between displays with the use of symbols and the Hyperlink object's embedded properties. The Hyperlink must be set up to link to a display, and when the target display's symbols are enabled (and are of the type Parameter or Property), these symbols will appear in the Hyperlink's configuration dialog box, as the shown in the following:

In this dialog box, there are two enabled symbols in the target display: Customer and City. When the current display is run and the hyperlink is clicked, the target display opens and values for these symbols are passed. Unless values are derived from some other source, the Default Value as specified on the dialog box is passed as the value. You can pass values to the hyperlink from other sources, such as other objects that are linked to the hyperlink (e.g., a list box or text box), or by linking a variable to the hyperlink parameters. The following examples describe a few possible configurations.

Example 1

A target display (DisplayWeather) launches a web site that shows the weather forecast for the city that was selected on the source display (DisplaySource).

  1. Create a new display called DisplayWeather.

  2. Insert a Web Control and configure it with the WebSource URL. The web site is considered a WebSource because it has query parameters.

  3. Open the Edit Display Symbols dialog box, and select the Enabled check box for the "city" property. Change the symbol name to "City".

  4. Save the display.

  5. Create another new display called DisplaySource.

  6. Insert a Hyperlink.

  7. On the Hyperlink's configuration dialog box, link to the display DisplayWeather. You will see the Symbol Name "City" in the Source section of the dialog box.

  8. Ensure the Pass To Display option is set to true for the City symbol.

  9. Optionally, you can also specify a default value for the City symbol.

  10. Insert a List Box.

  11. On the List Box configuration dialog box, manually enter a list of cities. Optionally, you can configure an SQL statement that retrieves a list of cities from a database.

  12. Link the List Box 'selected item' to the Hyperlink Display Symbol 'City'. To do this, right-click the List Box and choose Link Property to.

  13. Save the display and run it.

  14. From the List Box, select a city. Click the Hyperlink.

DisplayWeather opens and the web site shows the weather report for the selected city.

Example 2

A target display (DisplayProductDetail) shows product detail in a grid based on the product that was chosen in a grid in the source display (DisplayProduct). You may want to, for example, have a grid that shows the product name and a few other columns in the source display, and when the specific product is selected you can open another display that provides more detail (additional columns) for the selected product. The grids can be configured with the same SQL statement that has the product name set as a parameter. There are statements available in the sample system that can be used for this purpose.

  1. Create a new display named DisplayProductDetail.

  2. Insert a Grid and configure it with an SQL data source that has the product name set as a parameter.

  3. From the Edit menu, choose Display Symbols.

  4. On the Edit Display Symbols dialog box, click the Parameters tab and enable the product name parameter. Select the Symbol name and change it to Product.

  5. Save the display.

  6. Create another new display. Name it DisplayProduct.

  7. Insert a Hyperlink.

  8. On the Hyperlink's configuration dialog box, link to the display DisplayProductDetail. You will see the Symbol Name "Product" in the Source section of the dialog box.

  9. Ensure the Pass To Display option is set to true for the Product symbol.

  10. Optionally, you can also specify a default value for the Product symbol.

  11. Insert a Grid and configure it with the same SQL data source as used in the DisplayProductDetail display. You will also want to configure the columns so that only the ones you want to show are displayed on the grid.

  12. Right-click the grid and choose Link Property to.

  13. In the Parameter Connections dialog box, select the product name column as the source property, click the Add button, and then select the Product symbol as the parameter to connect to.

  14. Save the display and run it.

  15. Select a Product row in the Grid and click the Hyperlink.

DisplayProductDetail opens and shows information in the grid specific to the selected product.

Example 3

A target display (TimeTarget) is set with the start and end date/times of a source display (TimeSource).

  1. Create a new display named TimeTarget.

  2. Insert a time-sensitive object in this display, such as a Time chart. Make sure that the data source is set to use Component time.

  3. From the Edit menu, choose Display Symbols.

  4. On the Edit Display Symbols dialog box, choose the Parameters tab and enable StartDateTime and EndDateTime parameters. Select the Symbol names and change them to Start and End respectively.

  5. Save the display.

  6. Create another new display. Name it TimeSource.

  7. Insert a Hyperlink.

  8. On the Hyperlink's configuration dialog box, link to the display TimeTarget. You will see the Symbol Names "Start" and "End" in the Source section of the dialog box.

  9. Ensure the Pass To Display option is set to true for both symbols.

  10. Click OK to return to the display.

  11. Right-click the Hyperlink and choose Link Variable to.

  12. On the Variable Connections dialog box, select the 'Start' Display Symbol under the Hyperlink and click the Next button.

  13. Select the Display Start Time variable (under the display node) and click the Finish button.

  14. Repeat steps 11 - 13 to associate the 'End' symbol with the Display End Time.

  15. Save the display. You may want to change the current time of the TimeSource display before testing the link. To do this, run the display, right-click and choose Toggle Toolbar. On the run-time toolbar, change the date/time.

  16. Run the TimeSource display and click the Hyperlink.

The TimeTarget display opens and the time chart retrieves data for the time frame specified in the TimeSource display.

See Also

Hyperlinks

Symbols

Web Control

Combo Box and List Box

Grid

Parameter Connections

SQL Statement Parameters and Object Properties

Time Criteria

Time Parameters

Variable Connections