Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET FILTER TO x RELATION
Message
From
14/05/2007 14:40:06
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01224893
Message ID:
01225339
Views:
15
>Set filter to works better than a relation when it comes
>to display only some itens of the child table
>
>eg.
>
>SET FILTER TO ALLTRIM(UPPER(FATHER_TABLE.type)) = ALLTRIM(UPPER(child_TABLE.type))
>
>I put the code into the roll_event of the grid, so it happens
>every time I move to a record on the grid of the father table
>
>I am wrong ? I am forcing the system ?

To me the biggest reason to use parameterized views/SQL Pass through (SPT) is that you can then allow the user to resort the result anyway they want.

Take a table of customers and a table of cities. Show the customer table with city using SET RELATION. That's pretty easy. Now change it to show the customer table sorted by city. That is awkward programming.
Previous
Reply
Map
View

Click here to load this message in the networking platform