Quantcast
Channel: SCN: Message List - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 7329

How to copy transaction object

$
0
0

Suppose I have transaction object mytrans in pb, and it is already connected to server. Then I want to create a new instance of transaction object, but want to get the same connection info from mytrans., then use this new instance to do data update, so it will not impact any transaction related mytrans.

 

the pseudo-code should like:

 

uo_trans ls_new_trans

ls_new_trans = create uo_trans

 

//copy connection info from mytrans to ls_new_trans: how to do this???

ls_new_trans .autocommit = true

//use ls_new_trans to call SP to update data

ls_new_trans .autocommit = false

 

destroy ls_new_trans.

 

how to implement it?


Viewing all articles
Browse latest Browse all 7329

Trending Articles



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