Skip to Content
0
Former Member
Mar 04, 2015 at 07:58 PM

Any way to find parameter value for a report?

17 Views

CS2008 SP3 - version 12.3.0.601

Is there any way parameter value of a report can be found? The following code doesn't return parameter value but returns name.

Fields existingReportParameters = null;

IDataDefinition dataDefinition = reportDocument.getDataDefinition();

existingReportParameters = dataDefinition.getParameterFields();

if (existingReportParameters != null) {

for (int i = 0; i < existingReportParameters.size(); i++) {

IField field = existingReportParameters.getField(i);

if (field instanceof ParameterField) {

ParameterField pa = (ParameterField)field;

String paramName = pa.getName();

//Values values = pa.getValues();

//Object value = values.get(0);

//System.out.println("*** repName Parameter - " + paramName + ":" + values);

System.out.println("*** repName Parameter - " + paramName);

}

}

}

Need to find a solution soon. Thanks in advance.