Setting up page parameters

You use page parameters on a target page to manage data sent from a linking page. If no data is sent and the target page is 4GL-enabled, the target page can use default values for its parameters. You set default values for parameters on the Parameters page of the Page Properties dialog box. Default values for page parameters are valid only on 4GL-enabled pages.

NoteIf a default value is not set If no data is sent from a linking page for a given parameter and a default value is not set on the 4GL target page, the only value available to the target page is an empty string ("").

On 4GL JSP pages, parameter values also become page variables that you can access in server scripts.

Identifying parameters on a target page

To pass data from one page to another, you set up parameters on the target page to receive the data from a linking page. You can set up parameters on the linking page following the same procedure.

StepsTo set page parameters for a target page:

  1. Right-click a Web page in the HTML editor, then select Page Properties from the pop-up menu.

  2. In the Page Properties dialog box, click the Parameters tab.

  3. On the Parameters page, click the New button.

  4. Under the Parameter Name column, type the name of the parameter.

    (Optional) If your page is 4GL-enabled, type the default value for the parameter under the Default Value column.

    The default value is the value set for a parameter when a linking page does not pass a value for the parameter.

    Shown is the Parameters tab page of the Page Properties dialog box. It has columns for Parameter Name and Default Value that display the sample entries param 1 with value city, param 2 with value state, and page Var 1, with no value specified.
  5. Repeat steps 3 and 4 for each parameter you want to add.

  6. Click Apply.