<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How Do I: Display a chart built on aggregated data (Eric Erhardt)</title><link>http://blogs.msdn.com/b/lightswitch/archive/2011/04/08/how-do-i-display-a-chart-built-on-aggregated-data-eric-erhardt.aspx</link><description>In a business application there is often a need to roll-up data and display it in a concise format.&amp;#160; This allows decision makers the ability to analyze the state of the business and make a decision quickly and correctly.&amp;#160; This roll-up may retrieve</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: How Do I: Display a chart built on aggregated data (Eric Erhardt)</title><link>http://blogs.msdn.com/b/lightswitch/archive/2011/04/08/how-do-i-display-a-chart-built-on-aggregated-data-eric-erhardt.aspx#10329073</link><pubDate>Thu, 12 Jul 2012 01:15:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10329073</guid><dc:creator>nickmiller</dc:creator><description>&lt;p&gt;To get this working with the _InstrinsicData database I had to add &amp;quot;Enlist=false;&amp;quot; to the connection string in the Web.config of the Lightswitch Server project. &amp;nbsp;Not sure why...&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10329073" width="1" height="1"&gt;</description></item><item><title>re: How Do I: Display a chart built on aggregated data (Eric Erhardt)</title><link>http://blogs.msdn.com/b/lightswitch/archive/2011/04/08/how-do-i-display-a-chart-built-on-aggregated-data-eric-erhardt.aspx#10326801</link><pubDate>Wed, 04 Jul 2012 11:34:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10326801</guid><dc:creator>nickmiller</dc:creator><description>&lt;p&gt;Great walkthrough thanks, learned a lot. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Had to put the bar chart control in a separate project. &amp;nbsp;With VS 2012 RC, I could not add a reference to it in the &amp;#39;New Custom Control&amp;#39; dialogue when I put it in the Client project.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10326801" width="1" height="1"&gt;</description></item><item><title>re: How Do I: Display a chart built on aggregated data (Eric Erhardt)</title><link>http://blogs.msdn.com/b/lightswitch/archive/2011/04/08/how-do-i-display-a-chart-built-on-aggregated-data-eric-erhardt.aspx#10295023</link><pubDate>Wed, 18 Apr 2012 17:12:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10295023</guid><dc:creator>Todd Hyatt</dc:creator><description>&lt;p&gt;Thanks Eric.&lt;/p&gt;
&lt;p&gt;Here is the new class definition that fixed this implicit filtering.&lt;/p&gt;
&lt;p&gt;Public Class RollupStatus&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;lt;Key()&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; Public Property GroupId As Guid&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;lt;Key()&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; Public Property StatusDescription As String&lt;/p&gt;
&lt;p&gt; &amp;nbsp; Public Property iStatusCount As Integer&lt;/p&gt;
&lt;p&gt;End Class&lt;/p&gt;
&lt;p&gt;As Eric suggested these dialogs are probably best suited for the discussion group so I am putting a plug-in here.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://social.msdn.microsoft.com/Forums/en-US/lightswitch/threads"&gt;social.msdn.microsoft.com/.../threads&lt;/a&gt; &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10295023" width="1" height="1"&gt;</description></item><item><title>re: How Do I: Display a chart built on aggregated data (Eric Erhardt)</title><link>http://blogs.msdn.com/b/lightswitch/archive/2011/04/08/how-do-i-display-a-chart-built-on-aggregated-data-eric-erhardt.aspx#10294712</link><pubDate>Tue, 17 Apr 2012 21:55:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10294712</guid><dc:creator>Eric Erhardt</dc:creator><description>&lt;p&gt;@Todd - As we discussed offline, the issue is that the aggregate query is returning multiple rows with the same &amp;quot;GroupId&amp;quot;. &amp;nbsp;Thus, only marking GroupId as the Key for the RollupStatus class isn&amp;#39;t enough. &amp;nbsp;LightSwitch sees multiple rows with the same Key values, and discards what it thinks are duplicate records.&lt;/p&gt;
&lt;p&gt;To fix this, you need to put &amp;lt;Key()&amp;gt; attributes on the subset of properties that will uniquely identify a row. &amp;nbsp;In this case, you need to add &amp;lt;Key()&amp;gt; to the StatusDescription property in the RollupStatus class.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10294712" width="1" height="1"&gt;</description></item><item><title>re: How Do I: Display a chart built on aggregated data (Eric Erhardt)</title><link>http://blogs.msdn.com/b/lightswitch/archive/2011/04/08/how-do-i-display-a-chart-built-on-aggregated-data-eric-erhardt.aspx#10294583</link><pubDate>Tue, 17 Apr 2012 17:38:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10294583</guid><dc:creator>Todd</dc:creator><description>&lt;p&gt;Eric,&lt;/p&gt;
&lt;p&gt;Very good article, works great when summarizing to a single row. &amp;nbsp;What if my summary is a grouping of more rows, I am only gettting the first row in my Screen when trying to summarize a group of orders by there order status.&lt;/p&gt;
&lt;p&gt; &amp;lt;Query(IsDefault:=True)&amp;gt;&lt;/p&gt;
&lt;p&gt; Public Function GetRollupByGroupId() As IQueryable(Of RollupStatus)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Return From od In Me.Context.Orders&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Join st In Me.Context.OrderStatus On st.OrderID Equals od.OrderID&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Group od By od.GroupID, st.StatusType.StatusDescription&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Into Count()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Select New RollupStatus With {.GroupId = GroupID.Value,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.StatusDescription = StatusDescription,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.iStatusCount = Count}&lt;/p&gt;
&lt;p&gt;End Function&lt;/p&gt;
&lt;p&gt;End Class&lt;/p&gt;
&lt;p&gt;Public Class RollupStatus&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;Key()&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Public Property GroupId As Guid&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Public Property StatusDescription As String&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Public Property iStatusCount As Integer&lt;/p&gt;
&lt;p&gt;End Class&lt;/p&gt;
&lt;p&gt;Thanks again,&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10294583" width="1" height="1"&gt;</description></item><item><title>re: How Do I: Display a chart built on aggregated data (Eric Erhardt)</title><link>http://blogs.msdn.com/b/lightswitch/archive/2011/04/08/how-do-i-display-a-chart-built-on-aggregated-data-eric-erhardt.aspx#10292802</link><pubDate>Wed, 11 Apr 2012 18:53:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10292802</guid><dc:creator>Eric Erhardt</dc:creator><description>&lt;p&gt;I have added the project (both VB and C#) to the MSDN code gallery: &lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://code.msdn.microsoft.com/Display-a-chart-built-on-eb631504"&gt;code.msdn.microsoft.com/Display-a-chart-built-on-eb631504&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Enjoy!&lt;/p&gt;
&lt;p&gt;Eric&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10292802" width="1" height="1"&gt;</description></item><item><title>re: How Do I: Display a chart built on aggregated data (Eric Erhardt)</title><link>http://blogs.msdn.com/b/lightswitch/archive/2011/04/08/how-do-i-display-a-chart-built-on-aggregated-data-eric-erhardt.aspx#10291806</link><pubDate>Mon, 09 Apr 2012 06:34:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10291806</guid><dc:creator>张向亮</dc:creator><description>&lt;p&gt;Added:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; can you send the project of the paper to me?? I would like to learn it.My mailbox is zxliang999@hotmail.com&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10291806" width="1" height="1"&gt;</description></item><item><title>re: How Do I: Display a chart built on aggregated data (Eric Erhardt)</title><link>http://blogs.msdn.com/b/lightswitch/archive/2011/04/08/how-do-i-display-a-chart-built-on-aggregated-data-eric-erhardt.aspx#10291804</link><pubDate>Mon, 09 Apr 2012 06:21:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10291804</guid><dc:creator>张向亮</dc:creator><description>&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt; &amp;nbsp;I have a trouble when I try to make a project according to method in the paper.The problem is as problem:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; when I enter F5 to run the project and can succefully enter into the system,at this time,the problem appears in the search screen,the information is &amp;quot;TypeName Format of Custom Control is not correct&amp;quot;.So I want to ask you that what&amp;#39;s wrong with the project and how to solve the problem.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; thanks!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10291804" width="1" height="1"&gt;</description></item><item><title>re: How Do I: Display a chart built on aggregated data (Eric Erhardt)</title><link>http://blogs.msdn.com/b/lightswitch/archive/2011/04/08/how-do-i-display-a-chart-built-on-aggregated-data-eric-erhardt.aspx#10191744</link><pubDate>Mon, 01 Aug 2011 17:49:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10191744</guid><dc:creator>ADefwebserver</dc:creator><description>&lt;p&gt;I created a Blog that coveres this material with more screen shots for those of us who need a bit more help :)&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://lightswitchhelpwebsite.com/Blog/tabid/61/EntryId/47/WCF-RIA-Service-Combining-Two-Tables.aspx"&gt;lightswitchhelpwebsite.com/.../WCF-RIA-Service-Combining-Two-Tables.aspx&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10191744" width="1" height="1"&gt;</description></item><item><title>re: How Do I: Display a chart built on aggregated data (Eric Erhardt)</title><link>http://blogs.msdn.com/b/lightswitch/archive/2011/04/08/how-do-i-display-a-chart-built-on-aggregated-data-eric-erhardt.aspx#10190987</link><pubDate>Fri, 29 Jul 2011 06:31:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10190987</guid><dc:creator>ADefwebserver</dc:creator><description>&lt;p&gt;For a C# version see:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://social.msdn.microsoft.com/Forums/en-US/lightswitch/thread/6485f314-d9aa-4293-8725-0295304d8e3f"&gt;social.msdn.microsoft.com/.../6485f314-d9aa-4293-8725-0295304d8e3f&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10190987" width="1" height="1"&gt;</description></item></channel></rss>