{"id":15837,"date":"2017-05-25T09:39:06","date_gmt":"2017-05-25T09:39:06","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/?p=15837"},"modified":"2024-03-08T07:10:35","modified_gmt":"2024-03-08T07:10:35","slug":"adding-custom-button-in-accpac-view-list","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2017\/05\/25\/adding-custom-button-in-accpac-view-list\/","title":{"rendered":"Adding custom button in Accpac View List"},"content":{"rendered":"<p style=\"text-align: justify;\">There are situations where the user requires the custom column in the Standard Sage 300 Grid. Sage 300 ERP allows us to use\/add columns in the standard Grid using &#8220;AccpacViewList&#8221;.<\/p>\n<p style=\"text-align: justify;\">Based on the requirement of the column, it becomes necessary to provide custom finder on newly added column. We can assign the finder property to the control and use &#8220;OnCustomButtonClick&#8221; event to perform the desired operation.<\/p>\n<p style=\"text-align: justify;\"><em><strong>New Stuff: <\/strong><\/em><a href=\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2017\/05\/23\/migrate-item-category-from-sage-50-cad-to-sage-300-erp\/\" target=\"_blank\" rel=\"noopener\">Migrate Item Category from Sage 50 CAD to Sage 300 ERP<\/a><\/p>\n<p style=\"text-align: justify;\">A snippet of code which may help the developer to make use of this functionality:<\/p>\n<p style=\"text-align: justify;\"><strong>Step 1: Declare the Viewlist with event in the control file<\/strong><\/p>\n<p style=\"text-align: justify;\">Public WithEvents avlDetail As AccpacFldList.AccpacViewList<\/p>\n<p style=\"text-align: justify;\"><strong>Step 2: Adding new column and assigning custom button <\/strong><\/p>\n<p style=\"text-align: justify;\">Private Sub AccpacXX1000UICtrl1_OnUIAppOpened()<\/p>\n<p style=\"text-align: justify;\">Dim stdPic As StdPicture \u00a0 \u00a0<span style=\"color: #c71d22;\"> &#8216;TODO: Write your custom button column code here<\/span><\/p>\n<p style=\"text-align: justify;\">Set stdPic = AccpacXX1000UICtrl1.Picture \u00a0 \u00a0 <span style=\"color: #c71d22;\">&#8216;Inherit the Picture from the Control<\/span><\/p>\n<p style=\"text-align: justify;\">Set avlDetail = AccpacXX1000UICtrl1.UIAppControls(&#8220;ModuleNameFromUIinfo&#8221;).GetControl<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #c71d22;\">&#8216;Add column with Finder property as True to use the custom button.<\/span><\/p>\n<p style=\"text-align: justify;\">avlDetail.AddColumn avlDetail.ColumnCount, &#8220;BindField&#8221;, 0, &#8220;Column Name&#8221;, ALIGMENT_LEFT, 100, True, False, True<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #c71d22;\">&#8216;Adding the custom button with ZOOM symbol and picture inherited from the control. There are different buttons available in the list (BUTTON_ZOOM)<\/span><\/p>\n<p style=\"text-align: justify;\">avlDetail.SetCustomButton avlDetail.ColumnIndexByField(&#8220;BindField&#8221;), BUTTON_ZOOM, stdPic<br \/>\nEnd Sub<\/p>\n<p style=\"text-align: justify;\"><strong>Step 3: OnCustomButtonClick event have the control of the click <\/strong><\/p>\n<p style=\"text-align: justify;\">Private Sub avlDetail_OnCustomButtonClick(ByVal ColIndex As Long, ByVal ColName As String, ByVal FieldName As String, Bookmark As Variant)<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #c71d22;\">&#8216;TODO: Write your code here to perform operation on custom button click<\/span><\/p>\n<p style=\"text-align: justify;\">Call CustomFinder<br \/>\nEnd Sub<\/p>\n<p style=\"text-align: justify;\">So, developer can use the above code snippet to call the functions, forms and also perform any other operations supported by VB6 and Sage 300.<\/p>\n<p><span style=\"font-size: Medium;\"><strong>About Us<\/strong><\/span><br \/>\n<a href=\"https:\/\/www.greytrix.com\/\" target=\"_blank\" rel=\"noopener\">Greytrix<\/a>\u00a0a globally recognized Premier Sage Gold Development Partner is a one stop solution provider for Sage ERP and Sage CRM needs. Being recognized and rewarded for multi-man years of experience, we bring 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=\"https:\/\/www.greytrix.com\/\" target=\"_blank\" rel=\"noopener\">Greytrix<\/a>\u00a0offers unique GUMU&#x2122; integrated solutions of\u00a0<a href=\"https:\/\/www.greytrix.com\/product\/sage-crm\/gumu-sage-300-erp-integration\" target=\"_blank\" rel=\"noopener\">Sage 300 with Sage CRM,<\/a>\u00a0<a href=\"https:\/\/www.greytrix.com\/product\/sage-300-erp\/gumu-300-salesforce-integration\" target=\"_blank\" rel=\"noopener\">Salesforce.com\u00a0<\/a>and\u00a0<a href=\"https:\/\/www.greytrix.com\/product\/sage-300-erp\/ecommerce-magento-integration\" target=\"_blank\" rel=\"noopener\">Magento eCommerce<\/a>\u00a0along with Sage 300 Migration from\u00a0<a href=\"https:\/\/www.greytrix.com\/resources\/sage-erp-crm-migration.pdf\" target=\"_blank\" rel=\"noopener\">Sage 50 US, Sage 50 CA, Sage PRO, QuickBooks, Sage Business Vision and Sage Business Works<\/a>. We also offer best-in-class\u00a0<a href=\"https:\/\/www.greytrix.com\/product\/erp-development\/sage-300-erp-development\" target=\"_blank\" rel=\"noopener\">Sage 300 customization and development services<\/a>\u00a0and integration service for applications such as\u00a0<a href=\"https:\/\/www.greytrix.com\/product\/erp-development\/sage-300-integration-services\" target=\"_blank\" rel=\"noopener\">POS | WMS | Payroll | Shipping System | Business Intelligence | eCommerce for Sage 300 ERP<\/a>\u00a0and in Sage 300c development services we offer services such as upgrades of older codes and screens to new web screens, newer integrations using sdata and web services \u00a0to Sage business partners, end users and Sage PSG worldwide. Greytrix offers over 20+ Sage 300 productivity enhancing utilities that we can help you with such as\u00a0<a href=\"https:\/\/www.greytrix.com\/product\/sage-300-erp-add-ons\/greymatrix-apparel-solution\" target=\"_blank\" rel=\"noopener\">GreyMatrix<\/a>,\u00a0<a href=\"https:\/\/www.greytrix.com\/product\/sage-300-erp-add-ons\/greytrix-document-attachement\" target=\"_blank\" rel=\"noopener\">Document Attachment<\/a>,\u00a0<a href=\"https:\/\/www.greytrix.com\/product\/sage-300-erp-add-ons\/greytrix-document-numbering\" target=\"_blank\" rel=\"noopener\">Document Numbering<\/a>,\u00a0<a href=\"https:\/\/www.greytrix.com\/product\/sage-300-erp-add-ons\/auto-bank-reconciliation\" target=\"_blank\" rel=\"noopener\">Auto-Bank Reconciliation<\/a>,\u00a0<a href=\"https:\/\/www.greytrix.com\/product\/sage-300-erp-add-ons\/purchase-approval-system\" target=\"_blank\" rel=\"noopener\">Purchase Approval System<\/a>,\u00a0<a href=\"https:\/\/www.greytrix.com\/product\/sage-300-erp-add-ons\/three-way-po-matching\" target=\"_blank\" rel=\"noopener\">Three way PO matching<\/a>,\u00a0<a href=\"https:\/\/www.greytrix.com\/product\/sage-300-erp-add-ons\/bill-of-lading\" target=\"_blank\" rel=\"noopener\">Bill of Lading<\/a>\u00a0and\u00a0<a href=\"https:\/\/www.greytrix.com\/product\/sage-300-erp-add-ons\/vat-middle-east\" target=\"_blank\" rel=\"noopener\">VAT for Middle East<\/a>.<\/p>\n<p>For more details on Sage 300 and 300c Services, please contact us at\u00a0<a href=\"mailto:accpac@greytrix.com\" target=\"_blank\" rel=\"noopener\">accpac@greytrix.com<\/a>. We will be glad to assist you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are situations where the user requires the custom column in the Standard Sage 300 Grid. Sage 300 ERP allows us to use\/add columns in the standard Grid using &#8220;AccpacViewList&#8221;. Based on the requirement of the column, it becomes necessary to provide custom finder on newly added column. We can assign the finder property to\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2017\/05\/25\/adding-custom-button-in-accpac-view-list\/\">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":[92,95,107,630,631,632,2357],"class_list":["post-15837","post","type-post","status-publish","format-standard","hentry","category-sage-accpac","tag-accpac-view-list","tag-accpacviewlist","tag-adding-custom-button","tag-custom","tag-custom-button","tag-custom-button-in-accpac-view-list","tag-sage-300-erp"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Adding a custom button in the Accpac View List<\/title>\n<meta name=\"description\" content=\"The &quot;AccpacViewList&quot; feature in Sage 300 ERP allows us to use\/add columns to the basic Grid.\" \/>\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\/2017\/05\/25\/adding-custom-button-in-accpac-view-list\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Adding a custom button in the Accpac View List\" \/>\n<meta property=\"og:description\" content=\"The &quot;AccpacViewList&quot; feature in Sage 300 ERP allows us to use\/add columns to the basic Grid.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2017\/05\/25\/adding-custom-button-in-accpac-view-list\/\" \/>\n<meta property=\"og:site_name\" content=\"Sage 300 ERP \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"article:published_time\" content=\"2017-05-25T09:39:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-08T07:10:35+00:00\" \/>\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=\"3 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\/2017\/05\/25\/adding-custom-button-in-accpac-view-list\/\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2017\/05\/25\/adding-custom-button-in-accpac-view-list\/\",\"name\":\"Adding a custom button in the Accpac View List\",\"isPartOf\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/#website\"},\"datePublished\":\"2017-05-25T09:39:06+00:00\",\"dateModified\":\"2024-03-08T07:10:35+00:00\",\"author\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/#\/schema\/person\/1aced4e22c30ccf606960de27c9542f5\"},\"description\":\"The \\\"AccpacViewList\\\" feature in Sage 300 ERP allows us to use\/add columns to the basic Grid.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2017\/05\/25\/adding-custom-button-in-accpac-view-list\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2017\/05\/25\/adding-custom-button-in-accpac-view-list\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2017\/05\/25\/adding-custom-button-in-accpac-view-list\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Adding custom button in Accpac View List\"}]},{\"@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":"Adding a custom button in the Accpac View List","description":"The \"AccpacViewList\" feature in Sage 300 ERP allows us to use\/add columns to the basic 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\/2017\/05\/25\/adding-custom-button-in-accpac-view-list\/","og_locale":"en_US","og_type":"article","og_title":"Adding a custom button in the Accpac View List","og_description":"The \"AccpacViewList\" feature in Sage 300 ERP allows us to use\/add columns to the basic Grid.","og_url":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2017\/05\/25\/adding-custom-button-in-accpac-view-list\/","og_site_name":"Sage 300 ERP \u2013 Tips, Tricks and Components","article_published_time":"2017-05-25T09:39:06+00:00","article_modified_time":"2024-03-08T07:10:35+00:00","author":"sage300","twitter_card":"summary_large_image","twitter_misc":{"Written by":"sage300","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2017\/05\/25\/adding-custom-button-in-accpac-view-list\/","url":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2017\/05\/25\/adding-custom-button-in-accpac-view-list\/","name":"Adding a custom button in the Accpac View List","isPartOf":{"@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/#website"},"datePublished":"2017-05-25T09:39:06+00:00","dateModified":"2024-03-08T07:10:35+00:00","author":{"@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/#\/schema\/person\/1aced4e22c30ccf606960de27c9542f5"},"description":"The \"AccpacViewList\" feature in Sage 300 ERP allows us to use\/add columns to the basic Grid.","breadcrumb":{"@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2017\/05\/25\/adding-custom-button-in-accpac-view-list\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2017\/05\/25\/adding-custom-button-in-accpac-view-list\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2017\/05\/25\/adding-custom-button-in-accpac-view-list\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/"},{"@type":"ListItem","position":2,"name":"Adding custom button in Accpac View List"}]},{"@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\/15837","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=15837"}],"version-history":[{"count":2,"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/posts\/15837\/revisions"}],"predecessor-version":[{"id":25590,"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/posts\/15837\/revisions\/25590"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/media?parent=15837"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/categories?post=15837"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/tags?post=15837"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}