Skip to main content



      Home
Home » Archived » BIRT » Hide a table ?
Hide a table ? [message #161744] Wed, 17 May 2006 04:35 Go to next message
Eclipse UserFriend
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
Re: Hide a table ? [message #161854 is a reply to message #161744] Wed, 17 May 2006 09:40 Go to previous messageGo to next message
Eclipse UserFriend
if you use row[1]==1, you get an error if there is no row in the
table, since row[1] doesn't exist!!
I use Total.count() == 0 in Birt 1.0, but it seems not to work with
Birt 2.1RC2.


>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 ...
Re: Hide a table ? [message #161945 is a reply to message #161854] Wed, 17 May 2006 11:49 Go to previous message
Eclipse UserFriend
Originally posted by: esteban27.free.fr

Thanks,

I solve the problem in my query !
I note your solution

Stephane
Previous Topic:report printing
Next Topic:bars highlight
Goto Forum:
  


Current Time: Sat Jul 19 03:14:07 EDT 2025

Powered by FUDForum. Page generated in 0.26623 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top