{"id":22783,"date":"2021-07-29T12:43:32","date_gmt":"2021-07-29T12:43:32","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagex3\/?p=22783"},"modified":"2024-07-03T10:41:07","modified_gmt":"2024-07-03T10:41:07","slug":"how-to-call-action-based-screen-through-code-in-sage-x3","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2021\/07\/29\/how-to-call-action-based-screen-through-code-in-sage-x3\/","title":{"rendered":"How to Call Action Based Screen Through Code in Sage X3"},"content":{"rendered":"\n<p>In Sage X3, there are certain requirements when you need to call a pop-up screen and even in standard X3, we have a lot of examples where a lot of pop-up screens open up on certain actions like before creation or modification or after tapping through certain fields and all. For e.g., we have a certain screen for lot modifications that opens up on the Miscellaneous receipt screen after entering a complete line depending on the product\u2019s stock entries, also there are a couple of screens like stock issues, etc. which open up on sales delivery, purchase receipts and all. So, these pop-up screens always play an important role where extra detailed information can be saved which can be helpful in determining the complete status of a particular line or data.<\/p>\n\n\n\n<p>So, if we have some requirements where a screen needs to be called after certain actions of creation, modification, or after some fields then we can call a particular customized screen designed by us through code.<\/p>\n\n\n\n<p>So in this blog, we are going to see how we can have an action-based screen through code where a code can be placed in any specific action of creation modification, or deletion to put some restriction or validation before the same action.<\/p>\n\n\n\n<p><strong><em><u>Steps to be followed :<\/u><\/em><\/strong><\/p>\n\n\n\n<p>In Sage X3, we need to create an action-based screen and window then we can call the same screen through code.<\/p>\n\n\n\n<p>We need to navigate to <strong>All -&gt; Development -&gt; Script dictionary -&gt; Screen <\/strong>and need to create a new customized screen of our use and requirements. Kindly refer below screenshot for the same.<\/p>\n\n\n\n\n\n<p>Then we need to create a window that holds that screen so navigate to <strong>All -> Development -> Script dictionary -> Window <\/strong>and create a new window which has that screen. Kindly refer below screenshot for the same.<\/p>\n\n\n\n\n\n<p>Then after creating a new window, we need to create a new action that holds that window and by that a screen that can be opened through code. Navigate to <strong>All -> Development -> Script dictionary -> Action <\/strong>and create a new action for the same. Kindly refer below screenshot for the same.<\/p>\n\n\n\n\n\n<p>Then we need to write a code that can be called as per our requirements of specific actions like creation, modifications, etc. Kindly refer to a snippet of code for the same.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"510\" height=\"163\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/07\/Code.jpg\" alt=\"\" class=\"wp-image-22787\" srcset=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/07\/Code.jpg 510w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/07\/Code-300x96.jpg 300w\" sizes=\"(max-width: 510px) 100vw, 510px\" \/><figcaption class=\"wp-element-caption\"><strong>Fig : Code<\/strong><\/figcaption><\/figure>\n\n\n\n<p>By using the above code, we can call or open an action-based screen on any specific action.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-text-color has-link-color wp-elements-c5e1638fe0db781fd132d689b469078c\" style=\"color:#c71d22\"><strong>About Us<\/strong><\/h2>\n\n\n\n<p>Greytrix \u2013 a globally recognized and one of the oldest Sage Development Partners is a one-stop solution provider for Sage ERP and Sage CRM organizational needs. Being acknowledged and rewarded for multi-man years of experience and expertise, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third-party add-on development, and implementation competence.<\/p>\n\n\n\n<p id=\"block-28013e99-0882-44c6-b705-7b16c85053b2\">Greytrix&nbsp;has some unique integration solutions developed for&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-crm\/\">Sage CRM<\/a>&nbsp;with Sage ERPs&nbsp;namely&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-x3-erp\/\">Sage X3<\/a>,&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-intacct\/\">Sage Intacct<\/a>,&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-100-erp\/\">Sage 100<\/a>,&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-500-erp\/\">Sage 500<\/a>,&nbsp;and&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-300-erp\/\">Sage 300<\/a>. We also offer best-in-class&nbsp;Sage ERP&nbsp;and&nbsp;Sage CRM&nbsp;customization and development services&nbsp;to&nbsp;Business&nbsp;Partners,&nbsp;End&nbsp;Users, and Sage PSG worldwide. Greytrix&nbsp;helps in&nbsp;the migration of Sage CRM from&nbsp;Salesforce | ACT! | SalesLogix | Goldmine | Sugar CRM | Maximizer. Our Sage CRM Product Suite includes&nbsp;addons like&nbsp;&nbsp;Greytrix Business Manager,&nbsp;Sage CRM Project Manager,&nbsp;Sage CRM Resource Planner,&nbsp;Sage CRM Contract Manager,&nbsp;Sage CRM Event Manager,&nbsp;Sage CRM Budget Planner,&nbsp;Gmail Integration,&nbsp;Sage CRM Mobile Service Signature,&nbsp;Sage CRM CTI Framework.<\/p>\n\n\n\n<p id=\"block-4bc42a09-fb13-4598-8137-ce5f7b91ce28\">Greytrix is a recognized&nbsp;Sage Champion Partner&nbsp;for GUMU&#x2122; Sage X3 \u2013 Sage CRM integration listed on&nbsp;<a href=\"https:\/\/www.sage.com\/marketplace\/asb_ListingDetail?listingId=a1h24000007PC3aAAG\" target=\"_blank\" rel=\"noreferrer noopener\">Sage Marketplace<\/a>&nbsp;and Sage CRM \u2013 Sage Intacct integration listed on&nbsp;<a href=\"https:\/\/marketplace.intacct.com\/MPListing?lid=a2D0H000007kiHyUAI\" target=\"_blank\" rel=\"noreferrer noopener\">Sage Intacct Marketplace<\/a>. The&nbsp;<a href=\"https:\/\/www.greytrix.com\/gumu\/\" target=\"_blank\" rel=\"noreferrer noopener\">GUMU&#x2122; Cloud framework<\/a>&nbsp;by Greytrix forms the backbone of cloud integrations that are managed in real-time for the processing and execution of application programs at the click of a button.<\/p>\n\n\n\n<p id=\"block-76376301-1c3e-4250-8a09-727595a606f0\">For more information on our integration solutions, please contact us at&nbsp;<a href=\"mailto:sage@greytrix.com\">sage@greytrix.com<\/a>. We will be glad to assist you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Sage X3, there are certain requirements when you need to call a pop-up screen and even in standard X3, we have a lot of examples where a lot of pop-up screens open up on certain actions like before creation or modification or after tapping through certain fields and all. For e.g., we have a\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2021\/07\/29\/how-to-call-action-based-screen-through-code-in-sage-x3\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,10],"tags":[48,348,2020],"class_list":["post-22783","post","type-post","status-publish","format-standard","hentry","category-sage-erp-x3","category-standard","tag-action","tag-code","tag-screen"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/22783","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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/comments?post=22783"}],"version-history":[{"count":2,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/22783\/revisions"}],"predecessor-version":[{"id":29557,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/22783\/revisions\/29557"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=22783"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=22783"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=22783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}