 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Suppress Subreport without clearing shared variable values</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/suppress-subreport-without-clearing-shared-variable-values/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/suppress-subreport-without-clearing-shared-variable-values/</link>
	<description></description>
	<lastBuildDate>Wed, 22 May 2013 14:10:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: kundula123</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/suppress-subreport-without-clearing-shared-variable-values/#comment-107883</link>
		<dc:creator>kundula123</dc:creator>
		<pubDate>Wed, 30 May 2012 15:57:38 +0000</pubDate>
		<guid isPermaLink="false">#comment-107883</guid>
		<description><![CDATA[helpful post m , i look this good after 2 year and worked like a charm.]]></description>
		<content:encoded><![CDATA[<p>helpful post m , i look this good after 2 year and worked like a charm.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kitana</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/suppress-subreport-without-clearing-shared-variable-values/#comment-94185</link>
		<dc:creator>kitana</dc:creator>
		<pubDate>Wed, 13 Jul 2011 15:38:55 +0000</pubDate>
		<guid isPermaLink="false">#comment-94185</guid>
		<description><![CDATA[I have a shared variable(e.g., $order total) which passes from a subreport group subtotal linked to the corresponding field (order number) in the main report.  Some of the orders in the main report do not have a corresponding value in the subreport.  If an order doesn&#039;t exist in the subreport, the previous existing $order total from the sub report incorrectly gets used in that order&#039;s calcs until the next subreport order number comes up.  I&#039;ve tried to vary the location of the passed variable in the main report.  What is the syntax to reset the variable to zero after each order number but still grab the calc from the next order in the subreport?

Here&#039;s the syntax I used to reset the variable:
shared numbervar Y:=0;

This causes the value to stay at 0 and not pass the correct value for other calculations.]]></description>
		<content:encoded><![CDATA[<p>I have a shared variable(e.g., $order total) which passes from a subreport group subtotal linked to the corresponding field (order number) in the main report.  Some of the orders in the main report do not have a corresponding value in the subreport.  If an order doesn&#8217;t exist in the subreport, the previous existing $order total from the sub report incorrectly gets used in that order&#8217;s calcs until the next subreport order number comes up.  I&#8217;ve tried to vary the location of the passed variable in the main report.  What is the syntax to reset the variable to zero after each order number but still grab the calc from the next order in the subreport?</p>
<p>Here&#8217;s the syntax I used to reset the variable:<br />
shared numbervar Y:=0;</p>
<p>This causes the value to stay at 0 and not pass the correct value for other calculations.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: uffe</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/suppress-subreport-without-clearing-shared-variable-values/#comment-82279</link>
		<dc:creator>uffe</dc:creator>
		<pubDate>Mon, 11 Oct 2010 11:18:24 +0000</pubDate>
		<guid isPermaLink="false">#comment-82279</guid>
		<description><![CDATA[Hurray!

This solves the issue, wich I have been looking high and low for an answer to. This was the trick needed. :D

An addition: You also have to turn off &quot;can grow&quot; on the first tab of format on subreport to finally hide the section.


&lt;b&gt;Thank you Jade1977!&lt;/b&gt;]]></description>
		<content:encoded><![CDATA[<p>Hurray!</p>
<p>This solves the issue, wich I have been looking high and low for an answer to. This was the trick needed. <img src='http://itknowledgeexchange.techtarget.com/itanswers/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>An addition: You also have to turn off &#8220;can grow&#8221; on the first tab of format on subreport to finally hide the section.</p>
<p><b>Thank you Jade1977!</b></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: indy1910</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/suppress-subreport-without-clearing-shared-variable-values/#comment-81125</link>
		<dc:creator>indy1910</dc:creator>
		<pubDate>Fri, 03 Sep 2010 02:53:47 +0000</pubDate>
		<guid isPermaLink="false">#comment-81125</guid>
		<description><![CDATA[Jade1977 Thankyou so much... Solves a lot of headaches for me... Awesome]]></description>
		<content:encoded><![CDATA[<p>Jade1977 Thankyou so much&#8230; Solves a lot of headaches for me&#8230; Awesome</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/10 queries in 0.038 seconds using memcached
Object Caching 313/319 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-22 15:28:22 -->