Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 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 03:26 Go to next message
Gaurav  is currently offline Gaurav
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 03: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 10:30 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
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 14:08 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
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 03:42 Go to previous messageGo to next message
Gaurav  is currently offline Gaurav
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 04:01 Go to previous messageGo to next message
Gaurav  is currently offline Gaurav
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 04:01 Go to previous messageGo to next message
Gaurav is currently offline Gaurav
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 11:11 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
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 11:11 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
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 08:46 Go to previous message
Gaurav  is currently offline Gaurav
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: Sun Aug 31 04:25:30 EDT 2014

Powered by FUDForum. Page generated in 0.01808 seconds