Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Conditional Visibility (for Data) not always working in the BIRT viewer(forgotten old thread)
Conditional Visibility (for Data) not always working in the BIRT viewer [message #497999] Fri, 13 November 2009 16:16 Go to next message
tero  is currently offline tero Friend
Messages: 58
Registered: July 2009
Member
Hello,

Any idea about below issue?

http://www.eclipse.org/forums/index.php?t=msg&th=156836& amp;start=0&S=33eb1d4933e3de77c196ad2463ff6683

Thanks!
Tero
Re: Conditional Visibility (for Data) not always working in the BIRT viewer [message #498024 is a reply to message #497999] Fri, 13 November 2009 17:21 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Tero,

Is that a crosstab or a table?
is the visibility expression on the data item?
if( row["colData1"] <= 0){
true;
}
Also verify that the column binding (In the binding tab) is actually an
integer.

Jason

tero wrote:
> Hello,
>
> Any idea about below issue?
>
> http://www.eclipse.org/forums/index.php?t=msg&th=156836& amp;start=0&S=33eb1d4933e3de77c196ad2463ff6683
>
>
> Thanks!
> Tero
Re: Conditional Visibility (for Data) not always working in the BIRT viewer [message #498108 is a reply to message #498024] Sat, 14 November 2009 15:15 Go to previous messageGo to next message
tero  is currently offline tero Friend
Messages: 58
Registered: July 2009
Member
Hello Jason + thanks for responding,

Your Qs:
> Is that a crosstab or a table?
table
> is the visibility expression on the data item?
yes
> column binding integer?
yes


In the meantime I am using a workaround, which is not elegant + prone to generate other kind of errors? because it needs more code on the front-end...

in the data field (Data Binding):
dataSetRow["colData1"]>0?dataSetRow["colData1"]:null;

and since I have an Aggregation (Sum) on that column in the "Aggregation Builder" Expression field:
row["colData1"]==null?0:row["colData1"];

Not nice but producing what's requested.

Very strange if you see the attached pictures that the Preview works but the Viewer not ...

Any idea why?
Is it still possible to get the "visibility feature" to work?
Re: Conditional Visibility (for Data) not always working in the BIRT viewer [message #498404 is a reply to message #498108] Mon, 16 November 2009 18:38 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Tero,

Can you reproduce the issue with the sample data and post the report?

Jason

tero wrote:
> Hello Jason + thanks for responding,
>
> Your Qs:
>> Is that a crosstab or a table?
> table
>> is the visibility expression on the data item?
> yes
>> column binding integer?
> yes
>
>
> In the meantime I am using a workaround, which is not elegant + prone to
> generate other kind of errors? because it needs more code on the
> front-end...
>
> in the data field (Data Binding):
> dataSetRow["colData1"]>0?dataSetRow["colData1"]:null;
>
> and since I have an Aggregation (Sum) on that column in the "Aggregation
> Builder" Expression field:
> row["colData1"]==null?0:row["colData1"];
>
> Not nice but producing what's requested.
>
> Very strange if you see the attached pictures that the Preview works but
> the Viewer not ...
>
> Any idea why?
> Is it still possible to get the "visibility feature" to work?
Previous Topic:custom reportItem with expression
Next Topic:Newbie looking for some pointers
Goto Forum:
  


Current Time: Tue Apr 23 14:41:35 GMT 2024

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

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

Back to the top