How to find if a transaction is underway

By | November 9, 2016

You may have come accross a situation where you need to find if a transaction is underway during a process. Adxlog can be used to achieve the same. Return value is of type ShortInt.

 

Function

Adxlog(ShortInt) –  It returns one the two values : 0 or 1.

0 indicates that no transaction is going on and 1 indicates that a transaction is in process.

 

Example:

transaction

Here, a new transaction will only begin if Adxlog value is 0 (i.e No transaction is underway).

Hope this helps

 

Also read:

– Locking a record for specific time

– How to know if the transaction is being locked in another workstation?

– How to unlock your process in Sage X3 ?

– Entry transaction in X3

– How to restrict users from modifying the X3 connection date?