{"id":7707,"date":"2014-04-29T05:27:30","date_gmt":"2014-04-29T05:27:30","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/?p=7707"},"modified":"2014-04-29T05:27:30","modified_gmt":"2014-04-29T05:27:30","slug":"sage-crm-7-2-client-side-api-adding-columns-to-list-at-runtime","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/04\/29\/sage-crm-7-2-client-side-api-adding-columns-to-list-at-runtime\/","title":{"rendered":"Sage CRM 7.2 Client Side API Adding columns to List at Runtime"},"content":{"rendered":"<p>Sage CRM 7.2 introduced a new powerful and simple way to use API for carrying out client side customizations. In my previous blog I had explained how we can hide and show fields using Client side API. \u00a0Below is the link for the same.<br \/>\n<a title=\"New way of Client side field customizations\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/11\/05\/new-way-client-side-field-customizations\/\" target=\"_blank\">New way of Client side field customizations<\/a><br \/>\nIn this blog I will explain how we can add new column to the list block at runtime using Client Side API.<br \/>\n<span style=\"color: #993300;\"><em><strong>The New Stuff:<\/strong><\/em><\/span><a title=\"User Administration and Info Admin Rights\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/04\/25\/user-administration-and-info-admin-rights\/\" target=\"_blank\">User Administration and Info Admin Rights<\/a><br \/>\nSuppose we want to add \u201c<b>Lead Source<\/b>\u201d column on the lead list in <b>MY CRM<\/b> Leads tab at runtime. We can achieve the same by using \u201c<b>addColumn<\/b>\u201d method of Client Side API. To do the same follow below steps.<br \/>\n1. Login to CRM.<br \/>\n2. Go to <b>Administration || Customization || Lead || Lists<\/b><br \/>\n3. Click on hyperlink of \u201c<b>Lead List<\/b>\u201d.<br \/>\n4. In the Custom Content write below code and save.<br \/>\n\u00a0<i>&lt;script&gt;<\/i><br \/>\n<i>crm.ready(function()<\/i><br \/>\n<i>{<\/i><br \/>\n<i>crm.grids(&#8220;0&#8221;).addColumn({index:0,columnName: &#8220;<b> <\/b>Lead Source&#8221;});<\/i><br \/>\n<i>})<\/i><br \/>\n<i>&lt;\/script&gt;<\/i><br \/>\nThe \u201c<b>addColumn<\/b>\u201d method has following 2 parameters.<br \/>\n<b>1. Index<\/b>: Specifies the position to insert the column.<br \/>\n<b>2 .columnName<\/b>: A string containing the name of the column.<br \/>\n\u00a0Happy Scripting!<br \/>\n<span style=\"color: #993300;\"><em><strong>Also Read:<\/strong><\/em><\/span><br \/>\n1) <a title=\"SageCRM 7.2 URL parameters through Client Side API\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/04\/11\/sagecrm-7-2-url-parameters-through-client-side-api\/\" target=\"_blank\">SageCRM 7.2 URL parameters through Client Side API<\/a><br \/>\n2) <a title=\"Getting key value to be added in URL from client side script\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2011\/06\/09\/getting-key-value-to-be-added-in-url-from-client-side-script\/\" target=\"_blank\">Getting key value to be added in URL from client side script<\/a><br \/>\n3) <a title=\"Handling URL\u2019s in COM API part 1\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2011\/01\/07\/handling-urls-in-com-api-part-1\/\" target=\"_blank\">Handling URL\u2019s in COM API part 1<\/a><br \/>\n4) <a title=\"Handling URL\u2019s in COM API part 2\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2011\/01\/14\/handling-urls-in-com-api-part-2\/\" target=\"_blank\">Handling URL\u2019s in COM API part 2<\/a><br \/>\n5) <a title=\"XML based Fusion Charts using .NET API\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/02\/01\/xml-based-fusion-charts-using-net-api\/\" target=\"_blank\">XML based Fusion Charts using .NET API<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sage CRM 7.2 introduced a new powerful and simple way to use API for carrying out client side customizations. In my previous blog I had explained how we can hide and show fields using Client side API. \u00a0Below is the link for the same. New way of Client side field customizations In this blog I\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/04\/29\/sage-crm-7-2-client-side-api-adding-columns-to-list-at-runtime\/\">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":[83,93,155,219,220,326,332,337,1],"tags":[512,685,1532,1956,2033],"class_list":["post-7707","post","type-post","status-publish","format-standard","hentry","category-crm72","category-custom-fields","category-fields","category-list","category-lists","category-runtime","category-sage-crm","category-sage-crm-7-2","category-uncategorized","tag-add-column","tag-client-side-api","tag-list","tag-runtime","tag-sage-crm-7-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Sage CRM 7.2 Client Side API Adding columns to List at Runtime - Sage CRM \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\/sagecrm\/2014\/04\/29\/sage-crm-7-2-client-side-api-adding-columns-to-list-at-runtime\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Sage CRM 7.2 Client Side API Adding columns to List at Runtime - Sage CRM \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"og:description\" content=\"Sage CRM 7.2 introduced a new powerful and simple way to use API for carrying out client side customizations. In my previous blog I had explained how we can hide and show fields using Client side API. \u00a0Below is the link for the same. New way of Client side field customizations In this blog I\u2026 Read More &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/04\/29\/sage-crm-7-2-client-side-api-adding-columns-to-list-at-runtime\/\" \/>\n<meta property=\"og:site_name\" content=\"Sage CRM \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"article:published_time\" content=\"2014-04-29T05:27:30+00:00\" \/>\n<meta name=\"author\" content=\"greysagecrm\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"greysagecrm\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/04\/29\/sage-crm-7-2-client-side-api-adding-columns-to-list-at-runtime\/\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/04\/29\/sage-crm-7-2-client-side-api-adding-columns-to-list-at-runtime\/\",\"name\":\"Sage CRM 7.2 Client Side API Adding columns to List at Runtime - Sage CRM \u2013 Tips, Tricks and Components\",\"isPartOf\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website\"},\"datePublished\":\"2014-04-29T05:27:30+00:00\",\"author\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/04\/29\/sage-crm-7-2-client-side-api-adding-columns-to-list-at-runtime\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/04\/29\/sage-crm-7-2-client-side-api-adding-columns-to-list-at-runtime\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/04\/29\/sage-crm-7-2-client-side-api-adding-columns-to-list-at-runtime\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Sage CRM 7.2 Client Side API Adding columns to List at Runtime\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/\",\"name\":\"Sage CRM \u2013 Tips, Tricks and Components\",\"description\":\"Explore the possibilities with Sage CRM insights through our comprehensive blogs. As a leading Sage partner, Greytrix helps businesses maximize their Sage CRM potential with its rich expertise and immense knowledge. Here, you will find blogs that feature expert advice, tips &amp; tricks, best practices, and comprehensive guides on customizing and configuring Sage CRM for your business. Stay informed with our regular updates and expert insights!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/?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\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f\",\"name\":\"greysagecrm\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/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\":\"greysagecrm\"},\"url\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/author\/greysagecrm\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Sage CRM 7.2 Client Side API Adding columns to List at Runtime - Sage CRM \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\/sagecrm\/2014\/04\/29\/sage-crm-7-2-client-side-api-adding-columns-to-list-at-runtime\/","og_locale":"en_US","og_type":"article","og_title":"Sage CRM 7.2 Client Side API Adding columns to List at Runtime - Sage CRM \u2013 Tips, Tricks and Components","og_description":"Sage CRM 7.2 introduced a new powerful and simple way to use API for carrying out client side customizations. In my previous blog I had explained how we can hide and show fields using Client side API. \u00a0Below is the link for the same. New way of Client side field customizations In this blog I\u2026 Read More &raquo;","og_url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/04\/29\/sage-crm-7-2-client-side-api-adding-columns-to-list-at-runtime\/","og_site_name":"Sage CRM \u2013 Tips, Tricks and Components","article_published_time":"2014-04-29T05:27:30+00:00","author":"greysagecrm","twitter_card":"summary_large_image","twitter_misc":{"Written by":"greysagecrm","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/04\/29\/sage-crm-7-2-client-side-api-adding-columns-to-list-at-runtime\/","url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/04\/29\/sage-crm-7-2-client-side-api-adding-columns-to-list-at-runtime\/","name":"Sage CRM 7.2 Client Side API Adding columns to List at Runtime - Sage CRM \u2013 Tips, Tricks and Components","isPartOf":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website"},"datePublished":"2014-04-29T05:27:30+00:00","author":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f"},"breadcrumb":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/04\/29\/sage-crm-7-2-client-side-api-adding-columns-to-list-at-runtime\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/04\/29\/sage-crm-7-2-client-side-api-adding-columns-to-list-at-runtime\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/04\/29\/sage-crm-7-2-client-side-api-adding-columns-to-list-at-runtime\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/"},{"@type":"ListItem","position":2,"name":"Sage CRM 7.2 Client Side API Adding columns to List at Runtime"}]},{"@type":"WebSite","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website","url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/","name":"Sage CRM \u2013 Tips, Tricks and Components","description":"Explore the possibilities with Sage CRM insights through our comprehensive blogs. As a leading Sage partner, Greytrix helps businesses maximize their Sage CRM potential with its rich expertise and immense knowledge. Here, you will find blogs that feature expert advice, tips &amp; tricks, best practices, and comprehensive guides on customizing and configuring Sage CRM for your business. Stay informed with our regular updates and expert insights!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/?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\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f","name":"greysagecrm","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/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":"greysagecrm"},"url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/author\/greysagecrm\/"}]}},"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/posts\/7707","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/comments?post=7707"}],"version-history":[{"count":0,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/posts\/7707\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/media?parent=7707"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/categories?post=7707"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/tags?post=7707"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}