pbAutoLocateDFFiles - cDRReport¶
Methods - Properties - Events
Type¶
Default¶
True
Arguments¶
None
Description¶
The location of the database and tables for a DataFlex data source in the report (and sub-reports) is changed during OpenReport to a location relative to the workspace data paths. The system only performs this adjustment with tables that do not have a path or when the path is invalid, provided that the DatabaseType indicates that the report uses the DataFlex database as its data source.
The example below demonstrates what can be done if pbAutoLocateDFFiles is set to false.
DataFlex Framework Usage¶
- Web
- Windows
- FlexTron
Sample¶
Object oReport is a cDRReport
Set psReportName to 'MyReport.dr'
Set pbAutoLocateDFFiles to False
End_Object
Object oRunReportButton is a Button
Set Label to 'Run Report'
Procedure OnClick
String sReportId
Get OpenReport of oReport to sReportId
If (sReportId <> '') Begin
Set psDatabaseName of oReport sReportId to 'c:\project\data\filelist.cfg'
Send DisplayReport of oReport
End
End_Procedure
End_Object
Notes¶
- Is only used for DataFlex embedded database reports