Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data Buffering, Pessimistic & Optimistic locking and suc
Message
De
20/12/2006 10:05:55
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
20/12/2006 08:41:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01177438
Message ID:
01179199
Vues:
9
>>>Ok, that makes sense.
>>>
>>>Under the following scenario:
>>>
>>>User 1 adds 4 detail lines
>>>User 2 adds 3 detail lines
>>>User 2 saves changes.
>>>User 1 attempts to save but is not able to because header record has
>>>been changed by user2 save.
>>>
>>>Since everything for user1 would rollback, they would have to reenter all detail lines
>>>again. Is that correct?
>>>
>>>Thanks again.
>>
>>The detail lines would still be in the cursors/buffers. They could edit things and hit save button again.
>
>Just wonder:-
>
>let say total_qty = 20
>if 10 computer at the same time hit save :
>replace total_qty with total_qty - 1
>
>some fail while some success, will total_qty still have the correct answer ?

What do you think correct answer is? Those that fail will not reduce total qty.

Better approach is to add separate records for each and have backend compute new total.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform