Export data option on BIRT report [message #719136] |
Fri, 26 August 2011 07:26 |
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 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 |
|
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 |
|
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 #719977 is a reply to message #719843] |
Mon, 29 August 2011 15:11 |
|
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 |
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03342 seconds