{"id":20460,"date":"2020-08-25T10:56:06","date_gmt":"2020-08-25T10:56:06","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagex3\/?p=20460"},"modified":"2020-08-25T10:56:09","modified_gmt":"2020-08-25T10:56:09","slug":"how-to-change-enter-key-functionality","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2020\/08\/25\/how-to-change-enter-key-functionality\/","title":{"rendered":"How to change Enter key functionality"},"content":{"rendered":"\n<p>In sage X3, enter key has some default functionality for e.g. in some screens it is used to trigger OK button functionality while in grid level it is used to jump on the next line and so on. So, depending on the requirement and screen type Enter key has different types of functionalities. But with the help of some coding and actions of screens we can actually block the default functionality of Enter key and can replace it with some other functionalities. <\/p>\n\n\n\n<p><strong><em>Steps to be followed<\/em><\/strong> :<\/p>\n\n\n\n<p> So, in sage X3 when Enter key is pressed, X3 assigns the value of GSTARET to the variable RESPONSE. We can check that condition in the \u201cAfter choice\u201d action depending on the screens and template that we are using. For different screens and templates different actions are used but most notably APRES_CHOI or AP_CHOIX are used. For the below example we can use APRES_CHOI but depending on the template use we have to see which action is exactly used so it might be differ between the two. <\/p>\n\n\n\n<p>So, in the list of actions we have to specify our action in the specific processing file of the script editor:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"305\" height=\"88\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/08\/Script-Editor-2.png\" alt=\"\" class=\"wp-image-20467\" srcset=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/08\/Script-Editor-2.png 305w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/08\/Script-Editor-2-300x87.png 300w\" sizes=\"(max-width: 305px) 100vw, 305px\" \/><figcaption><strong>Fig : Script Editor<\/strong><\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"175\" height=\"85\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/08\/Script-Editor-1-1.png\" alt=\"\" class=\"wp-image-20465\"\/><figcaption><strong>Fig : Script Editor<\/strong> <\/figcaption><\/figure>\n\n\n\n<p>APRES_CHOI action gets called before executing an action (button, menu, left list, etc.)). A status that defines the action is sent by the supervisor in the RESPONSE variable.<\/p>\n\n\n\n<p>It is possible to short-circuit the normal processing of a button, menu, etc.: This action is used to launch its own processing instead of the template processing, then to put <strong>RESPONSE<\/strong> back to 0.<\/p>\n\n\n\n<p>The various possible values for the RESPONSE\nvariable are given by global variables and various global variables stored the\nvalues of the various actions of button clicks. For example, GSTAENR is used to\nstore Record button action response and so there are different global variables\nwithin X3 which are used for all sorts of buttons to hold their values and all.<\/p>\n\n\n\n<p>AP_CHOIX action is called right after\n&#8220;clicking&#8221; on a button or a menu.<\/p>\n\n\n\n<p>It is used to execute a processing\nafter having &#8220;clicked&#8221; on a button or a menu. In effect, for most of\nthe buttons, the processing has no standard processing. The processing needs to\nbe written in this action. The buttons managed by the template are the\nfollowing:<\/p>\n\n\n\n<p>&#8220;END&#8221;, &#8220;PRINT-OUT&#8221;, &#8220;LIST&#8221;, &#8220;ATTACHMENTS&#8221;, &#8220;COMMENTS&#8221;, &#8220;PROPERTIES&#8221;. <\/p>\n\n\n\n<p>This action takes place before the\nactions on button ( AVANT_BOUTON, BOUTON and AVANT_XXX, XXX ) where XXX\nrepresents the identifier of the predefined button. <\/p>\n\n\n\n<p>This action takes place before the actions on menu (AVANT_MEN, MEN)  The RESPONSE variable contains the status of the button and therefore indicates the button activated by the user and global variables used by buttons to hold the values of their status and response. <\/p>\n\n\n\n\n\n<p>Then in the action handler we can stop\nthe execution of standard functionality when we assign the value GSTARET to the\nvariable RESPONSE. We can replace it with new customized functionality which\nmight be useful.<\/p>\n\n\n\n<p>Once we can make sure that Infbox statement is getting executed when we press \u201cEnter\u201d on screen, we can place something actually useful in its place depending on our needs.<\/p>\n\n\n\n<p>With the help of above steps, you can change the functionality of Enter key.<\/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, enter key has some default functionality for e.g. in some screens it is used to trigger OK button functionality while in grid level it is used to jump on the next line and so on. So, depending on the requirement and screen type Enter key has different types of functionalities. But with\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2020\/08\/25\/how-to-change-enter-key-functionality\/\">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":[4,5,8,10],"tags":[3063,2977],"class_list":["post-20460","post","type-post","status-publish","format-standard","hentry","category-faq","category-features","category-sage-erp-x3","category-standard","tag-enter-key","tag-script"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/20460","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=20460"}],"version-history":[{"count":3,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/20460\/revisions"}],"predecessor-version":[{"id":20468,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/20460\/revisions\/20468"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=20460"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=20460"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=20460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}