Hi Martin,

   But when the user select find button in tdbNav it has a blank grid or form 
where to type in the value he is searching . I want to know which field has 
been selected in the grid or form ?

Best Regards.

Med.

________________________________________
De : Martin Schreiber [[email protected]]
Envoyé : dimanche 28 août 2016 11:41
À : [email protected]
Objet : Re: [MSEide-MSEgui-talk] Filter

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

------------------------------------------------------------------------------
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to