<?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 : Master Detail</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Master Detail</description>
  <pubDate>Wed, 10 Jun 2026 19:11:52 -700</pubDate>
  <lastBuildDate>Mon, 13 Sep 2010 11:55:56 -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=2129</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>Master Detail : Hi  One more issue with this.    var...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2129&amp;PID=8474#8474</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=770" rel="nofollow">GeorgeB</a><br /><strong>Subject:</strong> 2129<br /><strong>Posted:</strong> 13-Sep-2010 at 11:55am<br /><br />Hi<DIV>&nbsp;</DIV><DIV>One more issue with this.</DIV><DIV>&nbsp;</DIV><DIV><DIV><DIV>var customersWithFilteredSalesOrder = _mgr.Customers</DIV><DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;.Where(c =&gt; c.Country == "UK")</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Include(s =&gt; s.SalesOffice)</DIV><DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;.Select(c =&gt; new { customer = c,&nbsp;c.SalesOffice,&nbsp;orders = c.Orders.Where(o =&gt; o.IsOpen) });</DIV><DIV>&nbsp;</DIV><DIV>I have an Include which brings through the sales office but when I get the results and load them into my ObservableCollection, they're not there.</DIV><DIV><PRE style="FONT-FAMILY: c&#111;nsolas">customersWithFilteredSalesOrder .<SPAN style="COLOR: darkcyan">ExecuteAsync</SPAN>((op)&nbsp;=&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: purple">Customers </SPAN>=&nbsp;<SPAN style="COLOR: blue">new</SPAN>&nbsp;<SPAN style="COLOR: darkblue">ObservableCollection</SPAN>&lt;<SPAN style="COLOR: darkblue">Customer</SPAN>&gt;();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">foreach</SPAN>&nbsp;(<SPAN style="COLOR: blue">var</SPAN>&nbsp;<SPAN style="FONT-WEIGHT: 700">anonCustomer</SPAN>&nbsp;<SPAN style="COLOR: blue">in</SPAN>&nbsp;op.<SPAN style="COLOR: purple">Results</SPAN>)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: darkblue">Customer customer </SPAN>=&nbsp;<SPAN style="FONT-WEIGHT: 700"><SPAN style="FONT-WEIGHT: 700">anonCustomer</SPAN></SPAN>.Customer;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp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nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">foreach</SPAN>&nbsp;(<SPAN style="COLOR: blue">var</SPAN>&nbsp;<SPAN style="FONT-WEIGHT: 700">anonOrder</SPAN>&nbsp;<SPAN style="COLOR: blue">in</SPAN>&nbsp;<SPAN style="FONT-WEIGHT: 700"><SPAN style="FONT-WEIGHT: 700">anonCustomer</SPAN></SPAN>.<SPAN style="COLOR: purple">Orders</SPAN>)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;customer.<SPAN style="COLOR: purple">Orders</SPAN>.<SPAN style="COLOR: darkcyan">Add</SPAN>(<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bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});</PRE></DIV><DIV>Just a note - this is not my actual code so I hope I've&nbsp;transcribed it correctly.</DIV><DIV>&nbsp;</DIV><DIV>Kr</DIV><DIV>George</DIV></DIV></DIV>]]>
   </description>
   <pubDate>Mon, 13 Sep 2010 11:55:56 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2129&amp;PID=8474#8474</guid>
  </item> 
  <item>
   <title>Master Detail : Hi Denis    Okay I have it...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2129&amp;PID=8459#8459</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=770" rel="nofollow">GeorgeB</a><br /><strong>Subject:</strong> 2129<br /><strong>Posted:</strong> 11-Sep-2010 at 5:02am<br /><br />Hi Denis<DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>Okay I have it working with anonymous types (which wasn't my goal) but it's working.</DIV><DIV>&nbsp;</DIV><DIV>This is a limitation with EF I assume? I see there is a request with the EF team to have the Include filter results. Not too many votes - 34 so far.</DIV><DIV>&nbsp;</DIV><DIV>Thanks for the assistance.</DIV><DIV>&nbsp;</DIV><DIV>Kr</DIV><DIV>George</DIV>]]>
   </description>
   <pubDate>Sat, 11 Sep 2010 05:02:00 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2129&amp;PID=8459#8459</guid>
  </item> 
  <item>
   <title>Master Detail : George;You have do it with anonymous...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2129&amp;PID=8452#8452</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> 2129<br /><strong>Posted:</strong> 10-Sep-2010 at 2:47pm<br /><br /><div>George;</div><div><br></div>You have do it with anonymous type. The Include syntax can't be restricted with a Where clause. Your query should look something like this:<div><br></div><div><div>var customersWithFilteredSalesOrder = _mgr.Customers</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;.Where(c =&gt; c.Country == "UK")</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;.Select(c =&gt; new { customers = c, orders = c.Orders.Where(o =&gt; o.IsOpen) });</div></div>]]>
   </description>
   <pubDate>Fri, 10 Sep 2010 14:47:34 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2129&amp;PID=8452#8452</guid>
  </item> 
  <item>
   <title>Master Detail : Hi Denis  Yes all UKcustomers...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2129&amp;PID=8445#8445</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=770" rel="nofollow">GeorgeB</a><br /><strong>Subject:</strong> 2129<br /><strong>Posted:</strong> 10-Sep-2010 at 12:18pm<br /><br />Hi Denis<DIV>&nbsp;</DIV><DIV>Yes all UK&nbsp;customers and I want all customers even those with no orders. So if I have 100 customers in the UK I want all 100.</DIV><DIV>&nbsp;</DIV><DIV>And then for the orders, I only want to include the open orders.</DIV><DIV>&nbsp;</DIV><DIV>After a few months I will have a few thousand orders per customer. I don't want the completed orders as this means I will be pulling down a huge amount of unnecessary data.</DIV><DIV>&nbsp;</DIV><DIV>Kr</DIV><DIV>George</DIV>]]>
   </description>
   <pubDate>Fri, 10 Sep 2010 12:18:36 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2129&amp;PID=8445#8445</guid>
  </item> 
  <item>
   <title>Master Detail : Hi George;Could you clarify what...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2129&amp;PID=8444#8444</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> 2129<br /><strong>Posted:</strong> 10-Sep-2010 at 12:07pm<br /><br />Hi George;<div><br></div><div>Could you clarify what you're trying to do? You want to query customers that satisfy the following conditions:</div><div><br></div><div>1. All customers in UK</div><div><br></div><div>&amp;&amp;</div><div><br></div><div>2. Only customers that have open orders</div><div><br></div><div>Correct?</div>]]>
   </description>
   <pubDate>Fri, 10 Sep 2010 12:07:55 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2129&amp;PID=8444#8444</guid>
  </item> 
  <item>
   <title>Master Detail : Hi Can You show  image of your...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2129&amp;PID=8443#8443</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=911" rel="nofollow">Molinari</a><br /><strong>Subject:</strong> 2129<br /><strong>Posted:</strong> 10-Sep-2010 at 12:05pm<br /><br /> Hi<br />Can You show  image of your EDMX Model.<br /><br />There is problem to show include orders on datagrid.Datagrid  shows only record which have<br />its difficult for him to show inside from group.<br /><br />For your solution you can use View or make class and do manually<br />or try to show records with join (using Lamda)<br />]]>
   </description>
   <pubDate>Fri, 10 Sep 2010 12:05:21 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2129&amp;PID=8443#8443</guid>
  </item> 
  <item>
   <title>Master Detail : Hi   You lost me. There is no...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2129&amp;PID=8437#8437</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=770" rel="nofollow">GeorgeB</a><br /><strong>Subject:</strong> 2129<br /><strong>Posted:</strong> 10-Sep-2010 at 11:24am<br /><br />Hi <DIV>&nbsp;</DIV><DIV>You lost me. There is no issue with my tables and their relationships.</DIV><DIV>&nbsp;</DIV><DIV>Here is something similar to what I'm trying:-</DIV><DIV>&nbsp;</DIV><DIV>var customerQuery = from c in _mgr.EntityManager.Customers</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Where(c =&gt; c.Country == "UK")</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Include("Orders")</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; select c;</DIV><DIV>&nbsp;</DIV><DIV>var opCustomers = customerQuery.ExecuteAsync();</DIV><DIV>opCustomers.Completed += OpCustomersCompleted;</DIV><DIV>&nbsp;</DIV><DIV>This gives all the Orders for every customer in the UK. I want every customer but for their orders, I only want open orders. </DIV><DIV>&nbsp;</DIV><DIV>So something like this (but obviously this doesn't work) :-</DIV><DIV>&nbsp;</DIV><DIV><DIV>var customerQuery = from c in _mgr.EntityManager.Customers</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Where(c =&gt; c.Country == "UK")</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Include("Orders").Where(o =&gt; o.IsOpen)</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; select c;</DIV></DIV><DIV>&nbsp;</DIV><DIV>kr</DIV><DIV>George</DIV>]]>
   </description>
   <pubDate>Fri, 10 Sep 2010 11:24:45 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2129&amp;PID=8437#8437</guid>
  </item> 
  <item>
   <title>Master Detail : hey George  you did not put an...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2129&amp;PID=8414#8414</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=911" rel="nofollow">Molinari</a><br /><strong>Subject:</strong> 2129<br /><strong>Posted:</strong> 09-Sep-2010 at 12:22pm<br /><br />hey George<br /><br />you did not put an column ID in ORDER.<br /><br />adds an ID column in ORDER and test.<br /><br />]]>
   </description>
   <pubDate>Thu, 09 Sep 2010 12:22:35 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2129&amp;PID=8414#8414</guid>
  </item> 
  <item>
   <title>Master Detail : Hi Anyone?  Is it possible...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2129&amp;PID=8413#8413</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=770" rel="nofollow">GeorgeB</a><br /><strong>Subject:</strong> 2129<br /><strong>Posted:</strong> 09-Sep-2010 at 11:42am<br /><br /><P>Hi</P><DIV>Anyone?</DIV><DIV>&nbsp;</DIV><DIV>Is it possible to do without returning an anonymous type?</DIV>]]>
   </description>
   <pubDate>Thu, 09 Sep 2010 11:42:40 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2129&amp;PID=8413#8413</guid>
  </item> 
  <item>
   <title>Master Detail : Hi   I&amp;#039;m using DevForce...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2129&amp;PID=8366#8366</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=770" rel="nofollow">GeorgeB</a><br /><strong>Subject:</strong> 2129<br /><strong>Posted:</strong> 05-Sep-2010 at 10:23am<br /><br />Hi <DIV>&nbsp;</DIV><DIV>I'm using DevForce Silverlight 6.0.5.</DIV><DIV>&nbsp;</DIV><DIV>I'm probably missing something really simple but I want to be able to return all customers and only their open sales orders. </DIV><DIV>&nbsp;</DIV><DIV>Since a customer could have a 1000 orders and only 5 open orders, I don't want to have all the orders coming through. Obviously some customers will have no open orders, but I want those customers to come through. When I put the where clause with open orders, I only get the customers with open orders.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>I didn't find anything in the forums which gave me a specific answer but I did try a few things but without any luck.</DIV><DIV>&nbsp;</DIV><DIV>Kr</DIV><DIV>George</DIV><span style="font-size:10px"><br /><br />Edited by GeorgeB - 07-Sep-2010 at 2:29am</span>]]>
   </description>
   <pubDate>Sun, 05 Sep 2010 10:23:36 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2129&amp;PID=8366#8366</guid>
  </item> 
 </channel>
</rss>