Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Slow filter
Message
From
01/04/2003 17:41:00
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00772678
Message ID:
00772723
Views:
6
>Thanks Hilmar, I am still trying working on it.
>
>Dawa

Try p-views, you will be happy you did.

In the view designer, you need a filter condition. Let's say you need to "filter" a child table on the foreign key of the parent table. Your filter (in the "Filter" tab of the view designer) would look something like this: ChildTable.ParentField = ?tnParentField

If you open the view in the form's DataEnvironment, make sure you set the property NoDataOnLoad to .T.

Then, define variable tnParentField, which may be either private or public. Private should be enough.

Give the variable a value, and requery() the view.

To change the view data to another parent key, repeat the last step for the new value.

I hope this is clear enough?

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform