fgl_report_setEnvironment

Specifies variable values in the private environment of the report.

Syntax

fgl_report_setEnvironment(
   values om.SaxAttributes )
  1. values - Attribute set containing the values.

Usage

Can be used to specify the value of environment variables like GREOUTPUTDIR or user-defined variables, for the purpose of using the values in calls to the RTL function Runtime.getEnvironmentVariable().

Example

This sample code sets a user-defined environment variable:

DEFINE envSet om.SaxAttributes
LET envSet=om.SaxAttributes.create()
CALL envSet.addAttribute("MYVARIABLE","1234")

CALL fgl_report_setEnvironment(envSet)

For an example of Genero code using a reporting function, see Using report output functions. This example may not use the specific function discussed in this topic, however it provides details on where you would place this (and other) report output functions.