Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Filtering view data on the fly depending on user selecti
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00934212
Message ID:
00934760
Views:
28
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
___________________________________________
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform