Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Expression in View Designer
Message
De
22/03/1999 11:25:35
 
 
À
22/03/1999 09:50:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00198971
Message ID:
00200501
Vues:
9
>Customers (table)
>Orders (table)
>extended_price_detail (parameterized view)


>m.varnorderid = orders.norderid
>REQUERY("extended_price_detail")
>THISFORM.extended_price_detail.Refresh()
>
>However, I do not know where in the properties box I need to write this expression for each change in the parent.

The method that you enter this code into depends solely on how the user changes the parent record. If there is a set of VCR buttons (Next/Previous etc.), the code has to be called from each of these buttons, after the SKIPs or GOs. IOW, any time the parent record changes, you have to run this code. I usually put stuff like this in a custom form method Form.RequeryViews() and call this method from any where that the parent record pointer changes. The view also has to be populated when the form is opened, so you'll need to call your custom method from the init event too. And when the user deletes a parent record. And when they add a new one. The common thread here: EVERYWHERE the parent record pointer changes.

>Plus, I need to put some code in the buttonset, for when I go to a new record, but I do not know what?

If you use a buttonset from a class, put this in the click event each button that changes the record pointer:

DODEFAULT()
THISFORM.RequeryViews() && Or whatever your custom method is called
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform