Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Filtering view data on the fly depending on user selecti
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00934212
Message ID:
00934760
Vues:
26
Hi Wayne

Thanks for you help. I will give this a try and trouble you further if I get stuck <g>.

>If it is a character based field, make your view's where using LIKE... then set the parameter to %.


Like you mention it below about searching for a -99999 record everytime then shouldn't the code be like this:

>
>where (sometable.isomefield = ?piViewparameter or -99999 = sometable.isomefield)
>
rather than

>
>select *;
>from sometable;
>where (-99999 = sometable.isomefield or sometable.isomefield = ?piViewparameter)
>
>We are using the Codemine framework, and have added a lot to it to handle the setting of the values of the fields when we open the cursors. If you are not using a framework, you will need to go through your parameters and set them to wildcard values before opening or requerying your view.

I am using CodeBook, the predecessor of Codemine, I think.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform