map.put(ORStatics.USER_NAME, reportUser.getName());
return map;
}
//
ReportParameter queryParameter = parameterProvider.getReportParameter(name);
if (queryParameter == null)
{
throw new ORException(LocalStrings.ERROR_PARAMETER_NOTFOUND);
}
ReportParameterMap rpMap = new ReportParameterMap();
rpMap.setReportParameter(queryParameter);
ArrayList<ReportParameterMap> queryParameters = new ArrayList<ReportParameterMap>();
queryParameters.add(rpMap);
Map<String,Object> parameterMap = new HashMap<String,Object>();
if (queryParameter.getData().toUpperCase().indexOf("$P") > -1)
{
parameterMap = buildQueryParameterMap(reportUser, queryParameter.getData(), parameterProvider);
}
parameterProvider.loadReportParameterValues(queryParameters, parameterMap);
String testValue = queryParameter.getValues()[0].getId().toString();
if (queryParameter.isMultipleSelect())
{
testValue = "'" + testValue + "'";
}
map.put(queryParameter.getName(), testValue);
return map;
}