Using Variable Binding From WebFOCUS Reports

How to:

Reference:

When you execute a WebFOCUS report, you can pass parameters from the report to the Maintain procedure. For example, an end user can click on a row in a WebFOCUS report, which then runs a Maintain procedure enabling the end user to edit the data for that row.

The variable binding feature in WebFOCUS Maintain enables developers to write code that passes the parameters from the WebFOCUS report to the Maintain procedure quickly and easily, without even needing to know the Maintain language.

Note: In WebFOCUS Developer Studio, passed name/value pairs are called parameters. In Maintain, replaceable named values are called variables.


Top of page

x
Procedure: How to Use the Variable Binding Feature

Before you can use variable binding in a Maintain procedure, you must create a WebFOCUS report that has a drill down to the Maintain procedure. For more information, see How to Execute Maintain Procedures From WebFOCUS Report Procedures.

After you create your report and specify the drill down parameters, do the following:

  1. In the Maintain Development Environment, open the Maintain procedure in the Procedure Editor.
  2. Place your cursor in the $$Declarations section.
  3. Right-click, and select Import WebFOCUS Parameters.
  4. In the Open dialog box, select the WebFOCUS procedure from which you want to import parameters and click OK.
  5. In the Import WebFOCUS Parameters into Maintain dialog box, assign new data types to the parameters you want to import using the Type Wizard and click OK. For more information, see Using the Type Wizard.

WebFOCUS Maintain places the following code at the beginning of your procedure:

Declare variable / A4 = IWC.GetAppCgiValue ( "variable" ) ;

Top of page

x
Reference: Variable Binding Limitations

Top of page

x
Reference: Importing WebFOCUS Parameters Into Maintain Dialog Box

When you import the parameters from a WebFOCUS report into a Maintain procedure, use the Import WebFOCUS Parameters Into Maintain dialog box, shown in the image below, to change the formats of the parameters.

Import WebFOCUS Parameters into Maintian dialog box

This dialog box includes the following options:

Name

Contains the names of the parameters from the WebFOCUS report that are calling this Maintain procedure.

Type

Contains the proposed format for the parameter.

Opens the Type Wizard, where you can specify a new data type for the parameter. For more information, see Using the Type Wizard.


WebFOCUS