Showing posts with label empty. Show all posts
Showing posts with label empty. Show all posts

Friday, March 30, 2012

Hide empty tables

Hi,

I've just creates a report with about 20 Tables. To my suprise, it almost runs as intended ;-)
But there is one flaw - Is there any way of hiding an empyt table?
I want to hide all tables that are not filled with data. But wich one is empty differs from the entered parameter.

So long
Sven
(Germany)YOu could set the NoRows property to an empty string, this would hide the tables and the header.

HTH, Jens K. Suessmeyer.

http://www.sqlserver2005.de|||Well, I think i figured it out myself. But nonetheless. Thanks

##############################

Hey,
thanks for the fast answer.
But I'm quiet a noob regarding ReportingServices. How do I have to use "NoRows" ?
Is that a VB Code and if so, how do i use it ?

Mfg
Sven

Hide empty rows on drill down report

Is there any way to hide the expand button (the plus sign) for rows that have
no containing rows on a drill-down report? What is happening now is that the
plus signs are populated for all rows and only a small subset of them
actually have data in the to drill into.Jason,
You can go into the toggle item's Properties and under the Visibility
Tab, set the "Initial appearance of the toggle image for this report
item:" to Expression and use a variation of the following:
=IIf(Fields!Determing_Factor.Value = "Determining_Value",true,false)
for example:
=IIf(Fields!Item_Name.Value = "",true,false)
This makes it so that if my next rows Item_Name field is blank, the
toggle will be automatically set the the - symbol so that the user
knows there is nothing past this point.
Hope that helps. If I didn't make myself understandable, let me know
and I can try again.|||That's pretty good. Is there any way to make it so that the "-" symbol cannot
be expanded? It looks weird to have a "-" symbol change to a "+" symbol and
then expand with an empty line under it.
"Mal" wrote:
> Jason,
> You can go into the toggle item's Properties and under the Visibility
> Tab, set the "Initial appearance of the toggle image for this report
> item:" to Expression and use a variation of the following:
> =IIf(Fields!Determing_Factor.Value = "Determining_Value",true,false)
> for example:
> =IIf(Fields!Item_Name.Value = "",true,false)
> This makes it so that if my next rows Item_Name field is blank, the
> toggle will be automatically set the the - symbol so that the user
> knows there is nothing past this point.
> Hope that helps. If I didn't make myself understandable, let me know
> and I can try again.
>|||Jason,
To remove the additional row, you will need to set the Hidden value, of
the Visibility properties for the row, to the same as what is in the
toggle item's Initial Appearance value.
for example:
=IIf(Fields!Item_Name.Value = "",true,false)
And here is an example of a 6 level report, that may or may not have
data at all levels:
=IIf(Fields!lev1_Name.Value="",IIf(Fields!lev2_Name.Value="",IIf(Fields!lev3_Name.Value="",IIf(Fields!lev4_Name.Value="",IIf(Fields!lev5_Name.Value
= "",IIf(Fields!lev6_Name.Value ="",true,false),false),false),false),false),false)
This would be inserted into the Hidden property of Group 1 in said
report. And would need to be placed in that property value for each of
the following groups, removing the previous row from the equation each
time. So for next row, the expression would start at lev2_Name, and the
Group 3 row would start at lev3_name, etc.
Does that help?|||Jason,
You will need to place an Expression into the Hidden field for the
Row's Visibility Properties. If you are using the above Expression on
the Initial Apperance, the Expression for the Hidden property would be
the same.
So, if it is a 3 level report and level 2 is a toggle for level 3, the
Expression would go in the toggle item on row 2 and in the Hidden
Property for Row3.

Hide empty detail sections

Hi,
I'm building a report that displays a tree structure with the content
of some nodes of the tree (as detail). Some nodes don't contain any
info, thus the detail section is empty. How can I hide the empty
detail section in the report ? Now it displays always an empty row,
but I want to shrink this row because it contains no data. How can I
accomplish this ?
Franc.Never mind, found it already. For some reason you have to use the
expression editor. Just typing the expression in the text box of the
group visibility doesn't work.
Franc.
>Hi,
>I'm building a report that displays a tree structure with the content
>of some nodes of the tree (as detail). Some nodes don't contain any
>info, thus the detail section is empty. How can I hide the empty
>detail section in the report ? Now it displays always an empty row,
>but I want to shrink this row because it contains no data. How can I
>accomplish this ?
>Franc.

Monday, March 26, 2012

Hidding region of a report

Hi,
i have a report with 5 regions. and when all those regions are filled may
report stand on 2 pages. my Pb is that event if the region are empty, the
space use by each region do not desapear.
Is it possible to hide a data region with no row ?
i wnat my report to apear on 1 page when all the data region are not filled .
Think you for your answer.
Kind RegardsDid you look into Hidden property of a report item? You can conditionally
hide the data region based on its number of rows.
--
Nico Cristache [MSFT]
Microsoft SQL Server Reporting Services
This posting is provided "AS IS" with no warranties, and confers no rights.
"Tino [Securitas.fr]" <Tino [Securitas.fr]@.discussions.microsoft.com> wrote
in message news:25A8CA86-8528-4FEB-9743-1853E347D9BF@.microsoft.com...
> Hi,
> i have a report with 5 regions. and when all those regions are filled may
> report stand on 2 pages. my Pb is that event if the region are empty, the
> space use by each region do not desapear.
> Is it possible to hide a data region with no row ?
> i wnat my report to apear on 1 page when all the data region are not
filled .
> Think you for your answer.
> Kind Regards|||thank you for you reply.
but when i use this expression in the visibility proprety of my data region
i get this message :
r:\samples\reports\Product Line Sales.rdl The hidden expression for the
table â'TopStoresTableâ' has the value â'Iif(CountRows() = 0, "false", "true")â',
which is not a valid Boolean value.
what can i do ?
thank you for help
"Nico Cristache [MSFT]" wrote:
> Did you look into Hidden property of a report item? You can conditionally
> hide the data region based on its number of rows.
> --
> Nico Cristache [MSFT]
> Microsoft SQL Server Reporting Services
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Tino [Securitas.fr]" <Tino [Securitas.fr]@.discussions.microsoft.com> wrote
> in message news:25A8CA86-8528-4FEB-9743-1853E347D9BF@.microsoft.com...
> > Hi,
> > i have a report with 5 regions. and when all those regions are filled may
> > report stand on 2 pages. my Pb is that event if the region are empty, the
> > space use by each region do not desapear.
> >
> > Is it possible to hide a data region with no row ?
> >
> > i wnat my report to apear on 1 page when all the data region are not
> filled .
> >
> > Think you for your answer.
> >
> > Kind Regards
>
>|||i can now hide the data region with the expression CountRows().
But would like to move data region below to the place of the one hidden.
Is it possible to modify dynamically the position of my data region.
Regards.
"Nico Cristache [MSFT]" wrote:
> Did you look into Hidden property of a report item? You can conditionally
> hide the data region based on its number of rows.
> --
> Nico Cristache [MSFT]
> Microsoft SQL Server Reporting Services
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Tino [Securitas.fr]" <Tino [Securitas.fr]@.discussions.microsoft.com> wrote
> in message news:25A8CA86-8528-4FEB-9743-1853E347D9BF@.microsoft.com...
> > Hi,
> > i have a report with 5 regions. and when all those regions are filled may
> > report stand on 2 pages. my Pb is that event if the region are empty, the
> > space use by each region do not desapear.
> >
> > Is it possible to hide a data region with no row ?
> >
> > i wnat my report to apear on 1 page when all the data region are not
> filled .
> >
> > Think you for your answer.
> >
> > Kind Regards
>
>

Friday, March 23, 2012

Hidden expression with dates?

Hi! How to write the syntax when you try to compare the dates. In this case I try to check if the date is empty(then it's 1/1/1900) then the field should be hidden. This is what I tried but didn't succeed:

=iif(Fields!ModifiedDate.Value="1/1/1900",true,false)

You can convert your string value ('1/1/1900') to a date with the CDate() function. With this you can compare the to value's with each other.|||

Jan Pieter Posthuma wrote:

You can convert your string value ('1/1/1900') to a date with the CDate() function. With this you can compare the to value's with each other.

Thanks for the post but unfortunately I didn't get it. The main problem is syntax - I don't know where to use Cdate() -function. I tried this:

=iif(Cdate(Fields!modifiedDate).Value) > "1/1/1900",false,true)

the compiler didn't like it :)

Can you give me an example?

|||

It just the otherway round: =iif(Fields!modifiedDate.Value=CDate("1/1/1900"), false, true)