{"id":8639,"date":"2016-05-11T10:52:01","date_gmt":"2016-05-11T10:52:01","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagex3\/?p=8639"},"modified":"2016-05-11T10:52:01","modified_gmt":"2016-05-11T10:52:01","slug":"how-to-know-a-mask-variable-is-initialized-or-not","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2016\/05\/11\/how-to-know-a-mask-variable-is-initialized-or-not\/","title":{"rendered":"How to know a Mask Variable is Initialized or not?"},"content":{"rendered":"<p>In Sage X3, sometimes you may have to check for the initialization of a particular mask variable. Sage X3 provides an inbuilt function to do the same.<\/p>\n<p>Below function is used to know whether a mask variable is initialized or not.<\/p>\n<p style=\"padding-left: 30px\"><strong><em>varinit<\/em><\/strong><strong><em> ( zone_name [, exp_index ] )<\/em><\/strong><\/p>\n<p>Where,<\/p>\n<p><strong>Zone_name <\/strong>:\u00a0\u00a0\u00a0\u00a0 [ class ] name_of_variable.<\/p>\n<p><strong>Exp_index <\/strong>:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Integer expression for the index of the variable<\/p>\n<p><strong>VALUE\u00a0 :<\/strong><\/p>\n<p style=\"padding-left: 30px\">1 : If the zone is initialized<\/p>\n<p style=\"padding-left: 30px\">0 : If the zone is not initialized<\/p>\n<p>For example, if you want to know whether BPCNUM (Customer) field of Customer screen (BPC0) is initialized or not, we can use varinit().<\/p>\n<p>Kindly refer to the below screenshot.<\/p>\n<p><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/05\/Mask-Variable-Initialization.png\" target=\"_blank\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-8640\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/05\/Mask-Variable-Initialization.png\" alt=\"Mask Variable Initialization\" width=\"372\" height=\"140\" \/><\/a><\/p>\n<p><strong>Hope this blog helps!<\/strong><\/p>\n<p><strong>About Us<\/strong><\/p>\n<p>Greytrix is 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\/\" target=\"_blank\">Greytrix<\/a>\u00a0have some unique solutions of\u00a0<a href=\"http:\/\/www.greytrix.com\/product\/sage-crm\/gumu-sage-x3-integration\" target=\"_blank\">Sage X3\u2019s integration with Sage CRM<\/a>,\u00a0<a href=\"http:\/\/www.greytrix.com\/product\/sage-x3\/gumu-x3-salesforce-integration\" target=\"_blank\">Salesforce.com<\/a>\u00a0and\u00a0<a href=\"http:\/\/www.greytrix.com\/product\/magento-sage-integrations\/sage-x3-magento\" target=\"_blank\">Magento eCommerce<\/a>. It also offers best-in-class\u00a0<a href=\"http:\/\/www.greytrix.com\/product\/erp-development\/sage-x3\" target=\"_blank\">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\" target=\"_blank\">x3@greytrix.com<\/a>\u00a0.We will be glad to assist you.<\/p>\n<p><strong><em>Other Related Blogs:<\/em><\/strong><\/p>\n<ul>\n<li><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2015\/10\/20\/how-to-create-a-style-to-give-effects-to-grid-title\/\" target=\"_blank\">How to Create a Style to Give Effects to Grid Title?<\/a><\/li>\n<li><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2015\/05\/30\/how-to-filter-the-table-with-user-defined-conditions-in-sage-x3\/\" target=\"_blank\">How to filter the table with user defined conditions in Sage X3?<\/a><\/li>\n<li><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2015\/04\/30\/how-to-link-and-order-by-with-different-tables-in-4gl\/\" target=\"_blank\">How to link and order by with different tables in 4GL?<\/a><\/li>\n<li><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2015\/03\/27\/how-to-get-the-sum-of-table-column-in-sage-x3\/\" target=\"_blank\">How to get the sum of table column in Sage X3?<\/a><\/li>\n<li><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2014\/12\/31\/link-tables-in-sage-erp-x3-through-coding\/\" target=\"_blank\">Link tables in Sage ERP X3 through coding<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>In Sage X3, sometimes you may have to check for the initialization of a particular mask variable. Sage X3 provides an inbuilt function to do the same. Below function is used to know whether a mask variable is initialized or not. varinit ( zone_name [, exp_index ] ) Where, Zone_name :\u00a0\u00a0\u00a0\u00a0 [ class ] name_of_variable.\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2016\/05\/11\/how-to-know-a-mask-variable-is-initialized-or-not\/\">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":[1252,1822,1942,1945,1947],"class_list":["post-8639","post","type-post","status-publish","format-standard","hentry","category-sage-erp-x3","tag-mask-variable-initialization","tag-sage-x3","tag-sage-x3-technical-assistance","tag-sage-x3-technical-blogs","tag-sage-x3-technical-issues"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/8639","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=8639"}],"version-history":[{"count":0,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/8639\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=8639"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=8639"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=8639"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}