On Sunday 28 August 2016 12:15:33 mohamed hamza wrote: > Hi Martin, > > Is there any function to return which field we are applying filter or > find matching record in the event procedure beforeEndfiltered or > afterendfiltered? >
The edited field values are available in OnBeforeEndFilterEdit as normal field values, the current filter edit mode is in TmseBufDataset.FilterEditKind. TmseBufdataset has for "filtereditkindty" "fek_filter", "fek_filtermin", "fek_filtermax" and "fek_find" recordbuffers which are mapped to the current filed values by calling TmseBufDataset.BeginFilterEdit(<thekind>) . The filter values must be evaluated in code for example in OnFilterRecord, there is no automatic find or filter mechanism. TDBNavigator has buttons in order to switch to the different filter edit modes. If the dataset is not in dsFilter-mode the filter values are available by the "FieldFilterValue()" function, there is also "FieldFilterValueIsNull()". Martin ------------------------------------------------------------------------------ _______________________________________________ mseide-msegui-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

