ApplySQLFilter - DataDictionary

Called before a Data Dictionary find/read and is used to set DD SQL Filters

Type: Procedure

Parameters: None

Syntax
Procedure ApplySQLFilter 

Call: Send ApplySQLFilter


Description

This is called before a DataDictionary (DD) find/read and is used to set DD SQL Filters. Refer to Data_Set_PreFind, which calls this, for more information about this process.

ApplySQLFilter sets the table SQL filter to the value in psSQLFilter. If pbApplyGlobalSQLFilters is False, this filter in psSQLFilter will replace the current global table SQL filter; if True, psSQLFilter is added to any the active table SQL filter.

If psSQLFilter if empty, that empty filter is applied. If pbApplyGlobalSQLFilters is False, this means that there is no SQL filter used for this find. If pbApplyGlobalSQLFilters is True, it means that nothing changes.

After the find, the filter information is restored by RestoreDefaultSQLFilters.

This is never called if pbUseDDSQLFilters is False.