Procedure Data_Set_PostFind
Call: | Send Data_Set_PostFind |
Data_Set_PreFind and Data_Set_PostFind are sent to a DDO before and after finds and reads. We use this to provide a before and after hook where DataDictionary (DD) SQL filters can be applied and removed.
You can also use these methods, but you should do so carefully. If you do not forward send these, the entire DD SQL filter process may break. If you use these functions, you are advised to carefully read and understand the code for these methods in the DataDictionary class.
Data_Set_PreFind and Data_Set_PostFind are called as part DD Find and Read methods. They are called within Find, Request_Find, Request_Read, and Locate_Next.
They are not applied to record identity finds Find_By_Recnum, Read_By_Recnum, FindByRowId, ReadByRowId and not applied to parent table-relates associated with a find. They are called right before and after the internal runtime record find.
Here is a general description of what these methods do and how they are used to implement DD SQL filters. If you want to know exactly what they do, you should read the code.
Data_Set_PreFind:
If pbUseDDSQLFilters // store current table SQL filter information Send StoreDefaultSQLFilters // create new table SQL filter information based on // pbApplyGlobalSQLFilters and psSQLFilter Send ApplySQLFilter End
Data_Set_PostFind:
If pbUseDDSQLFilters // restore table SQL filter information Send RestoreDefaultSQLFilters End
You should rarely need to use any of these methods described here. DD SQL filtering was designed to be controlled by pbUseDDSQLFilters, pbApplyGlobalSQLFilters and psSQLFilter.