{"id":9438,"date":"2016-11-09T12:01:50","date_gmt":"2016-11-09T12:01:50","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagex3\/?p=9438"},"modified":"2016-11-09T12:01:50","modified_gmt":"2016-11-09T12:01:50","slug":"how-to-find-if-a-transaction-is-underway","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2016\/11\/09\/how-to-find-if-a-transaction-is-underway\/","title":{"rendered":"How to find if a transaction is underway"},"content":{"rendered":"<p>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.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Function<\/strong><\/p>\n<p>Adxlog(ShortInt) &#8211;\u00a0 It returns one the two values : 0 or 1.<\/p>\n<p>0 indicates that no transaction is going on and 1 indicates that a transaction is in process.<\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<p><strong>Example:<\/strong><\/p>\n<p><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/11\/transaction1.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-9442\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/11\/transaction1.png\" alt=\"transaction\" width=\"455\" height=\"170\" \/><\/a><\/p>\n<p>Here, a new transaction will only begin if Adxlog value is 0 (i.e No transaction is underway).<\/p>\n<p>Hope this helps<\/p>\n<p>&nbsp;<\/p>\n<p>Also read:<\/p>\n<p>&#8211;\u00a0<a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2015\/11\/27\/locking-a-record-for-specific-time\/\">Locking a record for specific time<\/a><\/p>\n<p>&#8211;\u00a0<a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2015\/07\/30\/how-to-check-if-the-transaction-is-being-locked-in-another-workstation\/\">How to know if the transaction is being locked in another workstation?<\/a><\/p>\n<p>&#8211;\u00a0<a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2013\/03\/16\/how-to-unlock-your-process-in-sage-x3\/\">How to unlock your process in Sage X3 ?<\/a><\/p>\n<p>&#8211;\u00a0<a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2013\/07\/29\/entry-transaction-in-x3\/\">Entry transaction in X3<\/a><\/p>\n<p>&#8211;\u00a0<a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2015\/11\/25\/how-to-restrict-users-from-modifying-the-x3-connection-date\/\">How to restrict users from modifying the X3 connection date?<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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. &nbsp; Function Adxlog(ShortInt) &#8211;\u00a0 It returns one the two values : 0 or 1. 0 indicates that no transaction is going\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2016\/11\/09\/how-to-find-if-a-transaction-is-underway\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-9438","post","type-post","status-publish","format-standard","hentry","category-sage-erp-x3"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/9438","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/comments?post=9438"}],"version-history":[{"count":0,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/9438\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=9438"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=9438"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=9438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}