Skip to main content



      Home
Home » Archived » BIRT » Dynamic parameter properties
Dynamic parameter properties [message #757572] Sat, 19 November 2011 10:51 Go to next message
Eclipse UserFriend
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
Eclipse UserFriend
180 views and no help? I thought this would be pretty standard. Any help please?

[Updated on: Mon, 21 November 2011 12:46] by 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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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] by 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
Eclipse UserFriend
5
Re: Dynamic parameter properties [message #758311 is a reply to message #758119] Tue, 22 November 2011 12:04 Go to previous message
Eclipse UserFriend
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 Jul 23 02:10:23 EDT 2025

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

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

Back to the top