<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Crystal Reports 2020 Runtime Java - Error parameter values missing in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/crystal-reports-2020-runtime-java-error-parameter-values-missing/qaa-p/12811181#M4810874</link>
    <description>&lt;P&gt;Have you tried setting the "Optional Prompt" property to True?&lt;/P&gt;&lt;P&gt;-Dell&lt;/P&gt;</description>
    <pubDate>Tue, 29 Aug 2023 14:29:36 GMT</pubDate>
    <dc:creator>DellSC</dc:creator>
    <dc:date>2023-08-29T14:29:36Z</dc:date>
    <item>
      <title>Crystal Reports 2020 Runtime Java - Error parameter values missing</title>
      <link>https://community.sap.com/t5/technology-q-a/crystal-reports-2020-runtime-java-error-parameter-values-missing/qaq-p/12811180</link>
      <description>&lt;P&gt;Goodmorning,&lt;/P&gt;
  &lt;P&gt;I have an rpt with parameter fields, that are used in the report.&lt;/P&gt;
  &lt;P&gt;If I try to execute a print, without assigning values to some of that parameters at runtime (I'm using the Java SDK), I get this error:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;com.crystaldecisions.sdk.occa.report.lib.ReportSDKParameterFieldException: 
Some parameters have missing values---- Error code:-2147217394 Error code name:missingParameterValueError&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;I checked that in the SDK, working on the IParameterField object, I can access to:&lt;/P&gt;
  &lt;UL&gt; 
   &lt;LI&gt;&lt;STRONG&gt;initialValues&lt;/STRONG&gt;&lt;/LI&gt; 
   &lt;LI&gt;&lt;STRONG&gt;&lt;STRONG&gt;defaultValues&lt;/STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/LI&gt; 
   &lt;LI&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;currentValues&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/LI&gt; 
  &lt;/UL&gt;
  &lt;P&gt;Below the corrispondences in the designer of CR2020:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2206476-x-domanda-sap.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;I finally noticed that &lt;STRONG&gt;I MUST assign one value to the currentValue&lt;/STRONG&gt; of the parameter, to avoid the error, and for now I'm using those default values if they're present.&lt;/P&gt;
  &lt;P&gt;Now the question is:&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;Why&lt;/STRONG&gt;&lt;STRONG&gt; doesn't&lt;/STRONG&gt;&lt;STRONG&gt; Crystal automatically assign&lt;/STRONG&gt;&lt;STRONG&gt; one between defaultValues and initialValues&lt;/STRONG&gt;&lt;STRONG&gt; to the actualValues? It seems very strange...&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;I have also found two methods:&lt;/P&gt;
  &lt;OL&gt;
   &lt;LI&gt;&lt;EM&gt;setAllowNullValues(boolean)&lt;/EM&gt;&lt;/LI&gt;
   &lt;LI&gt;&lt;EM&gt;setIsOptionalPrompt(boolean)&lt;/EM&gt;&lt;/LI&gt;
  &lt;/OL&gt;
  &lt;OL&gt;&lt;/OL&gt;
  &lt;P&gt;that I can call on the parameter passing 'true', but they don't work. For the first method in the doc. it says '&lt;EM&gt;This is used only for stored SQL procedures&lt;/EM&gt;.', the second instead seems to be the most appropriate one, but it doesn't solve the issue either.&lt;/P&gt;
  &lt;P&gt;This way would be the best, because &lt;STRONG&gt;I don't need to assign the default values, I only need to avoid the exception&lt;/STRONG&gt; and allow null values on parameter fields.&lt;/P&gt;
  &lt;P&gt;So the other question is:&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;Is it possible to allow null values on parameter fields? If yes, how?&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;Thanks to everybody, any help would be appreciated.&lt;/P&gt;
  &lt;P&gt;Diego.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 13:10:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/crystal-reports-2020-runtime-java-error-parameter-values-missing/qaq-p/12811180</guid>
      <dc:creator>diegofava</dc:creator>
      <dc:date>2023-08-29T13:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Crystal Reports 2020 Runtime Java - Error parameter values missing</title>
      <link>https://community.sap.com/t5/technology-q-a/crystal-reports-2020-runtime-java-error-parameter-values-missing/qaa-p/12811181#M4810874</link>
      <description>&lt;P&gt;Have you tried setting the "Optional Prompt" property to True?&lt;/P&gt;&lt;P&gt;-Dell&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 14:29:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/crystal-reports-2020-runtime-java-error-parameter-values-missing/qaa-p/12811181#M4810874</guid>
      <dc:creator>DellSC</dc:creator>
      <dc:date>2023-08-29T14:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Crystal Reports 2020 Runtime Java - Error parameter values missing</title>
      <link>https://community.sap.com/t5/technology-q-a/crystal-reports-2020-runtime-java-error-parameter-values-missing/qaa-p/12811182#M4810875</link>
      <description>&lt;P&gt;Yes, I've tried setting that property with the relative method &lt;EM&gt;setIsOptionalPrompt(true).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I forgot it in the question, now I've updated the question too.&lt;/P&gt;&lt;P&gt;Are there any other ways?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Diego&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 15:24:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/crystal-reports-2020-runtime-java-error-parameter-values-missing/qaa-p/12811182#M4810875</guid>
      <dc:creator>diegofava</dc:creator>
      <dc:date>2023-08-29T15:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Crystal Reports 2020 Runtime Java - Error parameter values missing</title>
      <link>https://community.sap.com/t5/technology-q-a/crystal-reports-2020-runtime-java-error-parameter-values-missing/qaa-p/12811183#M4810876</link>
      <description>&lt;P&gt;Often depending on the API used you may not be doing it the right way.&lt;/P&gt;&lt;P&gt;For example don use .ADD it could be you are trying to add the same Parameter name to the list of parameters.&lt;/P&gt;&lt;P&gt;Also, Java may be interpreting the value as a string...&lt;/P&gt;&lt;P&gt;Have a look at these Java samples:&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports+Java++SDK+Samples" target="test_blank"&gt;https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports+Java++SDK+Samples&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 22:01:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/crystal-reports-2020-runtime-java-error-parameter-values-missing/qaa-p/12811183#M4810876</guid>
      <dc:creator>DonWilliams</dc:creator>
      <dc:date>2023-09-05T22:01:14Z</dc:date>
    </item>
  </channel>
</rss>

