Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Script code to count the number of report parameters
Script code to count the number of report parameters [message #222053] Fri, 02 March 2007 00:17 Go to next message
Bidyut Pattanayak is currently offline Bidyut PattanayakFriend
Messages: 49
Registered: July 2009
Member
Hi

Is there a way I can get the count of number of report parameters in the
scripting?

I tired "params.length" but it didn't work.

Thanks
Bidyut
Re: Script code to count the number of report parameters [message #222135 is a reply to message #222053] Fri, 02 March 2007 17:19 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

This should be logged as a bug to add a method to the ScriptableParameters
to return the parameter count.
As a work around add the following to your beforeFactory method and then
reference the variable where you need it.
parmCount =
reportContext.getReportRunnable().designHandle.getDesignHand le().getParameters().getCount();


Jason

"Bidyut Pattanayak" <bidyut@yahoo.com> wrote in message
news:65c30c7bdc578c92a3432182ea1@news.eclipse.org...
> Hi
>
> Is there a way I can get the count of number of report parameters in the
> scripting?
>
> I tired "params.length" but it didn't work.
>
> Thanks
> Bidyut
>
>
Re: Script code to count the number of report parameters [message #222154 is a reply to message #222135] Fri, 02 March 2007 18:34 Go to previous messageGo to next message
Bidyut Pattanayak is currently offline Bidyut PattanayakFriend
Messages: 49
Registered: July 2009
Member
Hello Jason,

Thanks. That would work for me.

-Bidyut
> This should be logged as a bug to add a method to the
> ScriptableParameters
> to return the parameter count.
> As a work around add the following to your beforeFactory method and
> then
> reference the variable where you need it.
> parmCount =
> reportContext.getReportRunnable().designHandle.getDesignHand le().getPa
> rameters().getCount();
> Jason
>
> "Bidyut Pattanayak" <bidyut@yahoo.com> wrote in message
> news:65c30c7bdc578c92a3432182ea1@news.eclipse.org...
>
>> Hi
>>
>> Is there a way I can get the count of number of report parameters in
>> the scripting?
>>
>> I tired "params.length" but it didn't work.
>>
>> Thanks
>> Bidyut
Re: Script code to count the number of report parameters [message #1713635 is a reply to message #222135] Thu, 05 November 2015 15:27 Go to previous message
yoovraj khullar is currently offline yoovraj khullarFriend
Messages: 7
Registered: November 2014
Junior Member
Hi Jason

Can i get the parameters passed for the whole report with this

reportContext.getReportRunnable().designHandle.getDesignHandle().getParameters() ?
Previous Topic:Table - layout
Next Topic:Generating letters in PDF format for multiple records
Goto Forum:
  


Current Time: Sat Apr 20 02:43:35 GMT 2024

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

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

Back to the top