TransactionName

PowerServer will use the transaction object name to map with the database cache name. But when the transaction object is defined as an argument of a function, as shown below, PowerServer will get different transaction name from PowerBuilder.


transaction ltr_tmp
ltr_tmp = create transaction
gnv_manager.of_connect(ltr_tmp,"qa_datawindow")
  • PowerBuilder will get ltr_tmp as the transaction object name.

    For example,

    dw_1.settransobject(ltr_tmp)
    dw_1.retrieve()
    
  • PowerServer will get atr_transobject as the transaction object name.

Defining the transaction object as an instance variable or global variable can ensure PowerBuilder and PowerServer get the same transaction object name.