Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting Cursor Filter
Message
 
À
30/07/1998 14:49:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00122805
Message ID:
00123005
Vues:
24
Hi Bill,

Set Filter is probably not the best solution for such a problem. It could really slow things down. I would rather, create an SQL at run-time and execute it to retrive the records depending on various parameters(filter conditions) defined by user.

>Is there anyway to set the filter on a view opened in the report.DataEnvironment at runtime ?
>
>I've tried setting the Cursor.Filter property in the BeforeOpenTablesEvent, but it doesn't work.
>
>Ideally, I would like to set a global variable to a filter expression and have the report set the filter for the view as it starts up.
>
>An example:
>I have a view that has every invoice in it. Sometimes I want to print all outstanding invoices, sometimes I want to print just one invoice, sometimes I want to print all invoices with duedates in the next week, etc.
>I would like to have the view just trade out the filter for the report.
>
>TIA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform