Hide a table ? [message #161744] |
Wed, 17 May 2006 04:35  |
Eclipse User |
|
|
|
Originally posted by: esteban27.free.fr
Hi,
I have a list of table and i try to hide a table in runtime by script
(when the number of rows equal 0).
I try in the designer, i check the box 'Hide element' in Properties
Visibility and i chek the 'For specific output' and i add the expression :
'if(row[1]==1){true}else{false}' so the table with no row are hidde but i
already have the error :
-There are error(s) in report : report
Error0 : data.engine.NoCurrentRow ( 40 time(s) )
detail : org.eclipse.birt.data.engine.core.DataException: Result iterator
has no current row. It either has not started or has ended. at
org.eclipse.birt.data.engine.script.DataRow.getAndCheckResul tObject(DataRow.java(Inlined
Compiled Code)) at
org.eclipse.birt.data.engine.script.DataRow.getColumnValue(D ataRow.java(Inlined
Compiled Code)) at
org.eclipse.birt.data.engine.script.JSRowObject.get(JSRowObj ect.java(Compiled
Code)) at
org.mozilla.javascript.ScriptableObject.getProperty(Scriptab leObject.java(Inlined
Compiled Code)) at
org.mozilla.javascript.ScriptRuntime.getObjectElem(ScriptRun time.java(Compiled
Code)) at
org.mozilla.javascript.ScriptRuntime.getObjectElem(ScriptRun time.java(Inlined
Compiled Code)) at org.mozilla.javascript.gen.c18._c0(ROM
Expression(Inlined Compiled Code)) at
org.mozilla.javascript.gen.c18.call(ROM Expression(Compiled Code)) at
org.mozilla.javascript.ContextFactory.doTopCall(ContextFacto ry.java(Inlined
Compiled Code)) at
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime .java(Compiled
Code)) at org.mozilla.javascript.gen.c18.call(ROM Expression(Compiled
Code)) at org.mozilla.javascript.gen.c18.exec(ROM Expression) at
org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateScri pt(JavascriptEvalUtil.java(Compiled
Code)) at
org.eclipse.birt.data.engine.script.ScriptEvalUtil.evaluateJ SAsExpr(ScriptEvalUtil.java(Compiled
Code)) at
org.eclipse.birt.data.engine.impl.ColumnReferenceExpression. evaluate(ColumnReferenceExpression.java:117)
at
org.eclipse.birt.data.engine.script.ScriptEvalUtil.evalExpr( ScriptEvalUtil.java:480)
Thanks,
Stephane
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.26623 seconds