replace function error while passing parameters to linked report [message #179119] |
Thu, 20 July 2006 11:05 |
Eclipse User |
|
|
|
Originally posted by: nicola.benaglia.idra-spa.it
Hi !
I tried to replace spaces to a date param:
<structure>
<property name="paramName">startDate</property>
<expression name="expression">params["startDate"].replace(" ",
"%20")</expression>
</structure>
but I get this error:
************************************************************ ****
Data (id = 20):
- There are errors evaluating script "params["startDate"].replace(" ",
"%20")".
Error.ScriptEvaluationError ( 32 time(s) )
detail : org.eclipse.birt.report.engine.api.EngineException: There are
errors evaluating script "params["startDate"].replace(' ', '%20')". at
org.eclipse.birt.report.engine.executor.ExecutionContext.eva luate(ExecutionContext.java:572)
at
org.eclipse.birt.report.engine.executor.ExecutionContext.eva luate(ExecutionContext.java:534)
at
org.eclipse.birt.report.engine.executor.ReportItemExecutor.e valuate(ReportItemExecutor.java:225)
at
org.eclipse.birt.report.engine.executor.ReportItemExecutor.p rocessAction(ReportItemExecutor.java:346)
at
org.eclipse.birt.report.engine.executor.DataItemExecutor.exe cute(DataItemExecutor.java:85)
at
org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportItemExecutor.execute(LocalizedReportItemExecutor.ja va:35)
************************************************************ ****
could you please tell me where I get wrong ?
Thank you,
N
|
|
|
Powered by
FUDForum. Page generated in 0.04615 seconds