CreateAutoSearchCritiera
I am using CreateAutoSearchCriteria on OnCreate of the report. Problem
is...I have no other search criteria set on the data tab, so the Search
Dialog does not come up and, hence, my AutoCreated stuff does not show. Is
there a way to tell the report to show the Dialog (and the 'Magnifying
Glass' icon) on the Preview page?
This is an end-user created report created at run-time, not created at
design-time.
Thanks,
Stacey
is...I have no other search criteria set on the data tab, so the Search
Dialog does not come up and, hence, my AutoCreated stuff does not show. Is
there a way to tell the report to show the Dialog (and the 'Magnifying
Glass' icon) on the Preview page?
This is an end-user created report created at run-time, not created at
design-time.
Thanks,
Stacey
This discussion has been closed.
Comments
user designer) on the dataview to make it an autosearch criteria. Otherwise,
you have the criteria on the dataview that is set to not be an Autosearch
criertia. When you set this option on the criteria using the query designer,
ShowAutosearchDialog should be true. Using Delphi, check this template by
loading it into a report object on a form and check the object inspector to
be sure that Report.ShowAutoSearchDialog is true.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
no 'autosearch' checkbox, because there is no search criteria yet.
Is there a way to set a field...say 'MEMBER_JOIN_DATE' in the end-user
search criteria and set it to autosearch, then...somehow find that criteria
and modify the search value using RAP?
You could actually add the autosearchfield using rap... and set it's
value at the same time... wouldn't that be easier?
I built a couple of RAP functions for my app that get values from my app
(like the current user) and I just use these as parameters to the
Report.CreateAutoSearchCriteria RAP method that already exists. You can
do this either before the autosearch dialog is create or after,
depending on whether you want this to be transparent to the user or not.
HTH.
Best Regards,
James Crosswell
Software Engineer
Microforge.net Limited
http://www.microforge.net
A template that has the criteria persistently saved on the dataview must be
hiding somewhere. If you run the report and create and autosearch criteria
object at runtime in RAP, and then save the template after it has executed,
then the criteria could have become persistent on the dataview. The report
should have saved itself to stream before the report ran and then restored
itself after it ran when moving back to the design tab, but I don't know if
there is something in code to get a template saved to file or database that
has the criteria on it, which is the only thing I can think of that is
happening .
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com