<?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 for Ben Gribaudo</title>
	<atom:link href="http://bengribaudo.com/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://bengribaudo.com</link>
	<description>&#34;Come ye, and let us walk in the light of the LORD.&#34; Isaiah 2:5</description>
	<lastBuildDate>Mon, 23 Apr 2012 12:32:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>Comment on Programmatically Setting a Magento Item&#8217;s Price When Adding It to Cart by Ben</title>
		<link>http://bengribaudo.com/blog/2011/07/29/1514/programmatically-setting-m-items-price-when-adding-to-cart/comment-page-1#comment-1050</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Mon, 23 Apr 2012 12:32:50 +0000</pubDate>
		<guid isPermaLink="false">http://bengribaudo.com/?p=1514#comment-1050</guid>
		<description>Good question! I&#039;m not sure of the answer off the top of my head. You might try posting the question on Magento&#039;s boards or StackOverflow....</description>
		<content:encoded><![CDATA[<p>Good question! I&#8217;m not sure of the answer off the top of my head. You might try posting the question on Magento&#8217;s boards or StackOverflow&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Programmatically Setting a Magento Item&#8217;s Price When Adding It to Cart by Col SC Sood (Retd), Professor</title>
		<link>http://bengribaudo.com/blog/2011/07/29/1514/programmatically-setting-m-items-price-when-adding-to-cart/comment-page-1#comment-1046</link>
		<dc:creator>Col SC Sood (Retd), Professor</dc:creator>
		<pubDate>Wed, 18 Apr 2012 00:08:31 +0000</pubDate>
		<guid isPermaLink="false">http://bengribaudo.com/?p=1514#comment-1046</guid>
		<description>I am a beginner to Magento. 
Can you please explain as to how to set product price for a Group in Magento programatically. Is setGroupPrice a valid method? If yes, then how to use it?</description>
		<content:encoded><![CDATA[<p>I am a beginner to Magento.<br />
Can you please explain as to how to set product price for a Group in Magento programatically. Is setGroupPrice a valid method? If yes, then how to use it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SSRS: Dataset Field List Is Empty Even After Refresh Fields by Ron Smith</title>
		<link>http://bengribaudo.com/blog/2011/04/21/929/ssrs-dataset-field-list-is-empty-even-after-refresh-fields/comment-page-1#comment-1045</link>
		<dc:creator>Ron Smith</dc:creator>
		<pubDate>Tue, 17 Apr 2012 21:08:55 +0000</pubDate>
		<guid isPermaLink="false">http://bengribaudo.com/?p=929#comment-1045</guid>
		<description>The way I handled this was to add a bit param @get_column_names_only, set it to false by default, and then just select column names if true. This only works if you know the column names you are going to use. In my case the column names were simply a guid value and label, used to get distinct name/value pairs from entities for SSRS dropdown lists. When creating the dataset in SSRS, I set @get_column_names_only to false, but it still pulled the column names. With out this, it just came up blank.

-- =============================================
-- Author: Ron Smith
-- Create date: 4/17/2012
-- Description: Generates Drop Down Select list for report params
-- =============================================
create procedure p_param_select
	@get_column_names_only bit = 0,
	@include_all bit = 1,
	@entity_name nvarchar(200),
	@value_name nvarchar(200),
	@label_name nvarchar(200),
	@filter nvarchar(max) = &#039;&#039;
as
begin

	if @get_column_names_only = 1
		select
			cast(null as nvarchar(36)) value,
			cast(null as nvarchar(200)) label
	else begin	
		declare @sql nvarchar(max)
		set @sql = &#039;&#039;
		if @include_all = 1
			set @sql = &#039;
				select
					cast(&#039;&#039;&#039;&#039; as nvarchar(36)) value,
					cast(&#039;&#039; - All - &#039;&#039; as nvarchar(200)) label
				union&#039;

		set @sql = @sql + &#039;
			select distinct
				cast(&#039; + @value_name + &#039; as nvarchar(36)),
				&#039; + @label_name + &#039;
			from &#039; + @entity_name + &#039;
			where &#039; + @value_name + &#039; is not null&#039;
		
		if @filter  &#039;&#039;
			set @sql = @sql + &#039;
				&#039; + @filter
		
		set @sql = @sql + &#039;
				order by
					value&#039;
		
		exec(@sql)
	end	
end
go</description>
		<content:encoded><![CDATA[<p>The way I handled this was to add a bit param @get_column_names_only, set it to false by default, and then just select column names if true. This only works if you know the column names you are going to use. In my case the column names were simply a guid value and label, used to get distinct name/value pairs from entities for SSRS dropdown lists. When creating the dataset in SSRS, I set @get_column_names_only to false, but it still pulled the column names. With out this, it just came up blank.</p>
<p>&#8211; =============================================<br />
&#8211; Author: Ron Smith<br />
&#8211; Create date: 4/17/2012<br />
&#8211; Description: Generates Drop Down Select list for report params<br />
&#8211; =============================================<br />
create procedure p_param_select<br />
	@get_column_names_only bit = 0,<br />
	@include_all bit = 1,<br />
	@entity_name nvarchar(200),<br />
	@value_name nvarchar(200),<br />
	@label_name nvarchar(200),<br />
	@filter nvarchar(max) = &#8221;<br />
as<br />
begin</p>
<p>	if @get_column_names_only = 1<br />
		select<br />
			cast(null as nvarchar(36)) value,<br />
			cast(null as nvarchar(200)) label<br />
	else begin<br />
		declare @sql nvarchar(max)<br />
		set @sql = &#8221;<br />
		if @include_all = 1<br />
			set @sql = &#8216;<br />
				select<br />
					cast(&#8221;&#8221; as nvarchar(36)) value,<br />
					cast(&#8221; &#8211; All &#8211; &#8221; as nvarchar(200)) label<br />
				union&#8217;</p>
<p>		set @sql = @sql + &#8216;<br />
			select distinct<br />
				cast(&#8216; + @value_name + &#8216; as nvarchar(36)),<br />
				&#8216; + @label_name + &#8216;<br />
			from &#8216; + @entity_name + &#8216;<br />
			where &#8216; + @value_name + &#8216; is not null&#8217;</p>
<p>		if @filter  &#8221;<br />
			set @sql = @sql + &#8216;<br />
				&#8216; + @filter</p>
<p>		set @sql = @sql + &#8216;<br />
				order by<br />
					value&#8217;</p>
<p>		exec(@sql)<br />
	end<br />
end<br />
go</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SSRS: Dataset Field List Is Empty Even After Refresh Fields by Ben Garner</title>
		<link>http://bengribaudo.com/blog/2011/04/21/929/ssrs-dataset-field-list-is-empty-even-after-refresh-fields/comment-page-1#comment-1036</link>
		<dc:creator>Ben Garner</dc:creator>
		<pubDate>Sat, 14 Apr 2012 09:11:35 +0000</pubDate>
		<guid isPermaLink="false">http://bengribaudo.com/?p=929#comment-1036</guid>
		<description>I looked at the profiler on the server I was running.  I noticed two calls after I clicked the &#039;!&#039; in the dataset field designer and ran the sproc.  Both calls referenced the same Stored Procedure.  
The first included the parameters I entered, which correlates to seeing a dataset on the designer screen.  
The second one showed up after pressing the next &#039;OK&#039; on dataset properties window.  This one had NULL values assigned to the params. 
 I ran this in a query window and got a &#039;command successful&#039; notice instead of a blank dataset.  This is the problem.
I think Kannankerril was alluding to the fix.   

SOLUTION:
    --  Alter your sproc to return blank fields if NULL parameter values are provided. 
 
This only took me 2 ISNULL checks (1 for each param) and a single query for my expected fields listed as&quot;

&#039;Select &#039;&#039; as Field1, &#039;&#039; as Field2, ....&#039;.

Works like a charm in SSRS  :)</description>
		<content:encoded><![CDATA[<p>I looked at the profiler on the server I was running.  I noticed two calls after I clicked the &#8216;!&#8217; in the dataset field designer and ran the sproc.  Both calls referenced the same Stored Procedure.<br />
The first included the parameters I entered, which correlates to seeing a dataset on the designer screen.<br />
The second one showed up after pressing the next &#8216;OK&#8217; on dataset properties window.  This one had NULL values assigned to the params.<br />
 I ran this in a query window and got a &#8216;command successful&#8217; notice instead of a blank dataset.  This is the problem.<br />
I think Kannankerril was alluding to the fix.   </p>
<p>SOLUTION:<br />
    &#8212;  Alter your sproc to return blank fields if NULL parameter values are provided. </p>
<p>This only took me 2 ISNULL checks (1 for each param) and a single query for my expected fields listed as&#8221;</p>
<p>&#8216;Select &#8221; as Field1, &#8221; as Field2, &#8230;.&#8217;.</p>
<p>Works like a charm in SSRS  <img src='http://bengribaudo.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Programmatically Setting a Magento Item&#8217;s Price When Adding It to Cart by Ben</title>
		<link>http://bengribaudo.com/blog/2011/07/29/1514/programmatically-setting-m-items-price-when-adding-to-cart/comment-page-1#comment-1028</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Fri, 23 Mar 2012 01:39:39 +0000</pubDate>
		<guid isPermaLink="false">http://bengribaudo.com/?p=1514#comment-1028</guid>
		<description>The above is called from a custom module/extension--i.e. from either the controller or model of the custom extension.</description>
		<content:encoded><![CDATA[<p>The above is called from a custom module/extension&#8211;i.e. from either the controller or model of the custom extension.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Programmatically Setting a Magento Item&#8217;s Price When Adding It to Cart by Naveen</title>
		<link>http://bengribaudo.com/blog/2011/07/29/1514/programmatically-setting-m-items-price-when-adding-to-cart/comment-page-1#comment-1023</link>
		<dc:creator>Naveen</dc:creator>
		<pubDate>Wed, 21 Mar 2012 14:43:54 +0000</pubDate>
		<guid isPermaLink="false">http://bengribaudo.com/?p=1514#comment-1023</guid>
		<description>Hi,

From where are you calling this function?
Is it not necessary to create any event observer?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>From where are you calling this function?<br />
Is it not necessary to create any event observer?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SSRS Date/Time Parameter Disabled When Default Value Expression Is Used by Mike Krausnick</title>
		<link>http://bengribaudo.com/blog/2011/03/02/595/ssrs-datetime-parameter-disabled-when-default-value-expression-is-used/comment-page-1#comment-1014</link>
		<dc:creator>Mike Krausnick</dc:creator>
		<pubDate>Tue, 13 Mar 2012 00:03:44 +0000</pubDate>
		<guid isPermaLink="false">http://bengribaudo.com/?p=595#comment-1014</guid>
		<description>Thanks for this post - it helped me a lot.  I experimented and discovered that if the default value comes from a dataset instead of an expression, the dataset is not disabled.  In my case, parameter 1 was a date with a fixed default value and parameter 2 was a date with a default value defined by an expression, not dependent on parameter 1.  Since it was not dependent on parameter 1, I thought there was no reason for it to be disabled.   

I think this is a bug, but anyway, the workaround is to use a dataset for the default value, and put the expression in the query expression of the dataset.</description>
		<content:encoded><![CDATA[<p>Thanks for this post &#8211; it helped me a lot.  I experimented and discovered that if the default value comes from a dataset instead of an expression, the dataset is not disabled.  In my case, parameter 1 was a date with a fixed default value and parameter 2 was a date with a default value defined by an expression, not dependent on parameter 1.  Since it was not dependent on parameter 1, I thought there was no reason for it to be disabled.   </p>
<p>I think this is a bug, but anyway, the workaround is to use a dataset for the default value, and put the expression in the query expression of the dataset.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Canon EOS Utility—Automatic Camera Clock Synchronization by Ben</title>
		<link>http://bengribaudo.com/blog/2011/03/17/874/canon-eos-utility-automatic-camera-clock-synchronization/comment-page-1#comment-1010</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Tue, 28 Feb 2012 15:18:59 +0000</pubDate>
		<guid isPermaLink="false">http://bengribaudo.com/?p=874#comment-1010</guid>
		<description>Good question, Dave! I think Canon would be the best one to answer it though there&#039;s &lt;em&gt;a chance&lt;/em&gt; that you might be able to find a third-party utility which does what you want.</description>
		<content:encoded><![CDATA[<p>Good question, Dave! I think Canon would be the best one to answer it though there&#8217;s <em>a chance</em> that you might be able to find a third-party utility which does what you want.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SSRS: Dataset Field List Is Empty Even After Refresh Fields by Madhuri</title>
		<link>http://bengribaudo.com/blog/2011/04/21/929/ssrs-dataset-field-list-is-empty-even-after-refresh-fields/comment-page-1#comment-1009</link>
		<dc:creator>Madhuri</dc:creator>
		<pubDate>Mon, 27 Feb 2012 22:22:25 +0000</pubDate>
		<guid isPermaLink="false">http://bengribaudo.com/?p=929#comment-1009</guid>
		<description>Hi kannankeril,
Can You plz eloborate how you fixed the problem of fields not being populated in the dataset while using a storedproc in SSRS?

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi kannankeril,<br />
Can You plz eloborate how you fixed the problem of fields not being populated in the dataset while using a storedproc in SSRS?</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Canon EOS Utility—Automatic Camera Clock Synchronization by Dave G</title>
		<link>http://bengribaudo.com/blog/2011/03/17/874/canon-eos-utility-automatic-camera-clock-synchronization/comment-page-1#comment-1008</link>
		<dc:creator>Dave G</dc:creator>
		<pubDate>Sun, 26 Feb 2012 03:35:14 +0000</pubDate>
		<guid isPermaLink="false">http://bengribaudo.com/?p=874#comment-1008</guid>
		<description>I keep my camera connected to EOS for days at a time therefore it doesn&#039;t re-connect and synchronize. Any way to have it automatically sync regularly so it keeps time accurately?</description>
		<content:encoded><![CDATA[<p>I keep my camera connected to EOS for days at a time therefore it doesn&#8217;t re-connect and synchronize. Any way to have it automatically sync regularly so it keeps time accurately?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

