Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to find parameter values of a Crystal report

CS2008 SP3 - version

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.

Former Member
Not what you were looking for? View more on this topic or Ask a question