hi, I have following method (needed to call paramaters for jasper reports)
var $ParametersMap = new java.util.HashMap(); //object
$ParametersMap.put('invoiceid', invoicesid);
$ParametersMap.put('subsum', 1)
$ParametersMap.put('stamp_status', status );
$ParametersMap.put('stamp_copy','KOPIE!' );
oke, that is going right, but after calling:
plugins.jasperPluginRMI.jasperReport(vDbalias, vPath, vOutputFile, vTypeOutput, $ParametersMap)
the HashMap becomes in a state, that I can’t use it anymore.
I want to use the same HashMap to do another print, without defining it again.
if I do:
var $ParametersMap2 = $ParametersMap
and than the jasper-call, BOTH HashMaps become in the unusable state.
So basicly what I’m searching for is to duplicate a HashMap and that they ‘stay’ independent of eachother.
Any one an idea?