Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » How to set the report version property ?
icon5.gif  How to set the report version property ? [message #775882] Fri, 06 January 2012 21:30 Go to next message
Alessio Pollero is currently offline Alessio PolleroFriend
Messages: 66
Registered: August 2011
Member
I have noticed that the ReportDesignHandle class has the property version that i can retrieve with the method getVersion() , and could be useful to give a version to a deployed report.

The code that i use to retrieve the version is like the following :

ReportDesignHandle reportDesign = ...
String version = reportDesign.getVersion();


The question is : where can i set the version number of the report in the report designer ? i Can't find where the property can be set ...


Thanks.
Re: How to set the report version property ? [message #776957 is a reply to message #775882] Mon, 09 January 2012 15:34 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

This is the BIRT Version of the report. If you look at the xml view it
will be in the second line:
<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.22"
id="1">

I do not think you can set it, unless you do it manually. The designer
writes this in the report and the viewer checks the version before
running a report. If the version is newer than the version of the
viewer it will not run the report.

Jason

On 1/6/2012 4:30 PM, Alessio Pollero wrote:
> I have noticed that the ReportDesignHandle class has the property
> version that i can retrieve with the method getVersion() , and could be
> useful to give a version to a deployed report.
>
> The code that i use to retrieve the version is like the following :
>
> ReportDesignHandle reportDesign = ...
> String version = reportDesign.getVersion();
>
> The question is : where can i set the version number of the report in
> the report designer ? i Can't find where the property can be set ...
>
>
> Thanks.
Re: How to set the report version property ? [message #777104 is a reply to message #776957] Mon, 09 January 2012 22:08 Go to previous messageGo to next message
Alessio Pollero is currently offline Alessio PolleroFriend
Messages: 66
Registered: August 2011
Member
Is there a way to set a version of my report ? for example i want to tag it with a release number, so for example i want to assign a version to a report (for example 1.0) and show that version on my own application that execute the report, so the user can know what version of the report he is running, and if there is an update available. Is it possible ?

I don't want to know the version of the XML file, but the version that i got to the report. I want to release a report in the same way that i release a standard application, so there should be the chance to set the report version to distinguish the report. So when i change something in the report definition i will change the version number and the user will receive the report as an update ...

Report version it is not a planned feature ?


Thanks.
Re: How to set the report version property ? [message #777163 is a reply to message #777104] Tue, 10 January 2012 00:29 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Can you not just put the version in the description or comment field?
You could also use the Title or Display name field. All of these are
accessible with the report design handle and in the designer.

Jason

On 1/9/2012 5:08 PM, Alessio Pollero wrote:
> Is there a way to set a version of my report ? for example i want to tag
> it with a release number, so for example i want to assign a version to a
> report (for example 1.0) and show that version on my own application
> that execute the report, so the user can know what version of the report
> he is running, and if there is an update available. Is it possible ?
>
> I don't want to know the version of the XML file, but the version that i
> got to the report. I want to release a report in the same way that i
> release a standard application, so there should be the chance to set the
> report version to distinguish the report. So when i change something in
> the report definition i will change the version number and the user will
> receive the report as an update ...
>
> Report version it is not a planned feature ?
>
>
> Thanks.
Previous Topic:[Embedded Birt] : Migration to 3.7
Next Topic:Changing the source
Goto Forum:
  


Current Time: Fri Dec 19 09:38:44 GMT 2014

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

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