Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why Does Independent View Need To Be Updated?
Message
 
 
À
04/09/2001 11:01:28
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00552044
Message ID:
00552349
Vues:
18
This message has been marked as a message which has helped to the initial question of the thread.
>>Hi!
>>
>>If table is also in buffering mode, you require to issue tableupdate() for table only. When data are buffered for table, SELECT-SQL statement (it is ran by View2) cannot get these new data from memory buffers. SELECT in VFP works for phisical data only.
>>
>>It is recommended to keep tables with no buffering and use buffering only for views.
>>
>>>Two views with the same base table. All are optomistic row buffered. Value changes in View1 and TableUpdates are successfully done on View1 and the base table. When View2 is requeried the changed value does not exists. View2 must be updated also. Why? If the base table value has changed shouldn't a Requery of View2 include the changed value? Thanks!
>>>
>>>Regards, Renoir
>
>Hi Vlad,
>
>Ok, I removed the buffering on the table and only update the view and that worked; Requery works fine for all views. Thanks! One follow-up question - I thought that there were certain situations that required that the base table be buffered. Do you know any times when that is true?
>
>Renoir

Only in case something changes directly table and want to allow users to revert these changes. When you use views, use views and queries only and not directly tables. Access table as for read-only data, for example, do lookup(), seek() or simple query (last thing is better for case in future application will move to SQL Server or other backend).
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform