fgl_report_findResourcePath
Returns the path to a resource searching first the working directory, then FGLRESOURCEPATH, and finally DBPATH. This function is deprecated.
fgl_report_loadCurrentSettings
now searches the path variables, making this
function obsolete.Syntax
fgl_report_findResourcePath(
reportName STRING )
- reportName - Specify the name of the report.
Usage
The function returns the absolute path to the resource specified in the argument. If a file cannot be found, the function returns the argument passed.
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 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.