Hi all,
I have a working report with several parameters, one of them "reportYear". I would like to add a hyperlink in my report generating a new report for the previous year, with all other parameters the same.
I tried doing this via the "Edit hyperlink" wizard, by giving "reportYear" the value "reportYear.value - 1".
However, instead of returning "2012" if the current reportYear is 2013, the returned hyperlink contains "&reportYear=2012.0" and the viewer throws an error. This happens even if I use parseInt or Math.floor.
Why is BIRT turning my pretty integers-even-though-JS-doesn't-have-integers-but-let's-pretend into floats, and what can I do about it?
I have a working report with several parameters, one of them "reportYear". I would like to add a hyperlink in my report generating a new report for the previous year, with all other parameters the same.
I tried doing this via the "Edit hyperlink" wizard, by giving "reportYear" the value "reportYear.value - 1".
However, instead of returning "2012" if the current reportYear is 2013, the returned hyperlink contains "&reportYear=2012.0" and the viewer throws an error. This happens even if I use parseInt or Math.floor.
Why is BIRT turning my pretty integers-even-though-JS-doesn't-have-integers-but-let's-pretend into floats, and what can I do about it?