Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Crystal Reports exception "Some parameters are missing values"

843838Sep 23 2005 — edited Nov 3 2005
viernes, 23 de septiembre de 2005 � Problema con los par�metros en CR

Hi,

I�m trying to create a simple report with Crystal Reports in a JSP, using just one parameter. The report with the parameter is shown without problems but I get a �Some parameters are missing values� exception.

I�ve tried all the combinations that came to my mind without success. Have you faced this problem before ?

Any comment would be welcome !

Regards,

- Juan

This is the JSP code I use to show the report (it�s a JSF tag)
<bocrv:reportPageViewer 
		viewerName="CrystalViewer" 
		parameterFields="#{testParams.params}"
		reportSource="#{reportWrapper.reportSource}"/>
This is the code to build the testParams.params field:
        ParameterFieldDiscreteValue pfieldDV1 = new ParameterFieldDiscreteValue();
        pfieldDV1.setValue("22");
        pfieldDV1.setDescription("Test description");

        Values vals1 = new Values();
        vals1.add(pfieldDV1);

        ParameterField pfield1 = new ParameterField();
        pfield1.setReportName("");
        pfield1.setName("testParam");
        pfield1.setCurrentValues(vals1);
        pfield1.setDescription("Test description");

        Fields fields = new Fields();
        fields.add(pfield1);
		
        return fields;
And the exception I get:
09:36:42,667 ERROR objectformatter : ? - com.crystaldecisions.reports.dataengine.k: Some parameters are missing values
09:36:42,682 ERROR Engine : ? - Error formatting page
com.crystaldecisions.reports.formatter.formatter.c: Some parameters are missing values
	at com.crystaldecisions.reports.formatter.formatter.objectformatter.bn.<init>(Unknown Source)
	at com.crystaldecisions.reports.formatter.formatter.objectformatter.bn.if(Unknown Source)
	at com.crystaldecisions.reports.formatter.formatter.d.k.<init>(Unknown Source)
	at com.crystaldecisions.reports.formatter.formatter.d.o.<init>(Unknown Source)
	at com.crystaldecisions.reports.formatter.formatter.d.o.a(Unknown Source)
	at com.crystaldecisions.reports.reportengineinterface.g.if(Unknown Source)
	at com.crystaldecisions.reports.reportengineinterface.g.do(Unknown Source)
	at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.getPage(Unknown Source)
	at com.crystaldecisions.report.web.event.aa.a(Unknown Source)
	at com.crystaldecisions.report.web.event.aa.a(Unknown Source)
	at com.crystaldecisions.report.web.event.bx.a(Unknown Source)
	at com.crystaldecisions.report.web.event.b1.broadcast(Unknown Source)
	at com.crystaldecisions.report.web.event.as.a(Unknown Source)
	at com.crystaldecisions.report.web.jsf.ViewerHtmlRenderer.encodeEnd(Unknown Source)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 1 2005
Added on Sep 23 2005
7 comments
216 views