Number parameter (type) submission to JasperReports

Questions and answers on developing, deploying and using plugins and JavaBeans

Number parameter (type) submission to JasperReports

Postby imre_tokai » Thu Apr 21, 2016 6:25 pm

Hello,

.jrxml code base properly accepts numbers submitted by Servoy6 project, but with Basic_Servoy_JasperReports_Plugin_v.6.0.0.zip + Servoy8 number parameters require type cast work-around?
https://www.servoyforge.net/issues/1015

Regards
Imre Tokai, Software Engineer
iTech Professionals, Inc.
User avatar
imre_tokai
 
Posts: 32
Joined: Mon Mar 26, 2012 12:18 pm

Re: Number parameter (type) submission to JasperReports

Postby Gabi Boros » Tue Apr 26, 2016 10:44 am

hi,

I did some tests with passing a global integer as param to jasper, like :
Code: Select all
plugins.jasperPluginRMI.runReport(ds,"report1.jrxml", null, plugins.jasperPluginRMI.OUTPUT_FORMAT.VIEW, {age: globals.age});

and then, declared the param in the jrxml like a java.lang.Integer, using it to output and it did worked ...

can you give us a sample with the issue, so we can see exactly how that param is used in the jrxml (I guess it is used for filtering ?), and maybe also the db.
you may create a case for that in the Servoy support system
Gabi Boros
Servoy
Gabi Boros
 
Posts: 317
Joined: Tue Jun 26, 2007 4:03 pm
Location: Timisoara, Romania

Re: Number parameter (type) submission to JasperReports

Postby Harjo » Tue Apr 26, 2016 10:49 am

that type cast issue, seems to return always in point of time..
We have always used (and still use) hashmaps, because that never failed!
Harjo Kompagnie
Direct ICT / Servoy Hosting / ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
User avatar
Harjo
 
Posts: 4269
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Number parameter (type) submission to JasperReports

Postby imre_tokai » Tue May 17, 2016 1:29 pm

Thanks Gabi & Harjo,

In Servoy 8 developer, changed the plugin to 4.-like version, same that's used with Servoy 6.1, but same type cast problem remains. So implication is that this problem is not with plugin but with slight type upgrade in Servoy 8's MSSQL DB interpretation, that causes incompatibility, as far as I see.

Now changed back to (latest) Basic_Servoy_JasperReports_Plugin_v.6.0.0.zip and investigating elsewhere, to figure out if still can remain with single codebase or mentioned work-around is obligatory.
Unable to simply sort-out the problem in sample solution, as Servoy's INTEGER is set run-time from MSSQL DB

Regards
Imre Tokai, Software Engineer
iTech Professionals, Inc.
User avatar
imre_tokai
 
Posts: 32
Joined: Mon Mar 26, 2012 12:18 pm


Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 2 guests

cron