{"id":8990,"date":"2016-07-20T06:45:31","date_gmt":"2016-07-20T06:45:31","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagex3\/?p=8990"},"modified":"2016-07-20T06:45:31","modified_gmt":"2016-07-20T06:45:31","slug":"find-the-number-of-fields-defined-in-a-screen","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2016\/07\/20\/find-the-number-of-fields-defined-in-a-screen\/","title":{"rendered":"How to Find the Number of Fields Defined in a Screen?"},"content":{"rendered":"<p>We may come across a situation where we would like to know the number of fields in a Screen if it is open.\u00a0 Sage X3 has a special feature of getting number of fields in a screen with the help of \u201c<strong>masknbf<\/strong>\u201d keyword which will return the value in integer.<\/p>\n<p><strong>Syntax<\/strong>:\u00a0\u00a0\u00a0 masknbf(&lt;class | num_exp&gt;)<\/p>\n<p><strong>Parameter:\u00a0\u00a0 <\/strong><\/p>\n<p>1. Class: Description of a screen (The class must exist.)<\/p>\n<p>2. num_exp: Numeric expression that describes a screen (num_exp &gt;= 0)<\/p>\n<p><strong>Example:<\/strong><\/p>\n<p>If we want to know how many fields does the Product Header screen (ITM0) contain then refer to the below snippet of code for better understanding.<\/p>\n<p><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/07\/Number-of-Fields-in-a-Screen.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-8991\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/07\/Number-of-Fields-in-a-Screen.png\" alt=\"Number of Fields in a Screen\" width=\"768\" height=\"222\" \/><\/a><\/p>\n<p>Hope this helps.<\/p>\n<h5><span style=\"color: #800080\"><strong>Connect with Us on<\/strong><\/span><\/h5>\n<p>&nbsp;<\/p>\n<p style=\"text-align: left\">\u00a0<a href=\"https:\/\/www.facebook.com\/Greytrix\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"  wp-image-8992 alignleft\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/07\/facebook.png\" alt=\"facebook\" width=\"27\" height=\"27\" \/><\/a><a href=\"https:\/\/www.facebook.com\/Greytrix\" target=\"_blank\" rel=\"noopener\">Facebook<\/a><\/p>\n<hr \/>\n<p><a href=\"https:\/\/twitter.com\/greytrix\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"  wp-image-8994 alignleft\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/07\/twitter.png\" alt=\"twitter\" width=\"27\" height=\"27\" \/><\/a><a href=\"https:\/\/twitter.com\/greytrix\" target=\"_blank\" rel=\"noopener\">Twitter<\/a><\/p>\n<hr \/>\n<p style=\"text-align: left\"><a href=\"https:\/\/plus.google.com\/+GreytrixSage\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"  wp-image-8995 alignleft\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/07\/google-plus.png\" alt=\"google-plus\" width=\"27\" height=\"27\" \/><\/a><a href=\"https:\/\/plus.google.com\/+GreytrixSage\" target=\"_blank\" rel=\"noopener\">Google+<\/a><\/p>\n<hr \/>\n<p><a href=\"https:\/\/www.linkedin.com\/company\/greytrix-india-pvt-ltd\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"  wp-image-8996 alignleft\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/07\/linkedin.png\" alt=\"Greytrix linkedin\" width=\"27\" height=\"27\" \/><\/a><a href=\"https:\/\/www.linkedin.com\/company\/greytrix-india-pvt-ltd\" target=\"_blank\" rel=\"noopener\">LinkedIn<\/a><\/p>\n<hr \/>\n<p style=\"text-align: left\"><a href=\"https:\/\/www.youtube.com\/user\/greytrixsage\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"  wp-image-8997 alignleft\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/07\/youtube.png\" alt=\"Greytrix Youtube\" width=\"27\" height=\"27\" \/><\/a><a href=\"https:\/\/www.youtube.com\/user\/greytrixsage\" target=\"_blank\" rel=\"noopener\">YouTube<\/a><\/p>\n<hr \/>\n<h5 style=\"text-align: left\"><\/h5>\n<p>&nbsp;<\/p>\n<h4 style=\"text-align: center\"><span style=\"color: #800080\"><strong>About Us<\/strong><\/span><\/h4>\n<p>&nbsp;<\/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<p>1.\u00a0<a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2014\/03\/20\/getting-number-of-fields-in-table\/\" target=\"_blank\">Getting number of fields in table<\/a><\/p>\n<p>2.\u00a0<a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2016\/02\/10\/how-to-find-a-factorial-of-any-integer-number-in-sage-x3\/\" target=\"_blank\">How to Find a Factorial of Any Integer Number in Sage X3?<\/a><\/p>\n<p>3.\u00a0<a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2016\/02\/10\/how-to-find-a-factorial-of-any-integer-number-in-sage-x3\/\" target=\"_blank\">How to find fields of the table<\/a><\/p>\n<p>4.\u00a0<a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2014\/09\/23\/how-to-roundup-decimal-number-to-two-decimal-places\/\" target=\"_blank\">How to roundup decimal number to two decimal places<\/a><\/p>\n<p>5.\u00a0<a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2014\/04\/26\/hiding-fields-in-screen-dynamically\/\" target=\"_blank\">Hiding fields in Screen Dynamically<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We may come across a situation where we would like to know the number of fields in a Screen if it is open.\u00a0 Sage X3 has a special feature of getting number of fields in a screen with the help of \u201cmasknbf\u201d keyword which will return the value in integer. Syntax:\u00a0\u00a0\u00a0 masknbf(&lt;class | num_exp&gt;) Parameter:\u00a0\u00a0\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2016\/07\/20\/find-the-number-of-fields-defined-in-a-screen\/\">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":[216,1347,1349,1770,1839,1865,1939],"class_list":["post-8990","post","type-post","status-publish","format-standard","hentry","category-sage-erp-x3","tag-blog-sage-x3","tag-number-of-fields","tag-number-of-fields-in-a-screen","tag-sage-erp","tag-sage-x3-blogs","tag-sage-x3-erp","tag-sage-x3-technial"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/8990","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=8990"}],"version-history":[{"count":0,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/8990\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=8990"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=8990"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=8990"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}