Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Dynamic parameter properties
Dynamic parameter properties [message #757572] Sat, 19 November 2011 10:51 Go to next message
Missing name Missing name is currently offline Missing name Missing name
Messages: 11
Registered: November 2011
Junior Member
Is there a way to dynamically change some of the properties of a parameter?
For example, I want to be able to change the value of the property "Is required" on one of my parameters.

This is because I only want parameter B to be required if parameter A != a certain value.

More specifically, I would like to do something like this..

var paramValue = reportContext.getParameterValue("ImpactAssessmentType"); //report parameter

if (paramValue == "(Show All)") // if 'Show All' was selected
{
        ii = -1;
        // change param2's "Is required" property to false
}
else
        ii = 0;
        // leave param2's "Is required" property alone
Re: Dynamic parameter properties [message #757577 is a reply to message #757572] Sat, 19 November 2011 14:54 Go to previous messageGo to next message
Missing name Missing name is currently offline Missing name Missing name
Messages: 11
Registered: November 2011
Junior Member
180 views and no help? I thought this would be pretty standard. Any help please?

[Updated on: Mon, 21 November 2011 12:46]

Report message to a moderator

Re: Dynamic parameter properties [message #757841 is a reply to message #757577] Mon, 21 November 2011 13:48 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

You can change parameters before the report is opened in the viewer, but
once it is opened the viewer will initiate the parameter dialog and it
is to late to change the values. You may be able to use a custom
parameter page using the BIRT tag libraries and some script to implement
a custom page to do this.

http://birtworld.blogspot.com/2007/09/22-birt-tag-library-building-custom.html

Jason

On 11/19/2011 2:54 PM, redviper8 wrote:
> 180 views and no help? I thought this would be pretty standard.
Re: Dynamic parameter properties [message #758119 is a reply to message #757841] Mon, 21 November 2011 18:28 Go to previous messageGo to next message
Missing name Missing name is currently offline Missing name Missing name
Messages: 11
Registered: November 2011
Junior Member
Hmm ok, maybe something that should be added to BIRT, seems like other people would want to do this too. Thanks.
Re: Dynamic parameter properties [message #758120 is a reply to message #758119] Mon, 21 November 2011 18:29 Go to previous messageGo to next message
Missing name Missing name is currently offline Missing name Missing name
Messages: 11
Registered: November 2011
Junior Member
Sorry trying to get the 5 posts so i can post an image in a different thread.

[Updated on: Mon, 21 November 2011 18:29]

Report message to a moderator

Re: Dynamic parameter properties [message #758121 is a reply to message #758120] Mon, 21 November 2011 18:29 Go to previous messageGo to next message
Missing name Missing name is currently offline Missing name Missing name
Messages: 11
Registered: November 2011
Junior Member
5
Re: Dynamic parameter properties [message #758311 is a reply to message #758119] Tue, 22 November 2011 12:04 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Can you open a bugzilla request for this?

Jason

On 11/21/2011 6:28 PM, redviper8 wrote:
> Hmm ok, maybe something that should be added to BIRT, seems like other
> people would want to do this too. Thanks.
Previous Topic:Embedding a datasource in the rptdesign file?
Next Topic:Cannot open connection
Goto Forum:
  


Current Time: Wed Aug 27 23:17:51 EDT 2014

Powered by FUDForum. Page generated in 0.03614 seconds