{"id":137,"date":"2009-01-23T13:54:00","date_gmt":"2009-01-23T13:54:00","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagemas\/?p=137"},"modified":"2018-10-30T08:59:34","modified_gmt":"2018-10-30T08:59:34","slug":"adding-columns-to-the-sales-order-grid","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagemas\/2009\/01\/23\/adding-columns-to-the-sales-order-grid\/","title":{"rendered":"Adding columns to the Sales order grid"},"content":{"rendered":"<p>Adding columns to the Sales order grid on the <b>&#8216;Enter Sales Order and Quotes&#8217;<\/b> screen in MAS 500 can be challenging work.<\/p>\n<p><a href=\"http:\/\/4.bp.blogspot.com\/_A6_b0zkYeSY\/SXnMXfnXUuI\/AAAAAAAAALU\/-cPDA27tQdU\/s1600-h\/Sales+Order.bmp\"><img decoding=\"async\" id=\"BLOGGER_PHOTO_ID_5294487540946391778\" style=\"display: block; margin: 0px auto 10px; width: 400px; cursor: hand; height: 213px; text-align: center;\" src=\"http:\/\/4.bp.blogspot.com\/_A6_b0zkYeSY\/SXnMXfnXUuI\/AAAAAAAAALU\/-cPDA27tQdU\/s400\/Sales+Order.bmp\" alt=\"\" border=\"0\" \/><\/a><\/p>\n<p>Below we provide instructions and sample code of adding additional columns in the Sales order Grid on the \u2018Enter Sales Order and Quotes&#8217; screen in MAS 500:<\/p>\n<p>You will need to add the &#8216;New Field&#8217; coulmn to &#8216;tsoSOLine&#8217; table and insert records in the following tables:<\/p>\n<ol>\n<li>tsmString<\/li>\n<li>tsmLocalString<\/li>\n<li>tsmCustomGridField<\/li>\n<li>tsmCustomGrid<\/li>\n<\/ol>\n<p>You will also have add code in the source file of Sales Order Entry form.<\/p>\n<p><b><big>Example:<\/big><\/b><\/p>\n<p>Below is the SQL Code user needs to run in SQL Query analyzer against the MAS500 Database to add a column named &#8216;New Field&#8217;.<\/p>\n<ol>\n<li><b>Adding the column to &#8216;tsoSOLine&#8217; table.<\/b><code><span style=\"font-size: 12;\"><br \/>\nALTER TABLE tsoSOLine<br \/>\nADD NewField VARCHAR(30)<\/span><\/code><\/li>\n<li><b>Inserting records in tsmString and tsmLocalString tables for the new field.<\/b><br \/>\nYou need to assign a StringNo to be used for the new field. In our example we shall use a variable called @_lStringNo.<code><span style=\"font-size: 12;\"><br \/>\nDECLARE @_lStringNo INT<br \/>\nSELECT @_lStringNo = 1<\/span><\/code><br \/>\nINSERT INTO tsmString (StringNo, ConstantName) VALUES @_lStringNo, &#8216;kDDUser&#8217;+CONVERT (VARCHAR (10), @_lStringNo ))INSERT INTO tsmLocalString (StringNo, LanguageID, LocalText) VALUES (@_lStringNo , 1033,<strong>&#8216;NewField&#8217;<\/strong>)where,\u2018LocalText\u2019 is the column name.<\/li>\n<li><b>Inserting the records in tsmCustomGridField and tsmCustomGrid tables:<\/b><br \/>\nThe below code is for example purposes only.<code><span style=\"font-size: 12;\"><br \/>\nINSERT INTO tsmCustomGridField (CustomGridFieldKey, CustomGridFieldGroupKey, DisplayOnly, EnterInGridRequired, GridFieldDescStringNo, GridFieldSeqNo, HostFormFieldName, PrimaryCustomGridFieldKey)<br \/>\nVALUES (@_lNextKey, 5, 0, 0, StringNo, 62,<strong>'NewField'<\/strong>, NULL)<\/span><\/code>INSERT INTO tsmCustomGrid (CustomGridKey, CompanyID, CustomGridFieldKey, CustomizationLevel, EnterInGrid, FreezeInGrid, GridSeqNo, UserGroupID, UserID)<br \/>\nVALUES (@_lNextKey, NULL, @_lNextKey, 1, 0, 0, 62, NULL, NULL)<\/li>\n<li><b>Coding in the Sales Order Form:<\/b><br \/>\nYou need to write the code into the following procedures.<\/li>\n<\/ol>\n<ul>\n<li><b>SetupColumns ()<\/b><br \/>\nSet up the column index variables for new field.<\/li>\n<li><b>MapTabControlsToGrid ()<\/b><br \/>\nMap the tab controls to the associated grid column for new field.<\/li>\n<li><b>BindForm ()<\/b><br \/>\nBind the controls to the database i.e Bind New Field control to the &#8216;NewField&#8217;column of &#8216;tsoSOLine&#8217; table.<\/li>\n<li><b>FormatGrid ()<\/b><br \/>\nFormat the column.<\/li>\n<\/ul>\n<p>Hope this helps.<\/p>\n<p>In case of any assistance feel free to contact us at <a href=\"mailto:sage@greytrix.com\">sage@greytrix.com<\/a>.<\/p>\n<p><span style=\"font-size: Medium;\"><strong>About Us<\/strong><\/span><br \/>\n<a href=\"http:\/\/www.greytrix.com\/\">Greytrix<\/a> is a one-stop solution provider for Sage ERP and Sage CRM needs. We provide complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third-party add-on development, and implementation expertise.<\/p>\n<p>Greytrix\u00a0has some unique solutions of\u00a0<a href=\"https:\/\/www.greytrix.com\/product\/sage-crm\/gumu-sage-100-erp-integration\">Sage 100 integration with Sage CRM<\/a>,\u00a0and <a href=\"https:\/\/www.greytrix.com\/product\/sage-100-erp\/gumu-100-salesforce-integration\">Salesforce.com<\/a> along with <a href=\"https:\/\/www.greytrix.com\/product\/sage-100-erp\/sage-50-us-sage-100-migration\">Sage 100 Migration from Sage 50 US<\/a>, <a href=\"https:\/\/www.greytrix.com\/product\/intacct-apps-and-products\/gumu-sage-intacct-sage-100-migration\">Sage Intacct<\/a>, <a href=\"https:\/\/www.greytrix.com\/product\/sage-100-erp\/quickbooks-sage-100-migration\">QuickBooks<\/a>, Sage Business Vision, and Sage Business Works. We also offer best-in-class\u00a0<a href=\"https:\/\/www.greytrix.com\/product\/erp-development\/sage-100-erp\">Sage 100 customization and development services\u00a0<\/a>to Sage business partners, end users, and Sage PSG worldwide.<\/p>\n<p>For more details on Sage 100 Services, please contact us at\u00a0<a href=\"mailto:sage@greytrix.com\">sage@greytrix.com<\/a>. We will be glad to assist you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Adding columns to the Sales order grid on the &#8216;Enter Sales Order and Quotes&#8217; screen in MAS 500 can be challenging work. Below we provide instructions and sample code of adding additional columns in the Sales order Grid on the \u2018Enter Sales Order and Quotes&#8217; screen in MAS 500: You will need to add the\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagemas\/2009\/01\/23\/adding-columns-to-the-sales-order-grid\/\">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":[191,213],"tags":[],"class_list":["post-137","post","type-post","status-publish","format-standard","hentry","category-sales-order","category-tips"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Adding columns to the Sales order grid - GUMU\u2122 Integrations \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\/sagemas\/2009\/01\/23\/adding-columns-to-the-sales-order-grid\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Adding columns to the Sales order grid - GUMU\u2122 Integrations \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"og:description\" content=\"Adding columns to the Sales order grid on the &#8216;Enter Sales Order and Quotes&#8217; screen in MAS 500 can be challenging work. Below we provide instructions and sample code of adding additional columns in the Sales order Grid on the \u2018Enter Sales Order and Quotes&#8217; screen in MAS 500: You will need to add the\u2026 Read More &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.greytrix.com\/blogs\/sagemas\/2009\/01\/23\/adding-columns-to-the-sales-order-grid\/\" \/>\n<meta property=\"og:site_name\" content=\"GUMU\u2122 Integrations \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"article:published_time\" content=\"2009-01-23T13:54:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-10-30T08:59:34+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/4.bp.blogspot.com\/_A6_b0zkYeSY\/SXnMXfnXUuI\/AAAAAAAAALU\/-cPDA27tQdU\/s400\/Sales+Order.bmp\" \/>\n<meta name=\"author\" content=\"greysagemas\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"greysagemas\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagemas\/2009\/01\/23\/adding-columns-to-the-sales-order-grid\/\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/sagemas\/2009\/01\/23\/adding-columns-to-the-sales-order-grid\/\",\"name\":\"Adding columns to the Sales order grid - GUMU\u2122 Integrations \u2013 Tips, Tricks and Components\",\"isPartOf\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagemas\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagemas\/2009\/01\/23\/adding-columns-to-the-sales-order-grid\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagemas\/2009\/01\/23\/adding-columns-to-the-sales-order-grid\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/4.bp.blogspot.com\/_A6_b0zkYeSY\/SXnMXfnXUuI\/AAAAAAAAALU\/-cPDA27tQdU\/s400\/Sales+Order.bmp\",\"datePublished\":\"2009-01-23T13:54:00+00:00\",\"dateModified\":\"2018-10-30T08:59:34+00:00\",\"author\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagemas\/#\/schema\/person\/b57e6e3564a12ef62967850ae0416728\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagemas\/2009\/01\/23\/adding-columns-to-the-sales-order-grid\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.greytrix.com\/blogs\/sagemas\/2009\/01\/23\/adding-columns-to-the-sales-order-grid\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagemas\/2009\/01\/23\/adding-columns-to-the-sales-order-grid\/#primaryimage\",\"url\":\"http:\/\/4.bp.blogspot.com\/_A6_b0zkYeSY\/SXnMXfnXUuI\/AAAAAAAAALU\/-cPDA27tQdU\/s400\/Sales+Order.bmp\",\"contentUrl\":\"http:\/\/4.bp.blogspot.com\/_A6_b0zkYeSY\/SXnMXfnXUuI\/AAAAAAAAALU\/-cPDA27tQdU\/s400\/Sales+Order.bmp\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagemas\/2009\/01\/23\/adding-columns-to-the-sales-order-grid\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.greytrix.com\/blogs\/sagemas\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Adding columns to the Sales order grid\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagemas\/#website\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/sagemas\/\",\"name\":\"GUMU\u2122 Integrations \u2013 Tips, Tricks and Components\",\"description\":\"Welcome to the GUMU\u2122 blog, your one-stop source to gain all the insights on seamless integration solutions for ERP and CRM systems. Developed by Greytrix, GUMU\u2122 is a powerful integration platform that bridges the gap between your business applications. Whether you\u2019re looking to integrate a CRM (Salesforce, Dynamics 365 CRM, and Sage CRM) or an ERP (Sage ERP, Acumatica) with each other or any other third-party application, GUMU\u2122 is a robust and reliable integrator tailored to your unique needs. Join us as we explore the abilities of GUMU\u2122 and learn how it transforms your integration experience. \",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.greytrix.com\/blogs\/sagemas\/?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\/sagemas\/#\/schema\/person\/b57e6e3564a12ef62967850ae0416728\",\"name\":\"greysagemas\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagemas\/#\/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\":\"greysagemas\"},\"url\":\"https:\/\/www.greytrix.com\/blogs\/sagemas\/author\/greysagemas\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Adding columns to the Sales order grid - GUMU\u2122 Integrations \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\/sagemas\/2009\/01\/23\/adding-columns-to-the-sales-order-grid\/","og_locale":"en_US","og_type":"article","og_title":"Adding columns to the Sales order grid - GUMU\u2122 Integrations \u2013 Tips, Tricks and Components","og_description":"Adding columns to the Sales order grid on the &#8216;Enter Sales Order and Quotes&#8217; screen in MAS 500 can be challenging work. Below we provide instructions and sample code of adding additional columns in the Sales order Grid on the \u2018Enter Sales Order and Quotes&#8217; screen in MAS 500: You will need to add the\u2026 Read More &raquo;","og_url":"https:\/\/www.greytrix.com\/blogs\/sagemas\/2009\/01\/23\/adding-columns-to-the-sales-order-grid\/","og_site_name":"GUMU\u2122 Integrations \u2013 Tips, Tricks and Components","article_published_time":"2009-01-23T13:54:00+00:00","article_modified_time":"2018-10-30T08:59:34+00:00","og_image":[{"url":"http:\/\/4.bp.blogspot.com\/_A6_b0zkYeSY\/SXnMXfnXUuI\/AAAAAAAAALU\/-cPDA27tQdU\/s400\/Sales+Order.bmp","type":"","width":"","height":""}],"author":"greysagemas","twitter_card":"summary_large_image","twitter_misc":{"Written by":"greysagemas","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.greytrix.com\/blogs\/sagemas\/2009\/01\/23\/adding-columns-to-the-sales-order-grid\/","url":"https:\/\/www.greytrix.com\/blogs\/sagemas\/2009\/01\/23\/adding-columns-to-the-sales-order-grid\/","name":"Adding columns to the Sales order grid - GUMU\u2122 Integrations \u2013 Tips, Tricks and Components","isPartOf":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagemas\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagemas\/2009\/01\/23\/adding-columns-to-the-sales-order-grid\/#primaryimage"},"image":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagemas\/2009\/01\/23\/adding-columns-to-the-sales-order-grid\/#primaryimage"},"thumbnailUrl":"http:\/\/4.bp.blogspot.com\/_A6_b0zkYeSY\/SXnMXfnXUuI\/AAAAAAAAALU\/-cPDA27tQdU\/s400\/Sales+Order.bmp","datePublished":"2009-01-23T13:54:00+00:00","dateModified":"2018-10-30T08:59:34+00:00","author":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagemas\/#\/schema\/person\/b57e6e3564a12ef62967850ae0416728"},"breadcrumb":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagemas\/2009\/01\/23\/adding-columns-to-the-sales-order-grid\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.greytrix.com\/blogs\/sagemas\/2009\/01\/23\/adding-columns-to-the-sales-order-grid\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.greytrix.com\/blogs\/sagemas\/2009\/01\/23\/adding-columns-to-the-sales-order-grid\/#primaryimage","url":"http:\/\/4.bp.blogspot.com\/_A6_b0zkYeSY\/SXnMXfnXUuI\/AAAAAAAAALU\/-cPDA27tQdU\/s400\/Sales+Order.bmp","contentUrl":"http:\/\/4.bp.blogspot.com\/_A6_b0zkYeSY\/SXnMXfnXUuI\/AAAAAAAAALU\/-cPDA27tQdU\/s400\/Sales+Order.bmp"},{"@type":"BreadcrumbList","@id":"https:\/\/www.greytrix.com\/blogs\/sagemas\/2009\/01\/23\/adding-columns-to-the-sales-order-grid\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.greytrix.com\/blogs\/sagemas\/"},{"@type":"ListItem","position":2,"name":"Adding columns to the Sales order grid"}]},{"@type":"WebSite","@id":"https:\/\/www.greytrix.com\/blogs\/sagemas\/#website","url":"https:\/\/www.greytrix.com\/blogs\/sagemas\/","name":"GUMU\u2122 Integrations \u2013 Tips, Tricks and Components","description":"Welcome to the GUMU\u2122 blog, your one-stop source to gain all the insights on seamless integration solutions for ERP and CRM systems. Developed by Greytrix, GUMU\u2122 is a powerful integration platform that bridges the gap between your business applications. Whether you\u2019re looking to integrate a CRM (Salesforce, Dynamics 365 CRM, and Sage CRM) or an ERP (Sage ERP, Acumatica) with each other or any other third-party application, GUMU\u2122 is a robust and reliable integrator tailored to your unique needs. Join us as we explore the abilities of GUMU\u2122 and learn how it transforms your integration experience. ","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.greytrix.com\/blogs\/sagemas\/?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\/sagemas\/#\/schema\/person\/b57e6e3564a12ef62967850ae0416728","name":"greysagemas","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.greytrix.com\/blogs\/sagemas\/#\/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":"greysagemas"},"url":"https:\/\/www.greytrix.com\/blogs\/sagemas\/author\/greysagemas\/"}]}},"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagemas\/wp-json\/wp\/v2\/posts\/137","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagemas\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagemas\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagemas\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagemas\/wp-json\/wp\/v2\/comments?post=137"}],"version-history":[{"count":2,"href":"https:\/\/www.greytrix.com\/blogs\/sagemas\/wp-json\/wp\/v2\/posts\/137\/revisions"}],"predecessor-version":[{"id":3134,"href":"https:\/\/www.greytrix.com\/blogs\/sagemas\/wp-json\/wp\/v2\/posts\/137\/revisions\/3134"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagemas\/wp-json\/wp\/v2\/media?parent=137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagemas\/wp-json\/wp\/v2\/categories?post=137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagemas\/wp-json\/wp\/v2\/tags?post=137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}