我不會在腳本部分中看到任何語句,並且在那裏顯示消息。當我嘗試運行此BIRT報告時,程序向我顯示此消息**缺失;在陳述之前(<inline>#1)**並且沒有任何陳述
如果我試圖看到腳本部分,它顯示鎖定,我不能編輯任何東西。我想在該部分看到消息。
這是日誌
org.mozilla.javascript.EvaluatorException: missing ; before statement (<inline>#1)
at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:77)
at org.mozilla.javascript.DefaultErrorReporter.error(DefaultErrorReporter.java:64)
at org.mozilla.javascript.Parser.addError(Parser.java:188)
at org.mozilla.javascript.Parser.addError(Parser.java:166)
at org.mozilla.javascript.Parser.reportError(Parser.java:223)
at org.mozilla.javascript.Parser.reportError(Parser.java:210)
at org.mozilla.javascript.Parser.reportError(Parser.java:203)
at org.mozilla.javascript.Parser.autoInsertSemicolon(Parser.java:1067)
at org.mozilla.javascript.Parser.statementHelper(Parser.java:1044)
at org.mozilla.javascript.Parser.statement(Parser.java:901)
at org.mozilla.javascript.Parser.parse(Parser.java:540)
at org.mozilla.javascript.Parser.parse(Parser.java:478)
at org.mozilla.javascript.Context.compileImpl(Context.java:2348)
at org.mozilla.javascript.Context.compileString(Context.java:1335)
at org.mozilla.javascript.Context.compileString(Context.java:1324)
at org.eclipse.birt.report.engine.javascript.JavascriptEngine$3.run(JavascriptEngine.java:240)
at org.eclipse.birt.report.engine.javascript.JavascriptEngine$3.run(JavascriptEngine.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.birt.report.engine.javascript.JavascriptEngine.compile(JavascriptEngine.java:236)
at org.eclipse.birt.report.engine.javascript.JavascriptEngine.compile(JavascriptEngine.java:1)
at org.eclipse.birt.core.script.ScriptContext.compile(ScriptContext.java:153)
at org.eclipse.birt.report.engine.executor.ExecutionContext.compile(ExecutionContext.java:779)
at org.eclipse.birt.report.engine.executor.ExecutionContext.evaluate(ExecutionContext.java:713)
at org.eclipse.birt.report.engine.api.impl.EngineTask.evaluateExpression(EngineTask.java:1284)
at org.eclipse.birt.report.engine.api.impl.EngineTask.evaluateDefaultValue(EngineTask.java:1249)
at org.eclipse.birt.report.engine.api.impl.EngineTask$2.visitScalarParameter(EngineTask.java:1625)
at org.eclipse.birt.report.engine.api.impl.EngineTask$ParameterVisitor.visit(EngineTask.java:1540)
at org.eclipse.birt.report.engine.api.impl.EngineTask$ParameterVisitor.visit(EngineTask.java:1504)
at org.eclipse.birt.report.engine.api.impl.EngineTask.usingParameterValues(EngineTask.java:1721)
at org.eclipse.birt.report.engine.api.impl.DatasetPreviewTask.doRun(DatasetPreviewTask.java:298)
at org.eclipse.birt.report.engine.api.impl.DatasetPreviewTask.runDataset(DatasetPreviewTask.java:278)
at org.eclipse.birt.report.engine.api.impl.DatasetPreviewTask.execute(DatasetPreviewTask.java:89)
at org.eclipse.birt.report.designer.data.ui.dataset.DataSetPreviewer.preview(DataSetPreviewer.java:68)
at org.eclipse.birt.report.designer.data.ui.dataset.ResultSetPreviewPage$5.run(ResultSetPreviewPage.java:372)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
看起來您在選擇腳本選項卡之前沒有選擇數據集。 – Simulant
當我遇到問題時,我看到它有數據 – kelgwiin