{"id":12870,"date":"2018-05-09T01:40:41","date_gmt":"2018-05-09T06:40:41","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagex3\/?p=12870"},"modified":"2018-05-09T01:40:41","modified_gmt":"2018-05-09T06:40:41","slug":"to-identify-the-server-in-which-the-current-folder-is-installed","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2018\/05\/09\/to-identify-the-server-in-which-the-current-folder-is-installed\/","title":{"rendered":"To identify the server in which the current folder is installed in Sage X3"},"content":{"rendered":"<p>adxmac is a function used to identify the server in which the current folder, or one of its reference folder, is installed. It also allows you to obtain the network name of the client (in version 7 mode, the client is the node.js server)<\/p>\n<p><strong>Syntax:<\/strong><strong>\u00a0<\/strong><\/p>\n<p>adxmac(Index)<\/p>\n<p><strong>Examples:<\/strong><strong>\u00a0<\/strong><\/p>\n<p># What is the application server name<\/p>\n<p>APPSERV_NAME=adxmac(0)<\/p>\n<p><strong>Description:<\/strong><\/p>\n<p>An index is an integer value expression that can have the following values:<\/p>\n<ul>\n<li><strong>&#8216;-2&#8217; :<\/strong> the client. If using a &#8216;classic non-browser client&#8217; then this value contains the client name or ip of where the classic client is running. If running a browser client, the web server supporting the browser connection is returned.<\/li>\n<\/ul>\n<ul>\n<li><strong>&#8216;-1&#8217;:<\/strong> the process server where the script is executing.<\/li>\n<\/ul>\n<ul>\n<li><strong>&#8216;0&#8217; :<\/strong>the application server where the folder being accessed is installed. If the adxmac(0) is equal to blank (&#8220;&#8221;) then the application is the same as the process server. To return the server id or ip in this case use adxmac(-1). Note, that most X3 scripting routines that require a server id or ip accept adxmac(0) being blank and resolve blank server names.<\/li>\n<\/ul>\n<ul>\n<li><strong>&#8216;N&#8217;: <\/strong>the application server where the parent folder nomap(N) is installed (it is also the folder adxmother(N-1)). If blank then the application server is the same as the process server returned in adxmac(-1).<\/li>\n<\/ul>\n<p><span style=\"font-size: Medium;\"><strong>About Us<\/strong><\/span><br \/>\nGreytrix is a one-stop solution provider for Sage ERP and Sage CRM needs. We provide complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third-party add-on development and implementation expertise.<\/p>\n<p><a href=\"http:\/\/www.greytrix.com\/\">Greytrix<\/a>\u00a0has some unique solutions of\u00a0<a href=\"http:\/\/www.greytrix.com\/product\/sage-crm\/gumu-sage-x3-integration\">Sage X3 integration with Sage CRM<\/a>,\u00a0<a href=\"http:\/\/www.greytrix.com\/product\/sage-x3\/gumu-x3-salesforce-integration\">Salesforce.com<\/a>, and\u00a0<a href=\"http:\/\/www.greytrix.com\/product\/magento-sage-integrations\/sage-x3-magento\">Magento eCommerce<\/a>\u00a0along with Sage X3 migration from Sage 50 US, Sage Pro, and QuickBooks. \u00a0We also offer best-in-class\u00a0<a href=\"http:\/\/www.greytrix.com\/product\/erp-development\/sage-x3\">Sage X3 customization and development services<\/a>\u00a0to Sage business partners, end users, and Sage PSG worldwide.<\/p>\n<p>For more information on Sage X3 Integration and Services, please contact us at\u00a0<a href=\"mailto:x3@greytrix.com\">x3@greytrix.com<\/a>. We will be glad to assist you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>adxmac is a function used to identify the server in which the current folder, or one of its reference folder, is installed. It also allows you to obtain the network name of the client (in version 7 mode, the client is the node.js server) Syntax:\u00a0 adxmac(Index) Examples:\u00a0 # What is the application server name APPSERV_NAME=adxmac(0)\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2018\/05\/09\/to-identify-the-server-in-which-the-current-folder-is-installed\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[94,95,1032,1078,1337,1940,1945],"class_list":["post-12870","post","type-post","status-publish","format-standard","hentry","category-features","tag-adxmac-function","tag-adxmother","tag-identify-the-user","tag-integer-value-expression","tag-node-js-server","tag-sage-x3-technial-assistance","tag-sage-x3-technical-blogs"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/12870","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=12870"}],"version-history":[{"count":0,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/12870\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=12870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=12870"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=12870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}