Hiding of rows [message #242749] |
Thu, 14 June 2007 15:31 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: leochuatoco.chinasystems.com
Hi all,
I have a row in my report which has two columns, one for the label and
another one for the data in the table.
i.e. [Label]: [FieldName]
What I am trying to achieve is to hide the complete row if no data is
returned for the [FieldName].
I can successfully achieve this column by using the visibilty hide
Element expression i.e.(row["FieldName"] == "")
How can I hide the label as well? I have tried using the same visbility
hide-element expression but it doesnt work.
Any ideas as to how to get this working?
Thank you and best regards,
Zia
|
|
|
Re: Hiding of rows [message #242855 is a reply to message #242749] |
Fri, 15 June 2007 04:03 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: jasonweathersby.alltel.net
Zia,
This expression should work on the row as well. Are you setting it on
the label or the row?
Jason
Zia wrote:
>
>
> Hi all,
>
> I have a row in my report which has two columns, one for the label and
> another one for the data in the table.
>
> i.e. [Label]: [FieldName]
> What I am trying to achieve is to hide the complete row if no data is
> returned for the [FieldName].
>
> I can successfully achieve this column by using the visibilty hide
> Element expression i.e.(row["FieldName"] == "")
>
> How can I hide the label as well? I have tried using the same visbility
> hide-element expression but it doesnt work.
>
>
> Any ideas as to how to get this working?
>
>
> Thank you and best regards,
>
> Zia
>
>
|
|
|
Re: Hiding of rows [message #242917 is a reply to message #242855] |
Fri, 15 June 2007 10:17 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: zia.zia.com
Hi Jason,
I have tried to set this in the row and also in the label. It seem's that
it still not working.
I have used script: if(row["FieldName"] == '[FieldValue]'){ true; } else{
false; }.
Is there any other possible solutions?
Thank you Jason for your response, greatly appreciated.
Zia
|
|
|
Re: Hiding of rows [message #242987 is a reply to message #242917] |
Sat, 16 June 2007 03:04 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: jasonweathersby.alltel.net
Zia,
What version of BIRT are you using? What is the data type of "FieldName"?
Jason
Zia wrote:
>
> Hi Jason,
> I have tried to set this in the row and also in the label. It seem's
> that it still not working.
>
> I have used script: if(row["FieldName"] == '[FieldValue]'){ true; }
> else{ false; }.
> Is there any other possible solutions?
>
> Thank you Jason for your response, greatly appreciated.
>
> Zia
>
>
>
|
|
|
Re: Hiding of rows [message #242988 is a reply to message #242987] |
Sat, 16 June 2007 03:05 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: jasonweathersby.alltel.net
Also can you give an example of what you are putting in the expression.
Specificially '[FieldValue]'.
Jason Weathersby wrote:
> Zia,
>
> What version of BIRT are you using? What is the data type of "FieldName"?
>
> Jason
>
> Zia wrote:
>>
>> Hi Jason,
>> I have tried to set this in the row and also in the label. It seem's
>> that it still not working.
>>
>> I have used script: if(row["FieldName"] == '[FieldValue]'){ true; }
>> else{ false; }.
>> Is there any other possible solutions?
>>
>> Thank you Jason for your response, greatly appreciated.
>>
>> Zia
>>
>>
>>
|
|
|
Re: Hiding of rows [message #243459 is a reply to message #242987] |
Wed, 20 June 2007 09:51 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: zia.zia.com
Hi Jason,
1.) What version of BIRT are you using?
--> I am using BIRT 2.1.2
2.) What is the data type or "FieldName"?
--> The type of FieldName is String
regards,
Zia
|
|
|
Re: Hiding of rows [message #243464 is a reply to message #242988] |
Wed, 20 June 2007 09:54 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: zia.zia.com
Hi Jason,
I manage to hide the row using a table, unlike before I was using a grid.
It seems that the scripts are not working if I were to use a grid instead
of a table.
Thank you very much, greatly appreciated...
Zia
|
|
|
Powered by
FUDForum. Page generated in 0.04688 seconds