Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

PB 12.1 and transaction isolation levels

$
0
0

Is it possible to use the option to set transaction isolation levels to message a user that another user has updated the record that they have opened?  I have customers stepping on each others work.  Would setting the transation isoloation level to RC force a re-read before an update?  If the window is using a stored procedure to perform the actual update, does the transaction isolation setting in PB have any effect?

 

Example:

The screeen has multiple tabs which hit one main table and several related tables.  Data changes on tabs 2 - 8 effect tab 1, the general summary tab.

Customer 1 opens record X and updates data on the first tab

Customer 2 opens record X and updates data on the second tab

 

The window was written so that the it loops through each tab and save/commits everything when the customer hits the <update> button.

Because of that, it is possible for either customer to overwrite the other customer's data.  If customer 2 saves last, he saves his change on the second tab, but he also saves his old displayed copy of what was on the first tab. 

 

Is there any way to notify a customer that (a) someone else has opened the record and updated it or  (b) prevent him from writing over a record that has been updated since he opened it?

 

 

Environment: PB 12.1 (classic)

DB: Oracle 9i

Currently, translation isolation level is not set.  I assume it defaults to serializable.


Viewing all articles
Browse latest Browse all 2935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>