fgl_report_findResourcePath

Returns the path to a resource searching first FGLRESOURCEPATH, then FGLDBPATH and finally DBPATH. (deprecated!)

Syntax

fgl_report_findResourcePath(
  reportName STRING )
  1. reportName - Specify the name of the report.

Usage

The function returns the absolute path to the resource specified in the argument. In case that a file cannot be found the function returns the argument passed.
Important: The function is deprecated since it does not work in distributed mode. The function fgl_report_loadCurrentSettings now searches the path variables, making this function obsolete.
The function is typically used in conjunction with the function fgl_report_loadCurrentSettings() as in this example:
IF fgl_report_loadCurrentSettings(fgl_report_findResourcePath("OrderReport.4rp")) 
THEN
  ...

Assuming FGLRESOURCEPATH is set to /home/fjs/reports/lists:/home/fjs/correspondence and the report OrderReport.4rp is located at /home/fjs/correspondence/OrderReport.4rp, that report will be loaded.

For a generic 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.