<?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 : Aggregate Data via Stored Procedures</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Aggregate Data via Stored Procedures</description>
  <pubDate>Sat, 18 May 2013 03:12:06 -700</pubDate>
  <lastBuildDate>Thu, 14 Jun 2007 17:23:54 -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=83</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>Aggregate Data via Stored Procedures : Here&amp;#039;s the solution to that...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=83&amp;PID=175#175</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=24" rel="nofollow">Linguinut</a><br /><strong>Subject:</strong> 83<br /><strong>Posted:</strong> 14-Jun-2007 at 5:23pm<br /><br />Here's the solution to that problem.&nbsp; Initially, I followed the video on the <FONT size=2>StoredProcRdbQuery with the following code entry:<DIV></DIV><DIV></DIV><DIV></DIV><FONT size=2><P>InventoryAging&#091;&#093; currAging = (InventoryAging&#091;&#093;)mPersMgr.GetEntities(aQuery);</P><DIV></DIV>Now, this works, but it creates a nonsortable list.&nbsp; So, I adjusted the code to this:<DIV></DIV><DIV></DIV><FONT size=2><DIV>&nbsp;</DIV><DIV>private EntityList&lt;InventoryAging&gt; mInvAging; //declared as a private variable earlier in the class code</DIV><DIV>mInvAging = mPersMgr.GetEntities&lt;</FONT><FONT size=2>InventoryAging</FONT><FONT size=2>&gt;(aQuery);</FONT></DIV><DIV><FONT size=2>&nbsp;</DIV><DIV></DIV>And the list can now be sorted.&nbsp; Simple enough.<DIV>&nbsp;</DIV><DIV><DIV></DIV><DIV></DIV>Bill</DIV></FONT></FONT></FONT>]]>
   </description>
   <pubDate>Thu, 14 Jun 2007 17:23:54 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=83&amp;PID=175#175</guid>
  </item> 
  <item>
   <title>Aggregate Data via Stored Procedures : Ok...I am a bit stumped on a (I...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=83&amp;PID=174#174</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=24" rel="nofollow">Linguinut</a><br /><strong>Subject:</strong> 83<br /><strong>Posted:</strong> 14-Jun-2007 at 5:05pm<br /><br />Ok...I am a bit stumped on a (I think) related matter.&nbsp; The datagridview (dgv)&nbsp;is populating beautifully with the data derived from the stored procedure.&nbsp; Awesome!&nbsp; Three lines of manual code pull it all off.&nbsp; Now, the dgv will not sort on any column.&nbsp; I've checked all of the properties of the form, dgv and the individual columns and I do not see any constraint on the sorting of the grid columns.&nbsp; Is there some kind of limitation built-in to the DevForce sp query?&nbsp; This is probably another one of those "duh!" moments.]]>
   </description>
   <pubDate>Thu, 14 Jun 2007 17:05:54 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=83&amp;PID=174#174</guid>
  </item> 
  <item>
   <title>Aggregate Data via Stored Procedures : Silly me.   I forgot to update...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=83&amp;PID=173#173</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=24" rel="nofollow">Linguinut</a><br /><strong>Subject:</strong> 83<br /><strong>Posted:</strong> 14-Jun-2007 at 2:59pm<br /><br />Silly me.&nbsp; <img src="http://www.ideablade.com/forum/smileys/smiley29.gif" height="17" width="17" border="0" align="absmiddle" alt="Wacko" /><DIV>&nbsp;</DIV><DIV>I forgot to update the BOS.</DIV>]]>
   </description>
   <pubDate>Thu, 14 Jun 2007 14:59:41 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=83&amp;PID=173#173</guid>
  </item> 
  <item>
   <title>Aggregate Data via Stored Procedures : Great, David!  I created a template...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=83&amp;PID=172#172</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=24" rel="nofollow">Linguinut</a><br /><strong>Subject:</strong> 83<br /><strong>Posted:</strong> 14-Jun-2007 at 2:51pm<br /><br />Great, David!<DIV>&nbsp;</DIV><DIV>I created a template stored procedure that created the schema for me.&nbsp; Worked beautifully.&nbsp; I have the schema to work with, now,&nbsp;and compile into the model project.</DIV><DIV>&nbsp;</DIV><DIV>Now, the query...here is what I did (InventoryAging is the object that points to the stored procedure):</DIV><DIV><FONT color=#2b91af size=2></FONT>&nbsp;</DIV><DIV><FONT color=#2b91af size=2>StoredProcRdbQuery</FONT><FONT size=2> aQuery = </FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> </FONT><FONT color=#2b91af size=2>InventoryAging</FONT><FONT size=2>.</FONT><FONT color=#2b91af size=2>StoredProcRdbQuery</FONT><FONT size=2>(dtmAgingDate.Value);</FONT></DIV><DIV><FONT color=#2b91af size=2>InventoryAging</FONT><FONT size=2>&#091;&#093; currAging = (</FONT><FONT color=#2b91af size=2>InventoryAging</FONT><FONT size=2>&#091;&#093;)mPersMgr.GetEntities(aQuery);</FONT></DIV><DIV><FONT size=2>mInvAgingBS.DataSource = currAging;</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>I get a hiccup at the second line shown here.&nbsp; It says the following:</FONT></DIV><DIV><FONT size=2>Unable to load type Model.InventoryAgingDataRow+StoredProcRdbQuery required for deserialization.</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>I thought I would follow the code that was outlined in the video, but I must still be doing something wrong.&nbsp; Any more tricks?</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Thanks,</FONT></DIV><DIV><FONT size=2>Bill</DIV></FONT>]]>
   </description>
   <pubDate>Thu, 14 Jun 2007 14:51:53 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=83&amp;PID=172#172</guid>
  </item> 
  <item>
   <title>Aggregate Data via Stored Procedures : believe that the root cause here...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=83&amp;PID=170#170</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=23" rel="nofollow">davidklitzke</a><br /><strong>Subject:</strong> 83<br /><strong>Posted:</strong> 14-Jun-2007 at 1:51pm<br /><br /><FONT color=#0000ff>&nbsp;believe that the root cause here is that you are using temporary tables which is confusing to the Object Mapper.</FONT><DIV><SPAN =203185916-14062007><SPAN =828105714-11092006></SPAN></SPAN>&nbsp;</DIV><DIV><SPAN =203185916-14062007><SPAN =828105714-11092006><FONT color=#0000ff>Fortunately, there is an easy workaround:</FONT></SPAN></SPAN></DIV><DIV><SPAN =203185916-14062007><SPAN =828105714-11092006><FONT color=#0000ff></FONT></SPAN></SPAN>&nbsp;</DIV><DIV><SPAN =203185916-14062007><SPAN =828105714-11092006><FONT color=#0000ff>Just comment out the relevant sections of the stored pocedure that create and reference the temporary table(s), then use the OM to create the business object.&nbsp; Finally, you can go back to the database, and take out your comments.&nbsp; Everything will work as it should.&nbsp; Of course, every time you go back to the OM to edit/create stored procedure-backed business objects, you must again comment out the sections that acccess the temporary tables.</FONT></SPAN></SPAN></DIV><DIV><SPAN =203185916-14062007><SPAN =828105714-11092006><FONT color=#0000ff></FONT></SPAN></SPAN>&nbsp;</DIV><DIV><SPAN =203185916-14062007><SPAN =828105714-11092006><FONT color=#0000ff>An alternative workaround is to use any "dummy"&nbsp;stored procedure that has the correct input and output columns. After mapping has succeeded, replace the "dummy" stored procedure with the real one.&nbsp; </FONT></SPAN></SPAN></DIV><DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 14 Jun 2007 13:51:42 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=83&amp;PID=170#170</guid>
  </item> 
  <item>
   <title>Aggregate Data via Stored Procedures : I have a stored procedure that...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=83&amp;PID=165#165</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=24" rel="nofollow">Linguinut</a><br /><strong>Subject:</strong> 83<br /><strong>Posted:</strong> 14-Jun-2007 at 11:20am<br /><br /><DIV>I have a stored procedure that lists the last ship date for a part if the ship date is older than a given date.&nbsp; It is a so that returns a group of rows that do not reflect any given entity...it is a unique, yet consistent, ad hoc group of fields and rows.</DIV><DIV>&nbsp;</DIV><DIV>Is it possible to use DevForce to create the sp entity, then run the query as needed?&nbsp; If I use the object mapper,&nbsp;I am greeted by an error stating that there is no schema for the sp.&nbsp; As a result, I am unable to use the sp.&nbsp; How do I get DevForce to "see" the schema?&nbsp; Do I have to build a schema into the sp somehow?&nbsp; Should I not use DevForce in these situations?</DIV><DIV>&nbsp;</DIV><DIV>Thanks for your help,</DIV><DIV>Bill</DIV>]]>
   </description>
   <pubDate>Thu, 14 Jun 2007 11:20:43 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=83&amp;PID=165#165</guid>
  </item> 
 </channel>
</rss>