I can't display variables in browser

Hello I have made my report on JasperSoft Studio, in its preliminary look good all the variables, such as this: new Double ($ V {} .doubleValue gt_sched () + $ V {} .doubleValue gt_no_shows ())
 
But in any browser appears as 0.00 value is not correct, please help
 
Adolfo
adolfomariscalh's picture
Joined: Jul 27 2015 - 9:51am
Last seen: 2 years 2 months ago

5 Answers:

Does the variable appear correctly in Jaspersoft Studio? Are you uploading to JasperReports Server or previewing the report in HTML format in Jaspersoft Studio?

You're probably getting 0.00 because you haven't entered a value in Initial Value.

hozawa's picture
169741
Joined: Apr 24 2010 - 4:31pm
Last seen: 3 years 9 months ago
Yes in jasper studio preview aré ok, I dont use jasper server only studio and is ok With preview in html or Java or any but in the browser no, thanks
adolfomariscalh's picture
Joined: Jul 27 2015 - 9:51am
Last seen: 2 years 2 months ago

hello hozawa I already got an initial value and I still displays 0.00, which can it be?

I want to sum two fields, and I try it with a variable.

  

adolfomariscalh's picture
Joined: Jul 27 2015 - 9:51am
Last seen: 2 years 2 months ago

Do you have "show_rate" defined after "sched" and "show" variables in the Outline View? Jaspersoft Studio evaluates variables from top to bottom as is displayed in the Outline View.

hozawa's picture
169741
Joined: Apr 24 2010 - 4:31pm
Last seen: 3 years 9 months ago

The order of arrangement is correct, first "show" then "sched" and bottom "show_rate"

adolfomariscalh's picture
Joined: Jul 27 2015 - 9:51am
Last seen: 2 years 2 months ago
Feedback
randomness