Jump to content

Hide report on chart and report datapage


Recommended Posts

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.

 

Link to comment
Share on other sites

  • 7 months later...
  • 4 years later...
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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...