Saturday, February 18, 2012

Handling Empty Reports

Can someone help me with the question below? How can we handle Empty reports other than using "No Data Contents" option in Report Studio? This question was posed to me in an interview.
Specify Not to Render a Page If It Does not Contain Data
You can specify not to render a report page if the page does not contain any data when the report
is run.

Steps:

1. In the report page, click a List data container.

2. In the Properties pane, click the select ancestor button and click the List data container type.
For example, if the data container is a list, click List.

3. Set the Render Page when Empty property to No.

4. Repeat steps 1 to 3 for all other data containers 

When you run the report, if no data is produced in all data containers and table of contents objects
in a page, the page is not rendered. The page is not rendered even if the page contains other objects,
such as text items or images.

No comments:

Post a Comment