title: Why a default javascript value for a BIRT report parameter is not evaluated in the deployed webapp?
body: <p>I want to add a default value as javascript for a report parameter so I did the following (in the eclipse birt designer):</p>
  
  <p><img src="https://i.stack.imgur.com/7MXip.png" alt="reportDesignerAddParameter"></p>
  
  <p>The problem I have is: when I deploy the app (that contains the report) the javascript is not evaluated:<img src="https://i.stack.imgur.com/NLSIq.png" alt="webpageReportParamsJavascriptInDefaultValueNotEvaluated"></p>
  
  <p>However, when I preview the report in the birt report designer it evaluates the javascript default value:</p>
  
  <p><img src="https://i.stack.imgur.com/a92hA.png" alt="birtViewerJavascriptIsEvaluated"></p>
  
  <p>Here is the code that I use (filtered to have only the relevant stuff):</p>
  
  <pre><code>  IReportRunnable design = getReportRunnable(pathToTemplate);
    IRunAndRenderTask task = _birtReportEngine.createRunAndRenderTask(design);
  
    task.setRenderOption(options);
    task.getAppContext().put(EngineConstants.APPCONTEXT_CLASSLOADER_KEY, ReportEngine.class.getClassLoader());
  
    task.setParameterValues(parameters);
    task.validateParameters();
  
    task.run();
  </code></pre>
  
  <p>The question is: did I miss something? Should I add an option somewhere that forces the evaluation of the default javascript expression?</p>