{"id":14635,"date":"2017-07-24T12:10:15","date_gmt":"2017-07-24T12:10:15","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/?p=14635"},"modified":"2017-07-24T12:10:15","modified_gmt":"2017-07-24T12:10:15","slug":"hide-reports-using-jquery-in-sage-crm","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2017\/07\/24\/hide-reports-using-jquery-in-sage-crm\/","title":{"rendered":"Hide Reports using jQuery in Sage CRM"},"content":{"rendered":"<p><a href=\"http:\/\/www.sagesoftware.co.in\/product-sage-crm\" target=\"_blank\" rel=\"noopener\">Sage CRM<\/a> helps to manage Customer\u2019s critical Sales, Marketing and Service activities on daily basis. Whereas the Reports in <a href=\"http:\/\/www.sagesoftware.co.in\/product-sage-crm\" target=\"_blank\" rel=\"noopener\">Sage CRM<\/a> helps us to view the statistics of data entered in CRM in order to monitor and get an idea about the past or ongoing work; mainly used by the Management staff of an organization. There are different categories available in CRM to view the reports of different entities. But what if you need to restrict or hide some reports which are irrelevant to the Business process?<br \/>\n<em><span style=\"color: #993300;\"><strong>New Stuff<\/strong>:<\/span>\u00a0<\/em><a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2017\/07\/07\/creating-view-in-sage-x3-and-make-it-accessible-through-web-services\/\" target=\"_blank\">Creating View in Sage X3 and make it accessible through Web Services<\/a><br \/>\nIn this blog, we will see that how we can hide the report in CRM using jQuery.<br \/>\nSuppose, you want to hide \u201c<strong>My Communications by Type<\/strong>\u201d report from Communications Category.<br \/>\n<a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2017\/07\/Reports1.jpg\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-large wp-image-14638\" src=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2017\/07\/Reports1-1024x403.jpg\" alt=\"\" width=\"595\" height=\"234\" \/><\/a><br \/>\nFollow the below steps to hide the report.<br \/>\n<strong>1.<\/strong> Write the below code in the js file.<br \/>\ncrm.ready(function()<br \/>\n{<br \/>\nRemoveReport();<br \/>\n});<br \/>\nfunction RemoveReport()<br \/>\n{<br \/>\nvar TB=document.getElementsByClassName(&#8220;CONTENTGRID&#8221;);<br \/>\nif(TB)<br \/>\n{<br \/>\n$(&#8220;tr.reprow1&#8243;).each(function()<br \/>\n{<br \/>\nvar sReport =new String($(this).text());<br \/>\nif(sReport==&#8221;&#8221; || sReport==&#8221;undefined&#8221; || sReport==&#8221;NULL&#8221;)sReport=&#8221;&#8221;;<br \/>\nif(sReport!=&#8221;&#8221;)<br \/>\n{<br \/>\nif(sReport.indexOf(&#8220;My Communications by Type&#8221;)&gt;=0)<br \/>\n{<br \/>\n$(this).remove();<br \/>\n}<br \/>\n}<br \/>\n});<br \/>\n$(&#8220;tr.reprow2&#8243;).each(function()<br \/>\n{<br \/>\nvar sReport =new String($(this).text());<br \/>\nif(sReport==&#8221;&#8221; || sReport==&#8221;undefined&#8221; || sReport==&#8221;NULL&#8221;)sReport=&#8221;&#8221;;<br \/>\nif(sReport!=&#8221;&#8221;)<br \/>\n{<br \/>\nif(sReport.indexOf(&#8220;My Communications by Type&#8221;)&gt;=0)<br \/>\n{<br \/>\n$(this).remove();<br \/>\n}<br \/>\n}<br \/>\n});<br \/>\n}<br \/>\n}<br \/>\n<strong>2.<\/strong> Login to CRM.<br \/>\n<strong>3.<\/strong> Go to <strong>Reports<\/strong> -&gt; <strong>Communications<\/strong> -&gt; Call the JavaScript file in the filter screen available on the Reports Screen as mentioned below.<br \/>\n<a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2017\/07\/Reports2.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-14639\" src=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2017\/07\/Reports2.jpg\" alt=\"\" width=\"867\" height=\"667\" \/><\/a><br \/>\n<em>&lt;script src=&#8217;..\/CustomPages\/Customer\/Reports.js&#8217;&gt;&lt;\/SCRIPT&gt;<\/em><br \/>\n<strong>4.<\/strong> Now, go to the <strong>Reports -&gt; Communications<\/strong>. Remove the browser cookies and refresh the page. You can see that \u201c<strong>My Communications by Type<\/strong>\u201d report is now unseen.<br \/>\n<a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2017\/07\/Reports3.jpg\"><img decoding=\"async\" class=\"aligncenter size-large wp-image-14640\" src=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2017\/07\/Reports3-1024x404.jpg\" alt=\"\" width=\"595\" height=\"235\" \/><\/a><br \/>\n<span style=\"color: #993300;\"><em><strong>Also Read<\/strong>:<\/em><\/span><br \/>\n<strong>1.<\/strong> <a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2017\/03\/31\/remove-all-report-categories-option-from-reports-menu\/\" target=\"_blank\">Remove \u2018All Report Categories\u2019 option from Reports Menu<\/a><br \/>\n<strong>2.<\/strong> <a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2016\/01\/15\/how-to-remove-report-category-from-crm\/\" target=\"_blank\">How to Remove Report Category from CRM?<\/a><br \/>\n<strong>3.<\/strong> <a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2016\/02\/11\/hiding-report-category-for-specific-time\/\" target=\"_blank\">Hiding Report Category for Specific Time<\/a><br \/>\n<strong>4.<\/strong> <a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2017\/01\/30\/display-distinctive-records-in-reports\/\" target=\"_blank\">Display Distinctive Records in Reports<\/a><br \/>\n<strong>5.<\/strong> <a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2016\/01\/18\/restrict-inactive-companies-contacts-when-adding-a-new-case\/\" target=\"_blank\">Restrict Inactive Companies &amp; Contacts when Adding a New Case<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sage CRM helps to manage Customer\u2019s critical Sales, Marketing and Service activities on daily basis. Whereas the Reports in Sage CRM helps us to view the statistics of data entered in CRM in order to monitor and get an idea about the past or ongoing work; mainly used by the Management staff of an organization.\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2017\/07\/24\/hide-reports-using-jquery-in-sage-crm\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[70,201,317,332,1],"tags":[1335,1475,2056,2105],"class_list":["post-14635","post","type-post","status-publish","format-standard","hentry","category-communication","category-jquery","category-report","category-sage-crm","category-uncategorized","tag-hide-reports-using-jquery-in-sage-crm","tag-jquery","tag-sage-crm-communications-report","tag-sage-crm-reports"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Hide Reports using jQuery in Sage CRM - 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\/2017\/07\/24\/hide-reports-using-jquery-in-sage-crm\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hide Reports using jQuery in Sage CRM - Sage CRM \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"og:description\" content=\"Sage CRM helps to manage Customer\u2019s critical Sales, Marketing and Service activities on daily basis. Whereas the Reports in Sage CRM helps us to view the statistics of data entered in CRM in order to monitor and get an idea about the past or ongoing work; mainly used by the Management staff of an organization.\u2026 Read More &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2017\/07\/24\/hide-reports-using-jquery-in-sage-crm\/\" \/>\n<meta property=\"og:site_name\" content=\"Sage CRM \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"article:published_time\" content=\"2017-07-24T12:10:15+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2017\/07\/Reports1-1024x403.jpg\" \/>\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=\"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\/sagecrm\/2017\/07\/24\/hide-reports-using-jquery-in-sage-crm\/\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2017\/07\/24\/hide-reports-using-jquery-in-sage-crm\/\",\"name\":\"Hide Reports using jQuery in Sage CRM - Sage CRM \u2013 Tips, Tricks and Components\",\"isPartOf\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2017\/07\/24\/hide-reports-using-jquery-in-sage-crm\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2017\/07\/24\/hide-reports-using-jquery-in-sage-crm\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2017\/07\/Reports1-1024x403.jpg\",\"datePublished\":\"2017-07-24T12:10:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2017\/07\/24\/hide-reports-using-jquery-in-sage-crm\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2017\/07\/24\/hide-reports-using-jquery-in-sage-crm\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2017\/07\/24\/hide-reports-using-jquery-in-sage-crm\/#primaryimage\",\"url\":\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2017\/07\/Reports1-1024x403.jpg\",\"contentUrl\":\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2017\/07\/Reports1-1024x403.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2017\/07\/24\/hide-reports-using-jquery-in-sage-crm\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hide Reports using jQuery in Sage CRM\"}]},{\"@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":"Hide Reports using jQuery in Sage CRM - 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\/2017\/07\/24\/hide-reports-using-jquery-in-sage-crm\/","og_locale":"en_US","og_type":"article","og_title":"Hide Reports using jQuery in Sage CRM - Sage CRM \u2013 Tips, Tricks and Components","og_description":"Sage CRM helps to manage Customer\u2019s critical Sales, Marketing and Service activities on daily basis. Whereas the Reports in Sage CRM helps us to view the statistics of data entered in CRM in order to monitor and get an idea about the past or ongoing work; mainly used by the Management staff of an organization.\u2026 Read More &raquo;","og_url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2017\/07\/24\/hide-reports-using-jquery-in-sage-crm\/","og_site_name":"Sage CRM \u2013 Tips, Tricks and Components","article_published_time":"2017-07-24T12:10:15+00:00","og_image":[{"url":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2017\/07\/Reports1-1024x403.jpg","type":"","width":"","height":""}],"author":"greysagecrm","twitter_card":"summary_large_image","twitter_misc":{"Written by":"greysagecrm","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2017\/07\/24\/hide-reports-using-jquery-in-sage-crm\/","url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2017\/07\/24\/hide-reports-using-jquery-in-sage-crm\/","name":"Hide Reports using jQuery in Sage CRM - Sage CRM \u2013 Tips, Tricks and Components","isPartOf":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2017\/07\/24\/hide-reports-using-jquery-in-sage-crm\/#primaryimage"},"image":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2017\/07\/24\/hide-reports-using-jquery-in-sage-crm\/#primaryimage"},"thumbnailUrl":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2017\/07\/Reports1-1024x403.jpg","datePublished":"2017-07-24T12:10:15+00:00","author":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f"},"breadcrumb":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2017\/07\/24\/hide-reports-using-jquery-in-sage-crm\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.greytrix.com\/blogs\/sagecrm\/2017\/07\/24\/hide-reports-using-jquery-in-sage-crm\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2017\/07\/24\/hide-reports-using-jquery-in-sage-crm\/#primaryimage","url":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2017\/07\/Reports1-1024x403.jpg","contentUrl":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2017\/07\/Reports1-1024x403.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2017\/07\/24\/hide-reports-using-jquery-in-sage-crm\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/"},{"@type":"ListItem","position":2,"name":"Hide Reports using jQuery in Sage CRM"}]},{"@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\/14635","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=14635"}],"version-history":[{"count":0,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/posts\/14635\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/media?parent=14635"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/categories?post=14635"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/tags?post=14635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}