Results 1 to 11 of 11
  1. #1
    Join Date
    Jun 2004
    Posts
    5

    Unhappy Unanswered: ERROR: Some parameters are missing values

    mine report it possesses a single parameter ....
    this is the example of like tries of to change the value set up in the report...

    ERROR: Some parameters are missing values

    thanks help...

    EXAMPLE:
    <%@ page import="com.crystaldecisions.report.web.viewer.*"% >
    <%@ page import="com.crystaldecisions.report.htmlrender.*"% >
    <%@ page import="com.crystaldecisions.reports.reportenginei nterface.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.repor tsource.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.data. *"%>
    <%@ page import="com.crystaldecisions.common.keycode.*"%>

    <%@ page import="java.util.*"%>

    <%
    try {

    IReportSourceFactory2 rptSrcFactory = new JPEReportSourceFactory();
    String report = "report/ReportParametro1.rpt";

    IReportSource reportSource = (IReportSource) rptSrcFactory.createReportSource(report, request.getLocale());


    Fields fields = new Fields();
    ParameterField pfield1 = new ParameterField();
    Values vals1 = new Values();
    ParameterFieldDiscreteValue pfieldDV1 = new ParameterFieldDiscreteValue();

    pfield1.setName("CICCIA");
    pfieldDV1.setValue("SELECT descrizione, validoDa, validoA FROM tariffari");
    pfieldDV1.setDescription("Query Dinamica....");

    vals1.add(pfieldDV1);
    pfield1.setCurrentValues(vals1);
    fields.add(pfield1);


    CrystalReportViewer viewer = new CrystalReportViewer();
    viewer.setReportSource(reportSource);


    // layout
    viewer.setOwnPage(true);
    viewer.setBestFitPage(true);
    viewer.setHasLogo(false);
    viewer.setHasRefreshButton(true);
    // group navigation
    viewer.setHasToggleGroupTreeButton(false);
    viewer.setDisplayGroupTree(false);
    // page navigation:
    viewer.setHasGotoPageButton(false);

    // print/export
    viewer.setHasExportButton(true);
    //viewer.setPrintMode(CrPrintMode.PDF);
    viewer.setPrintMode(CrPrintMode.ACTIVEX);
    viewer.setIgnoreViewStateOnLoad(true);


    viewer.setParameterFields(fields);
    viewer.setEnableParameterPrompt(false);
    viewer.refresh();


    viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), out);
    viewer.dispose();

    }catch(Exception e){
    out.println("Errore " + e.getMessage());
    }
    %>

  2. #2
    Join Date
    Jun 2004
    Posts
    2

    Add this

    Try to add this line (red font)

    ..
    ..
    pfield1.setCurrentValues(vals1);

    pfield1.setReportName("");

    fields.add(pfield1);
    ..

    ..

  3. #3
    Join Date
    Jun 2004
    Posts
    5

    Talking thanks

    thanks

  4. #4
    Join Date
    Jun 2004
    Posts
    2

    pdf problem

    I have a question for you .

    Did you try to export the same report to PDF or print report (pdf mode) .
    I get the same error: Some parameters are missing values .
    I have no problems with the report without parameters .

  5. #5
    Join Date
    Jul 2004
    Posts
    3

    Print problem

    Hey I am using Srystal Viewer Component to view report in JSP.
    I am facing problem in showing Print button in toolbar.

    i have set has print button to true.

    viewer.setHasPrintButton(true);

    but failed.same problem in with export button.

    please help me in this problem.

  6. #6
    Join Date
    Aug 2004
    Location
    Metro Detroit Area
    Posts
    1

  7. #7
    Join Date
    Aug 2004
    Posts
    3

    Pdf Problem

    i have the same problem when exporting reports with parameters, it says Some parameters are missing values. I can pass parameters to a report and show it with the viewer, and i already have the pfield.setReportName("") because the parameter belongs to a main report.

    I also try to use the ReportExportControl but it doesn't work

    ReportExportControl exportControl = new ReportExportControl();
    ExportOptions exportOptions = new ExportOptions();
    exportOptions.setExportFormatType(ReportExportForm at.PDF);
    exportControl.setReportSource(rptSource);
    exportControl.setExportOptions(exportOptions);
    exportControl.setExportAsAttachment(true);
    exportControl.setEnableParameterPrompt(true);
    exportControl.setParameterFields(fields);
    exportControl.refresh();
    exportControl.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
    exportControl.dispose();

    Please can someone help me, i really need that....

  8. #8
    Join Date
    Aug 2004
    Posts
    3

    Pdf Problem

    I found "the solution" on the web and even with this doesn't work..... what must i do????

    http://support.businessobjects.com/l...s/c2015290.asp

    I have CR10AdvDevEn using Java Reporting Component.... If somebody knows something else, please write here....

  9. #9
    Join Date
    Aug 2004
    Posts
    3

    Pdf Problem

    READY !!!! the last thing i had to do was to copy the libs updated to my web-inf/lib directory of my app and voilá !!!

  10. #10
    Join Date
    Sep 2004
    Posts
    1
    you need this viewer.setReuseParameterValuesOnRefresh(true)

    Quote Originally Posted by Nevy
    i have the same problem when exporting reports with parameters, it says Some parameters are missing values. I can pass parameters to a report and show it with the viewer, and i already have the pfield.setReportName("") because the parameter belongs to a main report.

    I also try to use the ReportExportControl but it doesn't work

    ReportExportControl exportControl = new ReportExportControl();
    ExportOptions exportOptions = new ExportOptions();
    exportOptions.setExportFormatType(ReportExportForm at.PDF);
    exportControl.setReportSource(rptSource);
    exportControl.setExportOptions(exportOptions);
    exportControl.setExportAsAttachment(true);
    exportControl.setEnableParameterPrompt(true);
    exportControl.setParameterFields(fields);
    exportControl.refresh();
    exportControl.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
    exportControl.dispose();

    Please can someone help me, i really need that....

  11. #11
    Join Date
    May 2011
    Posts
    1

    Re: Some parameters are missing values after exporting

    I don't know if there's still somebody here who's looking for the solution to the problem mentioned, but this is what I did:

    Tula (at tuwa) ni Aü: How to export a Crystal Report (10) to pdf and display it to a browser.

    Hope this helps.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •