Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Export data option on BIRT report(Export data option on BIRT report)
Export data option on BIRT report [message #719136] Fri, 26 August 2011 07:26 Go to next message
Gaurav  is currently offline Gaurav Friend
Messages: 20
Registered: June 2011
Junior Member
Hey Jason

In my application, I have a tabular report with visibility rules applied on, by virtue of which a few columns of the table are hidden for a particular group of users.

Now, when this group of users try to use the export data option on the frameset,they are able to view these hidden columns on the export data dialog box.

Is there a way to restrict them from viewing/exporting these columns?

Thanks much in anticipation.

Best Regards
Gaurav

[Updated on: Fri, 26 August 2011 07:27]

Report message to a moderator

Re: Export data option on BIRT report [message #719264 is a reply to message #719136] Fri, 26 August 2011 14:30 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Gaurav,

There is an advanced property called allow export that can be set to
true or false for a table. If you want this to be decided at run time
you can name the table and then do something like the following in the
beforeFactory:

reportContext.getDesignHandle().findElement("mytable").setProperty("allowExport",
false);

Jason

On 8/26/2011 3:26 AM, Gaurav wrote:
> Hey Jason
>
> In my application, I have a tabular report with visibility rules applied
> on, by virtue of which a few columns of the table are hidden for a
> particular group of users.
>
> Now, when this group of users try to use the export data option on the
> frameset, I want to restrict them from viewing/exporting these columns.
>
> Is there a way to achieve this?
> Thanks much in anticipation.
>
> Best Regards
> Gaurav
Re: Export data option on BIRT report [message #719330 is a reply to message #719264] Fri, 26 August 2011 18:08 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

I just wrote up a quick blog post on this feature:
http://birtworld.blogspot.com/2011/08/birt-viewer-export-data.html

Jason

On 8/26/2011 10:30 AM, Jason Weathersby wrote:
> Gaurav,
>
> There is an advanced property called allow export that can be set to
> true or false for a table. If you want this to be decided at run time
> you can name the table and then do something like the following in the
> beforeFactory:
>
> reportContext.getDesignHandle().findElement("mytable").setProperty("allowExport",
> false);
>
> Jason
>
> On 8/26/2011 3:26 AM, Gaurav wrote:
>> Hey Jason
>>
>> In my application, I have a tabular report with visibility rules applied
>> on, by virtue of which a few columns of the table are hidden for a
>> particular group of users.
>>
>> Now, when this group of users try to use the export data option on the
>> frameset, I want to restrict them from viewing/exporting these columns.
>>
>> Is there a way to achieve this?
>> Thanks much in anticipation.
>>
>> Best Regards
>> Gaurav
>
Re: Export data option on BIRT report [message #719839 is a reply to message #719330] Mon, 29 August 2011 07:42 Go to previous messageGo to next message
Gaurav  is currently offline Gaurav Friend
Messages: 20
Registered: June 2011
Junior Member
Hey Jason

Thanks a ton. Will have a look and get back if any questions.

Best Regards
Gaurav
Re: Export data option on BIRT report [message #719843 is a reply to message #719839] Mon, 29 August 2011 08:01 Go to previous messageGo to next message
Gaurav  is currently offline Gaurav Friend
Messages: 20
Registered: June 2011
Junior Member
Hey Jason,

Would this solution work if I need to hide specific column bindings instead of the entire result set?

Thanks and Regards
Gaurav
(no subject) [message #719848 is a reply to message #719839] Mon, 29 August 2011 08:01 Go to previous messageGo to next message
Gaurav is currently offline GauravFriend
Messages: 3
Registered: July 2009
Junior Member
Hey Jason,

Would this solution work if I need to hide specific column bindings instead of the entire result set?

Thanks and Regards
Gaurav
Re: Export data option on BIRT report [message #719977 is a reply to message #719843] Mon, 29 August 2011 15:11 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Not using the approach I blogged about. You could do in by editing the
JavaScript that is used to build the export data dialog. Others have
named the columns with a specific prefix that can be used to cull it out
of the list when the columns are added to the dialog.

Jason

On 8/29/2011 4:01 AM, Gaurav wrote:
> Hey Jason,
>
> Would this solution work if I need to hide specific column bindings
> instead of the entire result set?
>
> Thanks and Regards
> Gaurav
Re: Export data option on BIRT report [message #719979 is a reply to message #719843] Mon, 29 August 2011 15:11 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Not using the approach I blogged about. You could do in by editing the
JavaScript that is used to build the export data dialog. Others have
named the columns with a specific prefix that can be used to cull it out
of the list when the columns are added to the dialog.

Jason

On 8/29/2011 4:01 AM, Gaurav wrote:
> Hey Jason,
>
> Would this solution work if I need to hide specific column bindings
> instead of the entire result set?
>
> Thanks and Regards
> Gaurav
Re: Export data option on BIRT report [message #720890 is a reply to message #719977] Wed, 31 August 2011 12:46 Go to previous message
Gaurav  is currently offline Gaurav Friend
Messages: 20
Registered: June 2011
Junior Member
Yes sure , will try and let you know.

Best Regards
Gaurav
Previous Topic:problem with large html in text element
Next Topic:French Characters in HTML report
Goto Forum:
  


Current Time: Sat Apr 27 01:49:15 GMT 2024

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

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

Back to the top