Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

How to correlate the transaction ID in case of multiple transactions – PB Docs 2022 – PowerBuilder Library

How to correlate the transaction ID in case of multiple transactions – PB Docs 2022

How to correlate the transaction ID in case of multiple
transactions

If your application has multiple transactions, each transaction
has its unique transaction ID. The transactions can be differentiated
by their transaction names, and their transaction IDs shall be
assigned with different parameters, so that each parameter will
correlate with its own transaction.

  1. Add scripts in the Connect for capturing the transaction ID
    and assign it to a parameter.

    A ConnectAndCreateTransaction request in a transaction named
    “itr_dynamiccon” looks like the following:

    You need to add the following code above the
    ConnectAndCreateTransaction request:

    • Add a web_reg_save_param function above the request to
      capture the transaction ID and assign it to the parameter
      “gs_TransactionID_Dycache”. Here the parameter name has a
      suffix “_Dycache” to identify the transaction
      “itr_dynamiccon”.

  2. Replace the transaction ID with the parameter every time it
    occurs.

    • Identify the transaction ID that needs to be correlated.
      You may do a global search in the script for the transaction
      name “itr_dynamiccon” which follows the transaction ID.

    • Replace every occurrence of the transaction ID with the
      parameter <gs_TransactionID_Dycache>.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x