{"id":25,"date":"2011-06-30T07:16:00","date_gmt":"2011-06-30T07:16:00","guid":{"rendered":"http:\/\/greytrix.com\/Blogs\/sageaccpacerp\/?p=25"},"modified":"2024-12-12T11:09:02","modified_gmt":"2024-12-12T11:09:02","slug":"how-to-access-the-popup-screen-control-in-sage-accpac-user-interface","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2011\/06\/30\/how-to-access-the-popup-screen-control-in-sage-accpac-user-interface\/","title":{"rendered":"How to access the POPUP screen control in Sage Accpac user interface"},"content":{"rendered":"<p>Here we will see how to get the list of controls on the Popup Screens and how to customize them. Just to be clear when I say popup screen I mean Screens like Item\/Tax Details screen on O\/E and P\/O Transactions.<\/p>\n<div>Normally when we have to do customization to Main Screens of Accpac for e.g. O\/E Order Entry, Shipment Entry, and Invoice Entry etc\u2026 we can get the list and names of all the controls on the UI through Accpac SDK i.e. from Accpac UI Info.But for the Popup Screens like Item\/Tax Details List and Names of the controls on the Popup Screen are not listed in Accpac SDK. So when it come to rare situations where one has to make some changes on the Popup screen people often get stuck as to where and how do I write my code without knowing the control name.<br \/>\nHere is the solution\u2026<br \/>\nLet us take an example say if we have to change the Label of Item Number to Product Number on Item\/tax Detail Screen of Order Entry.<br \/>\nFor this you will need to customize the Order Entry OCX and do some debugging.<br \/>\nFirst thing one needs to do is find out the Name of the Popup Form, you will find a event in Order Entry Source \u201cAccpacOE1100UICtrl1_OnPopupOpened\u201d (refer below snippet). This event has various parameters I have explained each one below.<br \/>\n[Snip]<br \/>\nPrivate Sub AccpacOE1100UICtrl1_OnPopupOpened(ByVal strPopupName As String, PopupDSs As AccpacOE1100.ACCPACDSControls, PopupCtls As AccpacOE1100.ACCPACControls, strPopupCaption As String, icoPopup As stdole.Picture)<br \/>\n[Snip]<\/p>\n<div>\n<div>strPopupName &#8211; Indicates the popup screen name.<\/div>\n<div>strPopupCaption &#8211; Indicates the caption name for this popup screen.<\/div>\n<div>PopupCtls &#8211; Is used to get the field controls on this popup screen.<\/div>\n<div>PopupDSs &#8211; Indicates the data source that will be bound with the popup screen.<\/div>\n<div>icoPopup &#8211; Indicates the icon number used for the popup screen.<\/div>\n<div><\/div>\n<div>While in debug mode when you hit the Item\/Tax button for a specific item following parameters information will be obtained.<\/div>\n<div><\/div>\n<div>strPopupName : \u201cfrmDetail\u201d<\/div>\n<div>strPopupCaption : \u201cItems\/Taxes &#8211; O\/E Order Entry\u201d<\/div>\n<div><\/div>\n<div>Now you have the form name and need to get the list of controls on our form \u201cfrmDetail\u201d (i.e. Item\/Tax popup screen) for this you will have to write a small piece of code in the AccpacOE1100UICtrl1_OnPopupOpened event.<\/div>\n<div><a href=\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2011\/06\/01.-Popup-Screen-Code.jpg\" target=\"_blank\" rel=\"noopener\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-2112\" src=\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2011\/06\/01.-Popup-Screen-Code.jpg\" alt=\"\" width=\"748\" height=\"209\" \/><\/a><\/div>\n<\/div>\n<\/div>\n<div style=\"text-align: center;\"><\/div>\n<div>PopupCtls.Count will give the number of controls present in the Popup screen. So while debugging programmer will came to know their are 114 controls present on the \u201cItem\/Tax\u201d popup screen and using the above for loop the name of the controls popup screen and using the above for loop the name of the controls will be printed on the immediate window.<\/div>\n<div>From above printed List user has identify what would be the name of his control (well anyone who know Accpac SDK should be able to figure out right name \uf04a), in our case the field would be \u201cfecOEORDD_ItemNo\u201d since we have to change the change the caption from the Item Number to Product ID.<\/div>\n<div>So now that we have identified the name of the control that we want to change we just need to replace our above Code (Loop that prints control Names) with below code.<\/div>\n<div><a href=\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2011\/06\/02.-Popup-Screen-Code-1.jpg\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"aligncenter wp-image-2113\" src=\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2011\/06\/02.-Popup-Screen-Code-1.jpg\" alt=\"\" width=\"748\" height=\"115\" \/><\/a><\/div>\n<div style=\"text-align: center;\"><\/div>\n<div>Besides this you can also use below properties to change Height, Width, Top and Left Alignment\u2026<\/div>\n<div>PopupCtls(&#8220;fecOEORDD_ItemNo &#8220;).Height<\/div>\n<div>PopupCtls(&#8220;fecOEORDD_ItemNo &#8220;).Width<\/div>\n<div>PopupCtls(&#8220;fecOEORDD_ItemNo &#8220;).Top<\/div>\n<div>PopupCtls(&#8220;fecOEORDD_ItemNo &#8220;).Left<\/div>\n<div><\/div>\n<div>Below screen shot shows how our caption change would reflect \u201cProduct ID\u201d.<\/div>\n<div><a href=\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2011\/06\/03.-Popup-Screen.jpg\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"aligncenter wp-image-2114\" src=\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2011\/06\/03.-Popup-Screen.jpg\" alt=\"\" width=\"591\" height=\"479\" \/><\/a><\/div>\n<div style=\"text-align: center;\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Here we will see how to get the list of controls on the Popup Screens and how to customize them. Just to be clear when I say popup screen I mean Screens like Item\/Tax Details screen on O\/E and P\/O Transactions. Normally when we have to do customization to Main Screens of Accpac for e.g.\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2011\/06\/30\/how-to-access-the-popup-screen-control-in-sage-accpac-user-interface\/\">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":[],"class_list":["post-25","post","type-post","status-publish","format-standard","hentry","category-sage-accpac"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to access the POPUP screen control in Sage Accpac user interface<\/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\/2011\/06\/30\/how-to-access-the-popup-screen-control-in-sage-accpac-user-interface\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to access the POPUP screen control in Sage Accpac user interface\" \/>\n<meta property=\"og:description\" content=\"Here we will see how to get the list of controls on the Popup Screens and how to customize them. Just to be clear when I say popup screen I mean Screens like Item\/Tax Details screen on O\/E and P\/O Transactions. Normally when we have to do customization to Main Screens of Accpac for e.g.\u2026 Read More &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2011\/06\/30\/how-to-access-the-popup-screen-control-in-sage-accpac-user-interface\/\" \/>\n<meta property=\"og:site_name\" content=\"Sage 300 ERP \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"article:published_time\" content=\"2011-06-30T07:16:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-12T11:09:02+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2011\/06\/01.-Popup-Screen-Code.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=\"4 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\/2011\/06\/30\/how-to-access-the-popup-screen-control-in-sage-accpac-user-interface\/\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2011\/06\/30\/how-to-access-the-popup-screen-control-in-sage-accpac-user-interface\/\",\"name\":\"How to access the POPUP screen control in Sage Accpac user interface\",\"isPartOf\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2011\/06\/30\/how-to-access-the-popup-screen-control-in-sage-accpac-user-interface\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2011\/06\/30\/how-to-access-the-popup-screen-control-in-sage-accpac-user-interface\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2011\/06\/01.-Popup-Screen-Code.jpg\",\"datePublished\":\"2011-06-30T07:16:00+00:00\",\"dateModified\":\"2024-12-12T11:09:02+00:00\",\"author\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/#\/schema\/person\/1aced4e22c30ccf606960de27c9542f5\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2011\/06\/30\/how-to-access-the-popup-screen-control-in-sage-accpac-user-interface\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2011\/06\/30\/how-to-access-the-popup-screen-control-in-sage-accpac-user-interface\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2011\/06\/30\/how-to-access-the-popup-screen-control-in-sage-accpac-user-interface\/#primaryimage\",\"url\":\"http:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2011\/06\/01.-Popup-Screen-Code.jpg\",\"contentUrl\":\"http:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2011\/06\/01.-Popup-Screen-Code.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2011\/06\/30\/how-to-access-the-popup-screen-control-in-sage-accpac-user-interface\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to access the POPUP screen control in Sage Accpac user interface\"}]},{\"@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 access the POPUP screen control in Sage Accpac user interface","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\/2011\/06\/30\/how-to-access-the-popup-screen-control-in-sage-accpac-user-interface\/","og_locale":"en_US","og_type":"article","og_title":"How to access the POPUP screen control in Sage Accpac user interface","og_description":"Here we will see how to get the list of controls on the Popup Screens and how to customize them. Just to be clear when I say popup screen I mean Screens like Item\/Tax Details screen on O\/E and P\/O Transactions. Normally when we have to do customization to Main Screens of Accpac for e.g.\u2026 Read More &raquo;","og_url":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2011\/06\/30\/how-to-access-the-popup-screen-control-in-sage-accpac-user-interface\/","og_site_name":"Sage 300 ERP \u2013 Tips, Tricks and Components","article_published_time":"2011-06-30T07:16:00+00:00","article_modified_time":"2024-12-12T11:09:02+00:00","og_image":[{"url":"http:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2011\/06\/01.-Popup-Screen-Code.jpg","type":"","width":"","height":""}],"author":"sage300","twitter_card":"summary_large_image","twitter_misc":{"Written by":"sage300","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2011\/06\/30\/how-to-access-the-popup-screen-control-in-sage-accpac-user-interface\/","url":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2011\/06\/30\/how-to-access-the-popup-screen-control-in-sage-accpac-user-interface\/","name":"How to access the POPUP screen control in Sage Accpac user interface","isPartOf":{"@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2011\/06\/30\/how-to-access-the-popup-screen-control-in-sage-accpac-user-interface\/#primaryimage"},"image":{"@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2011\/06\/30\/how-to-access-the-popup-screen-control-in-sage-accpac-user-interface\/#primaryimage"},"thumbnailUrl":"http:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2011\/06\/01.-Popup-Screen-Code.jpg","datePublished":"2011-06-30T07:16:00+00:00","dateModified":"2024-12-12T11:09:02+00:00","author":{"@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/#\/schema\/person\/1aced4e22c30ccf606960de27c9542f5"},"breadcrumb":{"@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2011\/06\/30\/how-to-access-the-popup-screen-control-in-sage-accpac-user-interface\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2011\/06\/30\/how-to-access-the-popup-screen-control-in-sage-accpac-user-interface\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2011\/06\/30\/how-to-access-the-popup-screen-control-in-sage-accpac-user-interface\/#primaryimage","url":"http:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2011\/06\/01.-Popup-Screen-Code.jpg","contentUrl":"http:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2011\/06\/01.-Popup-Screen-Code.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2011\/06\/30\/how-to-access-the-popup-screen-control-in-sage-accpac-user-interface\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/"},{"@type":"ListItem","position":2,"name":"How to access the POPUP screen control in Sage Accpac user interface"}]},{"@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\/25","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=25"}],"version-history":[{"count":1,"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/posts\/25\/revisions"}],"predecessor-version":[{"id":33656,"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/posts\/25\/revisions\/33656"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/media?parent=25"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/categories?post=25"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/tags?post=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}