Mylene Posted September 26, 2016 Report Share Posted September 26, 2016 Hi, I need to hide the report on "chart and report" datapage. I perform calculations in calculated fields and use them on chart. Is there a way to hide the report, I need to show only chart. Thanks Quote Link to comment Share on other sites More sharing options...
Mathilda Posted September 26, 2016 Report Share Posted September 26, 2016 Hi Mylene, Please try using the following code in the footer of the results page.: <script language="JavaScript" type="text/javascript"> var tables = document.getElementsByTagName("table"); for (i=0; i<tables.length; i++) { if (tables[i].getAttribute("data-cb-name")=="cbTable") tables[i].style.display = "none"; } </script> Also you need to hide record counter, which shows something like: Records 1-30 Edit Style associated with the datapage and change color in the following class: .cbResultSetRecordMessage Please feel free to ask if something is unclear. Quote Link to comment Share on other sites More sharing options...
Mathilda Posted May 9, 2017 Report Share Posted May 9, 2017 I also have another solution. I use the following code in the header of results page: <style>#my table {display:none;} </style> <div id="my"> And in the footer: </div> HTML editor should be disabled in the header and footer. Quote Link to comment Share on other sites More sharing options...
Amaztulela Posted January 3, 2022 Report Share Posted January 3, 2022 On 5/9/2017 at 3:42 PM, Mathilda said: I also have another solution. I use the following code in the header of results page: <style>#my table {display:none;} </style> <div id="my"> And in the footer: </div> HTML editor should be disabled in the header and footer. Hi Mathilda, Just in case others are looking for your second solution, the following works great for responsive datapages: In the header of the results page: <style>#my table {display:none;} </style> </header> <div id="my"> <header> In the footer of the results page: </footer> </div> <footer> HTML editor should be disabled in the header and footer. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.