{"id":1881,"date":"2012-10-10T06:19:52","date_gmt":"2012-10-10T06:19:52","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/?p=1881"},"modified":"2025-02-18T04:20:23","modified_gmt":"2025-02-18T04:20:23","slug":"how-to-restrict-user-to-enter-specific-character-length-in-sage-300-erp-grid","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2012\/10\/10\/how-to-restrict-user-to-enter-specific-character-length-in-sage-300-erp-grid\/","title":{"rendered":"How to restrict user to enter specific character length in Sage 300 ERP Grid"},"content":{"rendered":"<p><strong>Scenario:<\/strong><br \/>\nI am designing a user interface to get some input from user where I have added Accpac grid Control on a VB form. I want to restrict user to enter the specific character length in one of the column. I tried everything but didn\u2019t work for me. Is there any way so that I could restrict the Accpac user to enter only specific character length?<br \/>\n<strong>Solution:<\/strong><br \/>\nWe can definitely restrict the user by masking the particular column in the Accpac Grid not at design time but at runtime.<br \/>\nWe need to write the following code on Accpac grid\u2019s <strong>\u201cOnStartEdit\u201d<\/strong> event, as we need to restrict the user before entering the value.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2012\/10\/12.jpg\" target=\"_blank\" rel=\"noopener\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-1886\" src=\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2012\/10\/12.jpg\" alt=\"\" width=\"715\" height=\"319\" \/><\/a><\/p>\n<p><strong>Where,<\/strong><br \/>\n<strong>COLUMN<\/strong><strong>_1 <\/strong>is the AccpacGrid column to which you want to do the masking.<strong><br \/>\n<\/strong><strong>PutSize<\/strong> is to limit the number of characters to 6.<strong><br \/>\n<\/strong><strong>PutPresentationType<\/strong> is to set the presentation mask.<strong><br \/>\nPutPresentationMask<\/strong> is to force each of the 6 characters to uppercase.<strong><br \/>\n<\/strong><strong>CustomField <\/strong>is a AccpacCustomField.<br \/>\n<strong>In above code we have <\/strong>restricted user to enter up to 6 alpha numeric\u00a0 [%-6C] value for \u201c<strong>COLUMN1\u201d <\/strong>so that user would able to enter only alpha numeric value. Even, <strong>if user copies alpha numeric value in small case and paste<\/strong> in particular column then program will automatically convert it into Upper case. Also, program will not allow <strong>user to paste\u00a0non-alpha numeric value <\/strong>in particular column as we have written the code on \u201c<strong>OnStartEdit<\/strong>\u201d events.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Scenario: I am designing a user interface to get some input from user where I have added Accpac grid Control on a VB form. I want to restrict user to enter the specific character length in one of the column. I tried everything but didn\u2019t work for me. Is there any way so that I\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2012\/10\/10\/how-to-restrict-user-to-enter-specific-character-length-in-sage-300-erp-grid\/\">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":[2],"tags":[299,1149,1567,2001,2357,2451],"class_list":["post-1881","post","type-post","status-publish","format-standard","hentry","category-sage-accpac","tag-auto-set-mask-in-grid","tag-grid","tag-masking-in-accpac-grid","tag-presentation-mask","tag-sage-300-erp","tag-sage-accpac-erp"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to restrict user to enter specific character length in Sage 300 ERP Grid<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2012\/10\/10\/how-to-restrict-user-to-enter-specific-character-length-in-sage-300-erp-grid\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to restrict user to enter specific character length in Sage 300 ERP Grid\" \/>\n<meta property=\"og:description\" content=\"Scenario: I am designing a user interface to get some input from user where I have added Accpac grid Control on a VB form. I want to restrict user to enter the specific character length in one of the column. I tried everything but didn\u2019t work for me. Is there any way so that I\u2026 Read More &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2012\/10\/10\/how-to-restrict-user-to-enter-specific-character-length-in-sage-300-erp-grid\/\" \/>\n<meta property=\"og:site_name\" content=\"Sage 300 ERP \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"article:published_time\" content=\"2012-10-10T06:19:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-18T04:20:23+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2012\/10\/12.jpg\" \/>\n<meta name=\"author\" content=\"sage300\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"sage300\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2012\/10\/10\/how-to-restrict-user-to-enter-specific-character-length-in-sage-300-erp-grid\/\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2012\/10\/10\/how-to-restrict-user-to-enter-specific-character-length-in-sage-300-erp-grid\/\",\"name\":\"How to restrict user to enter specific character length in Sage 300 ERP Grid\",\"isPartOf\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2012\/10\/10\/how-to-restrict-user-to-enter-specific-character-length-in-sage-300-erp-grid\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2012\/10\/10\/how-to-restrict-user-to-enter-specific-character-length-in-sage-300-erp-grid\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2012\/10\/12.jpg\",\"datePublished\":\"2012-10-10T06:19:52+00:00\",\"dateModified\":\"2025-02-18T04:20:23+00:00\",\"author\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/#\/schema\/person\/1aced4e22c30ccf606960de27c9542f5\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2012\/10\/10\/how-to-restrict-user-to-enter-specific-character-length-in-sage-300-erp-grid\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2012\/10\/10\/how-to-restrict-user-to-enter-specific-character-length-in-sage-300-erp-grid\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2012\/10\/10\/how-to-restrict-user-to-enter-specific-character-length-in-sage-300-erp-grid\/#primaryimage\",\"url\":\"http:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2012\/10\/12.jpg\",\"contentUrl\":\"http:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2012\/10\/12.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2012\/10\/10\/how-to-restrict-user-to-enter-specific-character-length-in-sage-300-erp-grid\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to restrict user to enter specific character length in Sage 300 ERP Grid\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/#website\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/\",\"name\":\"Sage 300 ERP \u2013 Tips, Tricks and Components\",\"description\":\"Explore the world of Sage 300 with our insightful blogs, expert tips, and the latest updates. We\u2019ll empower you to leverage Sage 300 to its fullest potential. As your one-stop partner, Greytrix delivers exceptional solutions and integrations for Sage 300. Our blogs extend our support to businesses, covering the latest insights and trends. Dive in and transform your Sage 300 experience with us! \",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/#\/schema\/person\/1aced4e22c30ccf606960de27c9542f5\",\"name\":\"sage300\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c3b4325cb326e36467f945b9b9adf2bb85e907fe092d42eb36b39743b492e626?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c3b4325cb326e36467f945b9b9adf2bb85e907fe092d42eb36b39743b492e626?s=96&d=mm&r=g\",\"caption\":\"sage300\"},\"url\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/author\/sageaccpac\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to restrict user to enter specific character length in Sage 300 ERP Grid","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2012\/10\/10\/how-to-restrict-user-to-enter-specific-character-length-in-sage-300-erp-grid\/","og_locale":"en_US","og_type":"article","og_title":"How to restrict user to enter specific character length in Sage 300 ERP Grid","og_description":"Scenario: I am designing a user interface to get some input from user where I have added Accpac grid Control on a VB form. I want to restrict user to enter the specific character length in one of the column. I tried everything but didn\u2019t work for me. Is there any way so that I\u2026 Read More &raquo;","og_url":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2012\/10\/10\/how-to-restrict-user-to-enter-specific-character-length-in-sage-300-erp-grid\/","og_site_name":"Sage 300 ERP \u2013 Tips, Tricks and Components","article_published_time":"2012-10-10T06:19:52+00:00","article_modified_time":"2025-02-18T04:20:23+00:00","og_image":[{"url":"http:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2012\/10\/12.jpg","type":"","width":"","height":""}],"author":"sage300","twitter_card":"summary_large_image","twitter_misc":{"Written by":"sage300","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2012\/10\/10\/how-to-restrict-user-to-enter-specific-character-length-in-sage-300-erp-grid\/","url":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2012\/10\/10\/how-to-restrict-user-to-enter-specific-character-length-in-sage-300-erp-grid\/","name":"How to restrict user to enter specific character length in Sage 300 ERP Grid","isPartOf":{"@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2012\/10\/10\/how-to-restrict-user-to-enter-specific-character-length-in-sage-300-erp-grid\/#primaryimage"},"image":{"@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2012\/10\/10\/how-to-restrict-user-to-enter-specific-character-length-in-sage-300-erp-grid\/#primaryimage"},"thumbnailUrl":"http:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2012\/10\/12.jpg","datePublished":"2012-10-10T06:19:52+00:00","dateModified":"2025-02-18T04:20:23+00:00","author":{"@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/#\/schema\/person\/1aced4e22c30ccf606960de27c9542f5"},"breadcrumb":{"@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2012\/10\/10\/how-to-restrict-user-to-enter-specific-character-length-in-sage-300-erp-grid\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2012\/10\/10\/how-to-restrict-user-to-enter-specific-character-length-in-sage-300-erp-grid\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2012\/10\/10\/how-to-restrict-user-to-enter-specific-character-length-in-sage-300-erp-grid\/#primaryimage","url":"http:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2012\/10\/12.jpg","contentUrl":"http:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2012\/10\/12.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2012\/10\/10\/how-to-restrict-user-to-enter-specific-character-length-in-sage-300-erp-grid\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/"},{"@type":"ListItem","position":2,"name":"How to restrict user to enter specific character length in Sage 300 ERP Grid"}]},{"@type":"WebSite","@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/#website","url":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/","name":"Sage 300 ERP \u2013 Tips, Tricks and Components","description":"Explore the world of Sage 300 with our insightful blogs, expert tips, and the latest updates. We\u2019ll empower you to leverage Sage 300 to its fullest potential. As your one-stop partner, Greytrix delivers exceptional solutions and integrations for Sage 300. Our blogs extend our support to businesses, covering the latest insights and trends. Dive in and transform your Sage 300 experience with us! ","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/#\/schema\/person\/1aced4e22c30ccf606960de27c9542f5","name":"sage300","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c3b4325cb326e36467f945b9b9adf2bb85e907fe092d42eb36b39743b492e626?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c3b4325cb326e36467f945b9b9adf2bb85e907fe092d42eb36b39743b492e626?s=96&d=mm&r=g","caption":"sage300"},"url":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/author\/sageaccpac\/"}]}},"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/posts\/1881","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/comments?post=1881"}],"version-history":[{"count":2,"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/posts\/1881\/revisions"}],"predecessor-version":[{"id":35918,"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/posts\/1881\/revisions\/35918"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/media?parent=1881"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/categories?post=1881"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/tags?post=1881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}