{"id":23529,"date":"2021-09-29T10:08:02","date_gmt":"2021-09-29T10:08:02","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagex3\/?p=23529"},"modified":"2021-09-29T10:08:04","modified_gmt":"2021-09-29T10:08:04","slug":"how-to-open-a-screen-at-query-submission-of-batch-task","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2021\/09\/29\/how-to-open-a-screen-at-query-submission-of-batch-task\/","title":{"rendered":"How to open a screen at query submission of batch task"},"content":{"rendered":"\n<p>In Sage X3, for processing certain functionalities or scripts as per requirement and on interval basis, sage x3 provides a feature of batch task. It allows the user to execute multiple processes at single time and can be processed on interval basis. Creating a batch task is very common. We often create a batch task to automate any processes in Sage X3.<\/p>\n\n\n\n<p>Sage X3 allows adding function code in batch task for execution of those screens based on their function code. Sometimes there might be a requirement where we need to pass parameters using pop screen after query submission of task code. It can be achieved using below steps.<\/p>\n\n\n\n<p>Consider a test screen which is custom action based screen consisting of few fields as shown in below figure.<\/p>\n\n\n\n\n\n<p>At first, we need to create a batch task. For that <strong>Navigate to: All -&gt; Usage -&gt; Batch Server -&gt; Task Management<\/strong><\/p>\n\n\n\n<p>In order to open a screen after batch task execution, we need to add the \u201cFunction\u201d of the screen and create the \u201cTask code\u201d as shown in below figure.<\/p>\n\n\n\n\n\n<p>After entering \u201cFunction\u201d, we might get an error saying that \u201cAction not generated in this function\u201d as shown below and will not allow to create the task code.<\/p>\n\n\n\n\n\n<p>We can resolve this error by changing settings in \u201cAction\u201d of that function we need to add in the batch task.<\/p>\n\n\n\n<p><strong>Navigate to All -&gt; Development -&gt; Script Dictionary -&gt; Actions -&gt;<\/strong> Click on Actions and open the action code<\/p>\n\n\n\n<p>In General tab, change the \u2018Template\u2019 field value to \u2018Standard processing\u2019 and change the \u2018First Entry\u2019 value to \u2018Window entry\u2019. Also we need to add Window code of your screen in \u2018Criteria Window\u2019 instead of \u2018Main Window\u2019. Along with these changes, make sure that the \u2018Batch\u2019 and \u2018Public\u2019 checkboxes are checked as shown in below figure.<\/p>\n\n\n\n\n\n<p>Now, if we try to create the batch task again we will be able to create it successfully without errors.<\/p>\n\n\n\n<p>To execute this Batch Task,<strong> navigate to All -&gt; Usage -&gt; Batch server -&gt; Query Submission<\/strong><\/p>\n\n\n\n<p>Fill in the all the values in the screen as shown below along with the \u2018Task Code\u2019 of the batch task you created and click on \u2018Validation\u2019.<\/p>\n\n\n\n\n\n<p>Now we can see that the required screen is opened through the Batch Task.<\/p>\n\n\n\n\n\n<p>This blog helps in opening a screen on query submission of batch task.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><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, for processing certain functionalities or scripts as per requirement and on interval basis, sage x3 provides a feature of batch task. It allows the user to execute multiple processes at single time and can be processed on interval basis. Creating a batch task is very common. We often create a batch task\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2021\/09\/29\/how-to-open-a-screen-at-query-submission-of-batch-task\/\">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":[3,8,10],"tags":[48,860,1594],"class_list":["post-23529","post","type-post","status-publish","format-standard","hentry","category-debug","category-sage-erp-x3","category-standard","tag-action","tag-function","tag-query-submission-in-sage-x3"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/23529","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=23529"}],"version-history":[{"count":1,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/23529\/revisions"}],"predecessor-version":[{"id":23546,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/23529\/revisions\/23546"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=23529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=23529"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=23529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}