Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updating a view problem
Message
De
29/08/2003 17:02:38
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Updating a view problem
Divers
Thread ID:
00824703
Message ID:
00824703
Vues:
74
I have a VFP8 form with a local view in its dataenvironment. On the form, I put two spinners, one for a length value and another for a width value. A textbox is also on the form that show the product of the former (ie. area).

My VFP database container has a field update trigger that calls a stored procedure to do the area calculation when the length and width fields change. I've verified that this all works fine when I browse the table and edit the length and/or width fields and the area fields change accordingly.

My problem is that when I use the view based on this table, and make changes to the length or width values, the area value never refreshes to show the correct calculated value. I issued a TABLEUPDATE on the view and expected it to update the area. It doesnt. The underlying table does in fact get updated with the correct values, however, the view does not.

I checked the methods and properties of the dataenvironment and could find anything that could help.

My question is, how do I get the view to update the calculated values (the stuff done in the stored procedure) so that it appears correctly on my form?

Any suggestions and/or comments are greatly appreciated.

TIA

Mike
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform