Hello,<br />
<br />
I want to add a default value as javascript for a report parameter so I did the following (in the eclipse birt designer):<br />
<img src='
http://i710.photobucket.com/albums/ww102/bittrulz/birt_eclipse/reportDesignerAddParameter.png' alt='Posted Image' class='bbc_img' /><br />
<br />
The problem I have is: when I deploy the app (that contains the report) the javascript is not evaluated:<br />
<img src='
http://i710.photobucket.com/albums/ww102/bittrulz/birt_eclipse/webpageReportParamsJavascriptInDefaultValueNotEvaluated.png' alt='Posted Image' class='bbc_img' /><br />
<br />
However, when I preview the report in the birt report designer it evaluates the javascript default value:<br />
<img src='
http://i710.photobucket.com/albums/ww102/bittrulz/birt_eclipse/birtViewerJavascriptIsEvaluated.png' alt='Posted Image' class='bbc_img' /><br />
<br />
Here is the code that I use (filtered to have only the relevant stuff):<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
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();
</pre>
<br />
The question is: did I miss something? Should I add an option somewhere that forces the evaluation of the default javascript expression?