<?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 : Need some advice on unioning entitylists</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Need some advice on unioning entitylists</description>
  <pubDate>Wed, 15 Apr 2026 18:39:26 -700</pubDate>
  <lastBuildDate>Tue, 08 Jul 2008 13:32:35 -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=787</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>Need some advice on unioning entitylists : According to the documentation...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=787&amp;PID=3192#3192</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=349" rel="nofollow">TimClamp</a><br /><strong>Subject:</strong> 787<br /><strong>Posted:</strong> 08-Jul-2008 at 1:32pm<br /><br />According to the documentation for generic entitylist, it supports CopyTo.<DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV><TABLE =edItemListTable><T><TR id=inheritedMember><TD =Cell></TD><TD =MembersCell><a href="ms-its:C:%5CProgram%20Files%5CIdeaBlade%20DevForce%5C&#068;ocumentati&#111;n%5CIdeaBlade%20DevForce%20C&#111;nsolidated%20Help.chm::/7/IdeaBlade.Persistence~IdeaBlade.Persistence.EntityList`1_methods.html#" target="_blank"><U><FONT size=3>CopyTo</FONT></U></A></TD><TD =MembersDei&#111;nCell>(Inherited from <a href="ms-its:C:%5CProgram%20Files%5CIdeaBlade%20DevForce%5C&#068;ocumentati&#111;n%5CIdeaBlade%20DevForce%20C&#111;nsolidated%20Help.chm::/7/IdeaBlade.Persistence~IdeaBlade.Persistence.EntityList`1_methods.html#" target="_blank"><U><FONT size=3>System.Collections.ObjectModel.Collection</FONT></U></A>&lt;T&gt;</strong>)</TD></TR></T></TABLE></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>List1.CopyTo(List2)</DIV>]]>
   </description>
   <pubDate>Tue, 08 Jul 2008 13:32:35 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=787&amp;PID=3192#3192</guid>
  </item> 
  <item>
   <title>Need some advice on unioning entitylists : Try something like this:   EntityList&amp;lt;Entity&amp;gt;...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=787&amp;PID=2885#2885</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> 787<br /><strong>Posted:</strong> 28-Apr-2008 at 1:55pm<br /><br />Try something like this:<DIV>&nbsp;</DIV><DIV><DIV>EntityList&lt;Entity&gt; elist = new EntityList(Entity);</DIV><DIV>&nbsp;</DIV><DIV>foreach (AvailableGenericStep stepAG in gSteps) {</DIV><DIV>&nbsp; elist.add(stepAG)</DIV><DIV>}</DIV><DIV>&nbsp;</DIV><DIV><DIV>foreach (AvailableNonGenericStep stepANG in&nbsp; ngSteps) {</DIV><DIV>&nbsp; elist.add(stepANG)</DIV><DIV>}</DIV></DIV></DIV>]]>
   </description>
   <pubDate>Mon, 28 Apr 2008 13:55:33 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=787&amp;PID=2885#2885</guid>
  </item> 
  <item>
   <title>Need some advice on unioning entitylists : One of my modules in my app that...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=787&amp;PID=2881#2881</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=202" rel="nofollow">BillG</a><br /><strong>Subject:</strong> 787<br /><strong>Posted:</strong> 26-Apr-2008 at 12:37pm<br /><br /><P>One of my modules in my app that I am developing is a workflow type piece where a member calls up with a problem and a step by step process is done to complete the solution.&nbsp; Throughout the process the user selects steps from a drop down list that signify what was done to complete it.&nbsp; There are two types of steps that can be done, generics steps that can occur in any order throughout the process and specfic steps that have to occur in order and certain steps can only follow other steps.&nbsp; </P><DIV>&nbsp;</DIV><DIV>I have two tables in the database, one called&nbsp;AvailableGenericSteps which has a TypeCd and a ResponseCd.&nbsp; The other table is called AvailableNonGenericSteps which has a TypeCd, an origincd and a responsecd.&nbsp; Basically the typecd indicates the type of case it is.</DIV><DIV>&nbsp;</DIV><DIV>So now I need to figure out to fill the drop down list.&nbsp; At the point that I am ready to fill it, I know two things, The type of problem it is and the previous step.&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>So in VB I did a query on the first table, AvailableGenericSteps where typecd was equal to the typecd of the case and retrieved back all the rows that qualified.&nbsp; I then queried the second table, AvailableNonGenericSteps with the typecd and the previous step code.&nbsp; I then retrieved back all the rows that qualified and unioned them with the query from the first table.&nbsp; Using this union, I then populated my drop down box.&nbsp;&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>In IdeaBlade I don't have a union, so any suggestions on how to do this using 2 entity lists.&nbsp; One entityList will have the steps retrieved back the from the AvailableGenericSteps and the other entityList will have the steps retrieved back from the AvailableNonGenericSteps.&nbsp; Now do I combine the two entitylists and populate the datasource of the ComboBox?</DIV><DIV>&nbsp;</DIV><DIV>Here is what I have so far.</DIV><DIV>&nbsp;</DIV><DIV>public void BuildStepsList()</DIV><DIV>{</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RdbQuery query1&nbsp;= new Query(typeof(AvailableGenericStep));</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; query1.AddClause(AvailableGenericStep.EventTypeCdEntityColumn, EntityTypeQueryOp.EQ, currentEvent.EventTypeCd);</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EntityList&lt;AvailableGenericStep&gt; gSteps = myPM.GetEntities&lt;AvailableGenericStep&gt;(query1);</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp; RdbQuery query2&nbsp;= new Query(typeof(AvailableNonGenericStep));<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; query2.AddClause(AvailableNonGenericStep.EventTypeCdEntityColumn, EntityTypeQueryOp.EQ, currentEvent.EventTypeCd);</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EntityList&lt;AvailableNonGenericStep&gt; ngSteps = myPM.GetEntities&lt;AvailableNonGenericStep&gt;(query2);</DIV><DIV>&nbsp;</DIV><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>A thought just occured to me, can I do the following?</DIV><DIV>&nbsp;</DIV><DIV>EntityList&lt;Entity&gt; list = new EntityList();</DIV><DIV>list.Add(nSteps);</DIV><DIV>list.Add(ngSteps);</DIV><DIV>&nbsp;</DIV><DIV>but then how do I bind the binding source object to that????</DIV><DIV>&nbsp;</DIV><DIV>Is this a place for a Dynamic Entity?</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sat, 26 Apr 2008 12:37:34 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=787&amp;PID=2881#2881</guid>
  </item> 
 </channel>
</rss>