Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Autosearchfields

edited October 2001 in General
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

Comments

  • edited October 2001
    You'll want to use CreateAutoSearchCriteria(). There are two methods.
    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


This discussion has been closed.