<?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 Query non-feature tables using ArcGIS Runtime SDK for .NET? in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/query-non-feature-tables-using-arcgis-runtime-sdk/m-p/587726#M7202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to query non-feature tables using the ArcGIS Runtime SDK for .NET 10.2.7?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a native Windows app using a file geodatabase (.gdb) as the source for an ArcGISDynamicMapServiceLayer hosted by a LocalMapService.&amp;nbsp; I want to query a non-feature table in the ArcGISDynamicMapServiceLayer.&amp;nbsp; I can retrieve a list of the tables from AllLayersServiceInfo.Tables and execute a FindTask the same way as I can with feature layers but the FindResult.Results.Count is always 0.&amp;nbsp; I've verified the FindParameters match an existing record in the table.&amp;nbsp; I've tried using the QueryTask but the results are the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Mar 2016 23:37:50 GMT</pubDate>
    <dc:creator>AndrewFoster</dc:creator>
    <dc:date>2016-03-17T23:37:50Z</dc:date>
    <item>
      <title>Query non-feature tables using ArcGIS Runtime SDK for .NET?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/query-non-feature-tables-using-arcgis-runtime-sdk/m-p/587726#M7202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to query non-feature tables using the ArcGIS Runtime SDK for .NET 10.2.7?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a native Windows app using a file geodatabase (.gdb) as the source for an ArcGISDynamicMapServiceLayer hosted by a LocalMapService.&amp;nbsp; I want to query a non-feature table in the ArcGISDynamicMapServiceLayer.&amp;nbsp; I can retrieve a list of the tables from AllLayersServiceInfo.Tables and execute a FindTask the same way as I can with feature layers but the FindResult.Results.Count is always 0.&amp;nbsp; I've verified the FindParameters match an existing record in the table.&amp;nbsp; I've tried using the QueryTask but the results are the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 23:37:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/query-non-feature-tables-using-arcgis-runtime-sdk/m-p/587726#M7202</guid>
      <dc:creator>AndrewFoster</dc:creator>
      <dc:date>2016-03-17T23:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Query non-feature tables using ArcGIS Runtime SDK for .NET?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/query-non-feature-tables-using-arcgis-runtime-sdk/m-p/587727#M7203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Andrew, you can query a non-spatial table using the ArcGIS Runtime SDK for .NET. &amp;nbsp;Whether your data source is an online map service or a local map service, you must use the QueryTask to query a table. &amp;nbsp;The table does not have to be related to a feature layer but must be included in the map service layer definition. &amp;nbsp;Interrogate the&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;AllLayersServiceInfo.Tables collection to find the ID of the desired table. &amp;nbsp;Then, append the table ID to the end of the map service Url when creating the Uri object for the QueryTask. &amp;nbsp;Using the Query object, you specify the search criteria (WHERE clause) targeting the table. &amp;nbsp;You follow the same procedure to query a single feature layer after you discover its layer ID. &amp;nbsp;Here's the main difference between the FindTask and the QueryTask: The FindTask is used to search for a single&amp;nbsp;attribute value on one or more fields in one or more feature layers using the FindParameters.LayerIDs list property&amp;nbsp;and the FindParameters.SearchFields list property. &amp;nbsp;The QueryTask is used to search a single feature layer -or- table by appending&amp;nbsp;the feature/table ID to the map service Uri and using a query string that acts as a WHERE clause.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 18:51:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/query-non-feature-tables-using-arcgis-runtime-sdk/m-p/587727#M7203</guid>
      <dc:creator>AndrewFoster</dc:creator>
      <dc:date>2016-09-13T18:51:13Z</dc:date>
    </item>
  </channel>
</rss>

