Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » disable csv export in a specific birt report(disable csv export in a specific birt report)
disable csv export in a specific birt report [message #1415450] Tue, 02 September 2014 20:29 Go to next message
marcela f is currently offline marcela fFriend
Messages: 1
Registered: September 2014
Junior Member
Hello people,

I'm trying, with no success, to disable the option "export data".
The custumer tried to export a crosstab and it does not work, so I need to disable the option and show a message like "this report does not export data".

If you help me I will be grateful forever! Smile
Re: disable csv export in a specific birt report [message #1417700 is a reply to message #1415450] Fri, 05 September 2014 22:40 Go to previous message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

You could put this in a HTML text in the reports you don't want the data export in and it'd hide the export data option:

<script>
var tb = document.getElementById("toolbar"),
	t = tb.getElementsByTagName("table")[0],
    r = t.getElementsByTagName("tr")[1],
    d = r.getElementsByTagName("td");
    d[5].style.display="none";
    d[6].style.display="none";
</script>


It may not be the best solution, but it should work. Smile


Michael

Developer Evangelist, Silanis
Previous Topic:Getting Resources from Shared Resources at runtime
Next Topic:Query works in Oracle but gives an error in the report desginer
Goto Forum:
  


Current Time: Fri Apr 26 19:12:45 GMT 2024

Powered by FUDForum. Page generated in 0.02995 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top