<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Silverlight Stored Procedures</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Silverlight Stored Procedures</description>
  <pubDate>Mon, 13 Apr 2026 16:47:39 -700</pubDate>
  <lastBuildDate>Thu, 15 Dec 2011 08:55:02 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=3153</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Silverlight Stored Procedures : thanks Denis. the example code...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3153&amp;PID=12249#12249</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1090" rel="nofollow">rickadams</a><br /><strong>Subject:</strong> 3153<br /><strong>Posted:</strong> 15-Dec-2011 at 8:55am<br /><br />thanks Denis. the example code did the trick and I am now able to get my complex types returned correctly<div><br></div><div>Rick</div>]]>
   </description>
   <pubDate>Thu, 15 Dec 2011 08:55:02 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3153&amp;PID=12249#12249</guid>
  </item> 
  <item>
   <title>Silverlight Stored Procedures : Hi rickadams;Sorry for the delayed...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3153&amp;PID=12239#12239</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 3153<br /><strong>Posted:</strong> 14-Dec-2011 at 12:31pm<br /><br />Hi rickadams;<div><br></div><div>Sorry for the delayed reply. Here's a sample in Silverlight showing a similar example using NorthwindIB on how to use StoredProcQuery returning a complex type with parallel coroutines.</div><div><br></div><div><a href="http://www.ideablade.com/forum/uploads/912/SLStoredProcWithParallelCoroutine.zip" target="_blank">uploads/912/SLStoredProcWithParallelCoroutine.zip</a></div>]]>
   </description>
   <pubDate>Wed, 14 Dec 2011 12:31:34 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3153&amp;PID=12239#12239</guid>
  </item> 
  <item>
   <title>Silverlight Stored Procedures :   I am having implementing a...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3153&amp;PID=12223#12223</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1090" rel="nofollow">rickadams</a><br /><strong>Subject:</strong> 3153<br /><strong>Posted:</strong> 12-Dec-2011 at 2:25pm<br /><br />I am having implementing a stored procedure and returning a complex type. Here is the stored proc<div><font size="2">&nbsp;</div><div>ALTER PROCEDURE &#091;dbo&#093;.&#091;PromoCatalogItem_TotalQuantity&#093; <br>&nbsp;<br>@promoCatalog_ID decimal(18,0),<br>@member_ID decimal(18,0)<br>AS<br>BEGIN<br>&nbsp;&nbsp;&nbsp; SET NOCOUNT ON;</div><div>&nbsp;&nbsp;&nbsp; SELECT PromoCatalog_Item_ID,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SUM(T2.Promo.value('(DATACOUNT)&#091;1&#093;', 'decimal(18,6)')) AS TotalOnQuantity ,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COUNT(*) as Times<br>&nbsp;&nbsp;&nbsp; FROM Member_Promocatalog_Data<br>&nbsp;&nbsp;&nbsp; CROSS APPLY ReportData1.nodes('/DATA/ONPROMO') T2(Promo)<br>&nbsp;&nbsp;&nbsp; WHERE Member_PromoCatalog_ID = @promoCatalog_ID<br>&nbsp;&nbsp;&nbsp; AND ReceiverID = @member_ID<br>&nbsp;&nbsp;&nbsp; GROUP BY PromoCatalog_Item_ID</div><div>END</div><div>&nbsp;</div><div>I wish to return a complex type which is the rows from the SELECT statement. I have created a FunctionImport defined for this stored proc but I am unable to return the results. I have verified that the correct paramters are passed to the SP and I have validated that the SP returns a result with this parameters using SQL Enterprise Manager. Here is the code I am using in Silverlight</div><div>&nbsp;</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public INotifyCompleted load_PromoCatalogItemOrderLevels_Coroutine( Decimal promoCatalogID, Decimal memberID) <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var q = mgrPromoCatalog.PromoCatalogItem_TotalQuantityQuery(memberID, promoCatalogID);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return mgrPromoCatalog.ExecuteQueryAsync(q);</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;</div><div>and I call this in a Coroutine using StartParallel. Here is the Completed handler ( I Have deleted other code to minimize the amount of text )</div><div>&nbsp;</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public void load_MemberPromoCatalogEntities(Member_PromoCatalog memberPromoCatalog, Decimal memberID)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var coop = Coroutine.StartParallel(() =&gt; load_MemberPromoCatalogEntitiesCoroutine(memberPromoCatalog, memberID));<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; coop.Completed += (sender, args) =&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (args.CompletedSuccessfully)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //get the results from our stored procedure call<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var results = args.Notifications&#091;5&#093;&nbsp;</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div><div>&nbsp;</div><div>I see no errors in the results but I have not data returning. Any help would be appreciated</font></div>]]>
   </description>
   <pubDate>Mon, 12 Dec 2011 14:25:39 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3153&amp;PID=12223#12223</guid>
  </item> 
 </channel>
</rss>