ReportOnGetAutoSeachValues - how using this ?
Hi need more info for make a filter on my dataset report.
I have a delphi application,
from Delphi use EDB_Table and a TppDbPipeline ,
in this mode my report have access to my Table ( dbgrid )
with end user report i need add a extra filter, i have to try this code
but don't work, ReportOnGetAutoSeachValues is never called.
must i add a Report.AutoSearchFields.add??????? like ??
Procedure ReportOnGetAutoSeachValues;
begin
if Report.AutoSearchFields[0].FieldName = 'CODE_STATE' then
Report.AutoSearchFields[0].SearchExpression := '1';
end;
I have a delphi application,
from Delphi use EDB_Table and a TppDbPipeline ,
in this mode my report have access to my Table ( dbgrid )
with end user report i need add a extra filter, i have to try this code
but don't work, ReportOnGetAutoSeachValues is never called.
must i add a Report.AutoSearchFields.add??????? like ??
Procedure ReportOnGetAutoSeachValues;
begin
if Report.AutoSearchFields[0].FieldName = 'CODE_STATE' then
Report.AutoSearchFields[0].SearchExpression := '1';
end;
This discussion has been closed.
Comments
Yes, you must first add an autosearch field in order for the event to
properly fire. Take a look at the autosearch demos located in the \Demos\3.
AutoSearch\... directory for some examples.
I also recommend you take a look at DADE and it's autosearch capabilities.
Creating your datasets in DADE makes the addition of autosearch fields very
simple and straight forward.
http://www.digital-metaphors.com/rbWiki/DADE/Fundamentals/Create_AutoSearch_Parameters
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com