Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Problem with syntax trying to pass parameter to Java Object
Problem with syntax trying to pass parameter to Java Object [message #490746] Sat, 10 October 2009 02:09 Go to next message
Richard Catlin is currently offline Richard CatlinFriend
Messages: 50
Registered: July 2009
Member
This code does not properly pass the IntegerParameter to the Java
method, which is expecting an Integer. When I replace
params["IntegerParameter"] with a number it works.

count = 0;

sizingQuery = new Packages.com.oracle.esg.sizing.edit.query.SizingQuery();

choices = sizingQuery.getChoice(params["IntegerParameter"]);

This is the same syntax as mentioned in this post:
http://stackoverflow.com/questions/1473844/accessing-paramet ers-when-writing-a-scripted-birt-data-source-in-java

Richard
Re: Problem with syntax trying to pass parameter to Java Object [message #490966 is a reply to message #490746] Mon, 12 October 2009 15:39 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Richard

try
choices = sizingQuery.getChoice(parseInt(params["IntegerParameter"].value));

or just create an Integer like

importPackage(Packages.java.lang)
myint = new Integer(params["IntegerParameter"].value);

Jason

Richard Catlin wrote:
> This code does not properly pass the IntegerParameter to the Java
> method, which is expecting an Integer. When I replace
> params["IntegerParameter"] with a number it works.
>
> count = 0;
>
> sizingQuery = new Packages.com.oracle.esg.sizing.edit.query.SizingQuery();
>
> choices = sizingQuery.getChoice(params["IntegerParameter"]);
>
> This is the same syntax as mentioned in this post:
> http://stackoverflow.com/questions/1473844/accessing-paramet ers-when-writing-a-scripted-birt-data-source-in-java
>
>
> Richard
Previous Topic:problem with BIRT installation on top od zend studio for eclipse on ubuntu
Next Topic:ReportScripting in BIRT 2.2.1 : Problem with the evaluation of an Expression
Goto Forum:
  


Current Time: Thu Apr 25 14:46:35 GMT 2024

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

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

Back to the top