<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Definition Expressions across layers - Table Joins in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/definition-expressions-across-layers-table-joins/m-p/297830#M3498</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just kicking the tires with this one.&amp;nbsp; Perhaps you could use Sqlite API directly to query the parent layers, build out the definition expression and then apply to the layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Dec 2019 17:01:58 GMT</pubDate>
    <dc:creator>JoeHershman</dc:creator>
    <dc:date>2019-12-03T17:01:58Z</dc:date>
    <item>
      <title>Definition Expressions across layers - Table Joins</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/definition-expressions-across-layers-table-joins/m-p/297829#M3497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have spent quite a bit of effort converting our ArcEngine applications to .Net Runtime.&amp;nbsp; On of the greatest challenges is working with related data.&amp;nbsp; I have opened a few tickets with ESRI regarding this in the past, but have been presented with no solutions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For clarity, we work almost exclusively offline using replicas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our challenge:&amp;nbsp; Join the attributes of two tables so the resulting table can be used in a definition expression to filter child&amp;nbsp;layers on the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem:&amp;nbsp; We frequently work with map layers that are related.&amp;nbsp; In general, there is a "Parent" layer.&amp;nbsp; Other layers are related to the parent.&amp;nbsp; There are many cases where we need to show a subset of the parents an only the child layer data that is related to this subset.&amp;nbsp; For example, suppose the map consisted of a&amp;nbsp;parent layer, US "States" and one child layer containing State "Parks".&amp;nbsp; If the States layer has a "Population" attribute, we may want to set a definition expression on the "States" layer and also filter the "Parks" layer to the resulting States.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We were presented with a solution from ESRI that requires querying the States layer for the required parent results.&amp;nbsp; Then we iterating through each result&amp;nbsp;executing &amp;nbsp;"QueryRelatedFeaturesAsync&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;" &lt;/SPAN&gt;to get the child features and add each child feature to a feature collection.&amp;nbsp; Needless to say, this is EXTREMELY SLOW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Surely there's a better way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions are welcome.&amp;nbsp; We remain hopeful that the .Net Runtime will mature into a product that truly does embrace related data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2019 14:56:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/definition-expressions-across-layers-table-joins/m-p/297829#M3497</guid>
      <dc:creator>DwayneKuykendall</dc:creator>
      <dc:date>2019-12-03T14:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Expressions across layers - Table Joins</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/definition-expressions-across-layers-table-joins/m-p/297830#M3498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just kicking the tires with this one.&amp;nbsp; Perhaps you could use Sqlite API directly to query the parent layers, build out the definition expression and then apply to the layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2019 17:01:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/definition-expressions-across-layers-table-joins/m-p/297830#M3498</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2019-12-03T17:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Expressions across layers - Table Joins</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/definition-expressions-across-layers-table-joins/m-p/297831#M3499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We do most of our reading of data through the SQLite API directly.&amp;nbsp; It's much faster and we can create the joins as needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since it isn't possible to&amp;nbsp;join the layers, we cannot&amp;nbsp;create a definition expression using fields from another table.&amp;nbsp; Thus the need for the join.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the layer tables were joined, many things would be possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2019 17:10:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/definition-expressions-across-layers-table-joins/m-p/297831#M3499</guid>
      <dc:creator>DwayneKuykendall</dc:creator>
      <dc:date>2019-12-03T17:10:49Z</dc:date>
    </item>
  </channel>
</rss>

