{"id":15,"date":"2011-05-17T08:54:00","date_gmt":"2011-05-17T08:54:00","guid":{"rendered":"http:\/\/greytrix.com\/Blogs\/sageaccpacerp\/?p=14"},"modified":"2011-05-17T08:54:00","modified_gmt":"2011-05-17T08:54:00","slug":"tips-and-tricks-of-sage-accpac-erps-views-1-do-you-know-how-to-get-notification-from-the-accpac-views","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2011\/05\/17\/tips-and-tricks-of-sage-accpac-erps-views-1-do-you-know-how-to-get-notification-from-the-accpac-views\/","title":{"rendered":"Tips and Tricks of Sage ACCPAC ERP&#039;s Views: 1. Do you know how to get notification from the Accpac Views?"},"content":{"rendered":"<p><strong>PROBLEMS:<br \/><\/strong>I have done sub classing of PO Receipt [Header\/Detail] views, but I need to add logic such that the detail will perform some calculation whenever the Receipt header is updated\/deleted\/inserted. I need to look for an event where I need to write the logic which may help me in achieving this functionality.<br \/><strong>SOLUTION:<br \/><\/strong>There is an event in the views called Composite Notify which tracks the entire change event [Insert\/Update\/Delete] in the views.<\/p>\n<p>A small snippet of code which may help the developer to make use of this method:<\/p>\n<p><strong>1st STEP:<\/strong> You need to call the method by uncommenting the below snippet in the XXXX1.h file<br \/>#define DO_COMPOSITENOTIFY 1<br \/><strong>2nd STEP<\/strong>: The developer has to mark the view with the NOTIFY option ON as mentioned:<br \/>Extern CMPNAME cmpNameList [CMP_COUNT+MAN_CMP_COUNT]<br \/>{<br \/>{PORCPL_VIEW, 0, 0, 0, CMPNAME_OPTION_NOTIFY}.<br \/>}<br \/><strong>3rd STEP:<br \/><\/strong>CHECK_CALL (e, CompositeNotifyBase (context, reason, rotoID, info, extra, rvh, view));<br \/>Switch (reason )<br \/>{<br \/>case INSTANCE_NOTIFY_RECORD_WRITTEN:<br \/>\/\/you can write the logic here<br \/>case INSTANCE_NOTIFY_RECORD_DELETED<br \/>\/\/you can write the logic here<br \/>}<br \/><strong>Happy Coding \ud83d\ude42<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>PROBLEMS:I have done sub classing of PO Receipt [Header\/Detail] views, but I need to add logic such that the detail will perform some calculation whenever the Receipt header is updated\/deleted\/inserted. I need to look for an event where I need to write the logic which may help me in achieving this functionality.SOLUTION:There is an event\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2011\/05\/17\/tips-and-tricks-of-sage-accpac-erps-views-1-do-you-know-how-to-get-notification-from-the-accpac-views\/\">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-15","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>Tips and Tricks of Sage ACCPAC ERP&#039;s Views: 1. Do you know how to get notification from the Accpac Views? - Sage 300 ERP \u2013 Tips, Tricks and Components<\/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\/05\/17\/tips-and-tricks-of-sage-accpac-erps-views-1-do-you-know-how-to-get-notification-from-the-accpac-views\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tips and Tricks of Sage ACCPAC ERP&#039;s Views: 1. Do you know how to get notification from the Accpac Views? - Sage 300 ERP \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"og:description\" content=\"PROBLEMS:I have done sub classing of PO Receipt [Header\/Detail] views, but I need to add logic such that the detail will perform some calculation whenever the Receipt header is updated\/deleted\/inserted. I need to look for an event where I need to write the logic which may help me in achieving this functionality.SOLUTION:There is an event\u2026 Read More &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2011\/05\/17\/tips-and-tricks-of-sage-accpac-erps-views-1-do-you-know-how-to-get-notification-from-the-accpac-views\/\" \/>\n<meta property=\"og:site_name\" content=\"Sage 300 ERP \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"article:published_time\" content=\"2011-05-17T08:54:00+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=\"1 minute\" \/>\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\/05\/17\/tips-and-tricks-of-sage-accpac-erps-views-1-do-you-know-how-to-get-notification-from-the-accpac-views\/\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2011\/05\/17\/tips-and-tricks-of-sage-accpac-erps-views-1-do-you-know-how-to-get-notification-from-the-accpac-views\/\",\"name\":\"Tips and Tricks of Sage ACCPAC ERP&#039;s Views: 1. Do you know how to get notification from the Accpac Views? - Sage 300 ERP \u2013 Tips, Tricks and Components\",\"isPartOf\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/#website\"},\"datePublished\":\"2011-05-17T08:54:00+00:00\",\"author\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/#\/schema\/person\/1aced4e22c30ccf606960de27c9542f5\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2011\/05\/17\/tips-and-tricks-of-sage-accpac-erps-views-1-do-you-know-how-to-get-notification-from-the-accpac-views\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2011\/05\/17\/tips-and-tricks-of-sage-accpac-erps-views-1-do-you-know-how-to-get-notification-from-the-accpac-views\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2011\/05\/17\/tips-and-tricks-of-sage-accpac-erps-views-1-do-you-know-how-to-get-notification-from-the-accpac-views\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tips and Tricks of Sage ACCPAC ERP&#039;s Views: 1. Do you know how to get notification from the Accpac Views?\"}]},{\"@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":"Tips and Tricks of Sage ACCPAC ERP&#039;s Views: 1. Do you know how to get notification from the Accpac Views? - Sage 300 ERP \u2013 Tips, Tricks and Components","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\/05\/17\/tips-and-tricks-of-sage-accpac-erps-views-1-do-you-know-how-to-get-notification-from-the-accpac-views\/","og_locale":"en_US","og_type":"article","og_title":"Tips and Tricks of Sage ACCPAC ERP&#039;s Views: 1. Do you know how to get notification from the Accpac Views? - Sage 300 ERP \u2013 Tips, Tricks and Components","og_description":"PROBLEMS:I have done sub classing of PO Receipt [Header\/Detail] views, but I need to add logic such that the detail will perform some calculation whenever the Receipt header is updated\/deleted\/inserted. I need to look for an event where I need to write the logic which may help me in achieving this functionality.SOLUTION:There is an event\u2026 Read More &raquo;","og_url":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2011\/05\/17\/tips-and-tricks-of-sage-accpac-erps-views-1-do-you-know-how-to-get-notification-from-the-accpac-views\/","og_site_name":"Sage 300 ERP \u2013 Tips, Tricks and Components","article_published_time":"2011-05-17T08:54:00+00:00","author":"sage300","twitter_card":"summary_large_image","twitter_misc":{"Written by":"sage300","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2011\/05\/17\/tips-and-tricks-of-sage-accpac-erps-views-1-do-you-know-how-to-get-notification-from-the-accpac-views\/","url":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2011\/05\/17\/tips-and-tricks-of-sage-accpac-erps-views-1-do-you-know-how-to-get-notification-from-the-accpac-views\/","name":"Tips and Tricks of Sage ACCPAC ERP&#039;s Views: 1. Do you know how to get notification from the Accpac Views? - Sage 300 ERP \u2013 Tips, Tricks and Components","isPartOf":{"@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/#website"},"datePublished":"2011-05-17T08:54:00+00:00","author":{"@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/#\/schema\/person\/1aced4e22c30ccf606960de27c9542f5"},"breadcrumb":{"@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2011\/05\/17\/tips-and-tricks-of-sage-accpac-erps-views-1-do-you-know-how-to-get-notification-from-the-accpac-views\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2011\/05\/17\/tips-and-tricks-of-sage-accpac-erps-views-1-do-you-know-how-to-get-notification-from-the-accpac-views\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2011\/05\/17\/tips-and-tricks-of-sage-accpac-erps-views-1-do-you-know-how-to-get-notification-from-the-accpac-views\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/"},{"@type":"ListItem","position":2,"name":"Tips and Tricks of Sage ACCPAC ERP&#039;s Views: 1. Do you know how to get notification from the Accpac Views?"}]},{"@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\/15","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=15"}],"version-history":[{"count":0,"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/posts\/15\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/media?parent=15"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/categories?post=15"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/tags?post=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}