Autosearchfields
Hi,
I have saved my templates in a database with the help of the reportexplorer
component.
When printing a report using the ppreport.template.loadfromdatabase followed
by ppreport.print it all works fine.
But now I want to add an autosearchfield. So between the loadfromdatabase
and print call I do a CreateAutoSearchField call.
But the report does open without the criteria I assigned.
When I save the template with the autosearchfield in it, it works fine.
Any suggestions appreciated.
Thanks in advance,
Richard Bergmans
I have saved my templates in a database with the help of the reportexplorer
component.
When printing a report using the ppreport.template.loadfromdatabase followed
by ppreport.print it all works fine.
But now I want to add an autosearchfield. So between the loadfromdatabase
and print call I do a CreateAutoSearchField call.
But the report does open without the criteria I assigned.
When I save the template with the autosearchfield in it, it works fine.
Any suggestions appreciated.
Thanks in advance,
Richard Bergmans
This discussion has been closed.
Comments
CreateAutosearchField will create and autosearch field for the report.
CreateAutosearchCriteria, will create an autosearchfield and also add the
criteria to the DADE dataview in the report, and it will be persistent as
search criteria in regards to the end user solution. See the help file on
TppReport.CreateAutoSearchCriteria
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com