Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Edit Multiple Records in Multiple Views (same table)
Message
De
17/10/2001 10:44:06
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
17/10/2001 10:37:12
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:
00569040
Message ID:
00569595
Vues:
22
>>>>I have a form I need to revamp that uses multiple views based from a single table. There is a grid populated by one view. Some processing will occur that will involve scanning and switching between views and moving/copying records depending on flags that are set for the records displayed in the grid. There are no relationships between the views. I plan on using Table Buffering and am having a hard time getting my mind around how I need to handle the adds/deletes/updates for the different views. Is the best way to make all changes to all views then do the updates on the individual view? Is there a better way or more accepted way? This is new to me as I normally have only one record to update at a time and I have a oApp class to handle it as needed. Thanks!
>>>>
>>>>Regards, Renoir
>>>
>>>Renoir,
>>>Multiple views or multiple instances of same table or multiple users of same table. They all could be seen as same IMHO.
>>>PS: If only from a single table wouldn't it be easier to work directly with the table itself.
>>>Cetin
>>
>>Cetin,
>>
>>Maybe so, but the logic is that there is a field in the table and it's value determines the contents of each view. When working in the MyMain view, based on a flag I might need to take a record from the MySecondary view, compare it to a record in MyTertiary view and then move/copy the record back into the Main view. It seemed that the easiest way was to have separate views.
>>
>>Renoir
>
>Would transactions be a good solution for this issue?
>
>Renoir

I don't know, couldn't get the scenario. I wouldn't use multiple views (or a single view) on only one table. Instead I would use the same table n times with different aliases if need be.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform