{"id":92,"date":"2012-01-20T07:36:09","date_gmt":"2012-01-20T07:36:09","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagex3\/?p=92"},"modified":"2020-05-26T12:31:57","modified_gmt":"2020-05-26T12:31:57","slug":"creating-a-dynamic-selection-window-in-sage-erp-x3","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2012\/01\/20\/creating-a-dynamic-selection-window-in-sage-erp-x3\/","title":{"rendered":"Creating a Dynamic Selection Window in Sage X3"},"content":{"rendered":"<p>Suppose we need to create a screen comprising a selection text which will dynamically fetch the data from different tables in Sage X3.<br \/>Let us proceed with an example as stated below:<\/p>\n<p>The screenshot shown below consists of an option named \u201cThen by\u201d which comprises four different selection options. Each time this option changes, the \u201cFrom\u201d and \u201cTo\u201d selection lookup should have the respective selection data.<br \/>For e.g. whenever the <strong>Vendor Number<\/strong> is selected the \u201cFrom\u201d and \u201cTo\u201d text should display the Vendor Numbers, whereas, if the option is selected as Nature of Deduction Code the selection window should have Nature of Deduction in \u201cFrom\u201d and \u201cTo\u201d columns.<\/p>\n<p><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2012\/01\/CreateRemittance.bmp\" target=\"_blank\" rel=\"noopener noreferrer\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-93 size-full\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2012\/01\/CreateRemittance.bmp\" alt=\"\" width=\"795\" height=\"330\" \/><\/a><\/p>\n<p>To achieve this we have created an action code for that respective field as follows:<br \/><strong><span style=\"text-decoration: underline;\">Path<\/span>: Development&gt;Process&gt;Action.<\/strong><\/p>\n<p><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2012\/01\/Action.bmp\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-94\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2012\/01\/Action.bmp\" alt=\"\" \/><\/a><br \/>Thus, action code is created by the name DOCTYPSEL which consists of CNSDOCSEL as its Standard Process file and DOCTYPSEL as its Action Identifier<\/p>\n<p>Standard Process file consists of the following code:<\/p>\n<p>The SEL_TABLE is the action triggered when we select the data from any table, i.e. when, any user right clicks on the respective text field where selection event is present.<\/p>\n<p>$ACTION<br \/>When &#8220;DOCTYPSEL&#8221;:<br \/>Case ACTION<br \/>When &#8220;SEL_TABLE&#8221;: Gosub SEL_TABLE<br \/>Endcase<br \/>Endcase<br \/>Return<\/p>\n<p>As seen in the code above, the action intern calls the procedure SEL_TABLE<br \/>program:<\/p>\n<p>$SEL_TABLE<br \/>Case TABLE<br \/>When \u201cDOCTYPSEL\u201d: Gosub S_SELPIA<br \/>Endcase<br \/>Return<\/p>\n<p>The above code calls a subprogram by name S_SELPIA.<\/p>\n<p>$S_SELPIA<br \/>Local Decimal WTYP\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : WTYP = Val (PARAM (1))<br \/>Local Char\u00a0\u00a0\u00a0\u00a0 WNUM (GLONVCR): WNUM = VALEUR<br \/>TIT (0)\u00a0 = mess(18,100,1)<br \/>CRITERE = &#8220;1=1&#8221;<br \/>Case [M] VCRTYPSEL<br \/>When 1:<br \/>If!clalev([F:BPS]) : Local File BPSUPPLIER\u00a0 [BPS] : End if<br \/>Default File [BPS]GSELFAC = 1<br \/>OBJET\u00a0\u00a0 = &#8220;BPS&#8221;<br \/>Filter [F: BPS]CRITERE = &#8220;BPSTYP=1&#8221;<br \/>When 2:<br \/>\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026<br \/>Endcase<br \/>SENS\u00a0\u00a0\u00a0 = 1<br \/>VALEUR = WNUM<br \/>DEFPAG = 1<br \/>Return<br \/>As seen in the above code, the program works on different case statements for each selected parameter.<\/p>\n<p>The following screenshot will give us a better understanding:<\/p>\n<p><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2012\/01\/SelectionWindow.bmp\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-95\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2012\/01\/SelectionWindow.bmp\" alt=\"\" \/><\/a><br \/>Thus, whenever the <strong>Vendor Number<\/strong> field is selected, the Selection window would display Vendor Numbers. similarly, if the <strong>Nature of Deduction<\/strong> is selected, it would thus select the Nature of Deduction data in Sage X3 [as seen in the above image].<\/p>\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>Suppose we need to create a screen comprising a selection text which will dynamically fetch the data from different tables in Sage X3.Let us proceed with an example as stated below: The screenshot shown below consists of an option named \u201cThen by\u201d which comprises four different selection options. Each time this option changes, the \u201cFrom\u201d\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2012\/01\/20\/creating-a-dynamic-selection-window-in-sage-erp-x3\/\">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":[8],"tags":[525,646,2376],"class_list":["post-92","post","type-post","status-publish","format-standard","hentry","category-sage-erp-x3","tag-deduction","tag-dynamic","tag-vendor"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/92","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/comments?post=92"}],"version-history":[{"count":4,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/92\/revisions"}],"predecessor-version":[{"id":19902,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/92\/revisions\/19902"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=92"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=92"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=92"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}