<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Luke Hayler - SQL Server Developer &#187; Custom Settings</title>
	<atom:link href="http://lukehayler.com/tag/custom-settings/feed/" rel="self" type="application/rss+xml" />
	<link>http://lukehayler.com</link>
	<description>A blog about Business Intelligence and other personal interests</description>
	<lastBuildDate>Tue, 13 Dec 2011 11:42:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Custom Visibility Toggling in SSRS</title>
		<link>http://lukehayler.com/2009/07/custom-visibility-toggling-in-ssrs/</link>
		<comments>http://lukehayler.com/2009/07/custom-visibility-toggling-in-ssrs/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 22:05:51 +0000</pubDate>
		<dc:creator>Luke Hayler</dc:creator>
				<category><![CDATA[Luke Hayler]]></category>
		<category><![CDATA[Reporting Services]]></category>
		<category><![CDATA[Custom Settings]]></category>
		<category><![CDATA[report formatting]]></category>
		<category><![CDATA[Visibility Toggle]]></category>

		<guid isPermaLink="false">http://www.lukehayler.com/?p=32</guid>
		<description><![CDATA[I can see clearly now The visibility property of Report items can be a little gem. You can set the initial visibility of an item to hidden/visible , use another report item (a parent group in a table or matrix) &#8230; <a href="http://lukehayler.com/2009/07/custom-visibility-toggling-in-ssrs/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>I can see clearly now</strong></p>
<p>The visibility property of Report items can be a little gem. You can set the initial visibility of an item to hidden/visible , use another report item (a parent group in a table or matrix) and set the initial appearance of the toggle icon (+/-) either absolutely or using expressions. By using expressions, you can dynamically determine whether or not the item should be hidden (or collapsed in the case of a table/matrix grouping), and subsequently set the initial appearance of the icon.</p>
<p>In the example below, <strong>textbox8 </strong>is my toggle item for the group “<em>Priority</em>“. When the report loads I want to show the “<em>critical</em>” items in an expanded state, and all other priorities in a collapsed state. By right-clicking on<strong>textbox8 </strong>and choosing properties I get the window below. Select Expression for the <em>Initial appearance</em> <em>of the icon</em> and enter a formula that will determine whether the <em>initial appearance</em> <em>of the icon</em> is expanded (’<span style="color: #3333ff;">true</span>‘) or collapsed (’<span style="color: #3333ff;">false</span>‘). What you use in your expression to evaluate whether or not the toggle item is expanded or collapsed is up to you.</p>
<p>Note. The above assumes that the Group &#8220;<em>Priority&#8221; </em>has already had it&#8217;s visibility set using an appropriate expression to show the &#8220;<em>Critical&#8221;</em> items expanded and all other collapsed when the report is run. It also assumes that the visibility of the group &#8220;<em>Priority</em>&#8221; is toggled by another item (textbox8).</p>
<div id="attachment_33" class="wp-caption aligncenter" style="width: 594px"><img class="size-full wp-image-33" title="ReportItemVisibilityProperties" src="http://lukehayler.com/wp-content/uploads/2009/07/toggleproperties.jpg" alt="Fig 1. Text Box Property dialog, showing the Visibility Tab" width="584" height="420" /><p class="wp-caption-text">Fig 1. Text Box Property dialog, showing the Visibility Tab</p></div>
<p>The result is shown in Fig 2.</p>
<dt class="wp-caption-dt"> </dt>
<dt class="wp-caption-dt"> </dt>
<dt class="wp-caption-dt"> </dt>
<dt class="wp-caption-dt"> </dt>
<dt class="wp-caption-dt"> </dt>
<dt class="wp-caption-dt"> </dt>
<dt class="wp-caption-dt"> </dt>
<dt class="wp-caption-dt"> </dt>
<dt class="wp-caption-dt"> </dt>
<dt class="wp-caption-dt"> </dt>
<dt class="wp-caption-dt"> </dt>
<dt class="wp-caption-dt"> </dt>
<dt class="wp-caption-dt"> </dt>
<dt class="wp-caption-dt"> </dt>
<dt class="wp-caption-dt"> </dt>
<dt class="wp-caption-dt"> </dt>
<dt class="wp-caption-dt"> </dt>
<dt class="wp-caption-dt"> </dt>
<dt class="wp-caption-dt"> </dt>
<dt class="wp-caption-dt"> </dt>
<dt class="wp-caption-dt"> </dt>
<dt class="wp-caption-dt"> </dt>
<dt class="wp-caption-dt"> </dt>
<dt class="wp-caption-dt"> </dt>
<dt class="wp-caption-dt"> </dt>
<dt class="wp-caption-dt"></dt>
<div class="mceTemp mceIEcenter" style="text-align: center;">
<dl id="attachment_35" class="wp-caption aligncenter" style="width: 249px;">
<dt class="wp-caption-dt"><img class="size-full wp-image-35 " title="VisibilityResult" src="http://lukehayler.com/wp-content/uploads/2009/07/VisibilityResult.jpg" alt="Fig 2. Result of setting custom visibility for a table group" width="239" height="136" /></dt>
<dd class="wp-caption-dd">Fig 2. Result of setting custom visibility for a table group</dd>
</dl>
</div>
<div class="mceTemp" style="text-align: left;"><span style="font-size: small;"><span style="line-height: 17px;">-luke </span></span></div>
]]></content:encoded>
			<wfw:commentRss>http://lukehayler.com/2009/07/custom-visibility-toggling-in-ssrs/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
	</channel>
</rss>

