<?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 VB.Net ITableSort and QueryFilter SubFields in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/vb-net-itablesort-and-queryfilter-subfields/m-p/349008#M9224</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ESRI is promoting the use of Subfields on queries to limit the number of fields read by a search cursor to reduce the processing time involved in retrieving data through a cursor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just wanted to let others know that I have found a gotcha in VB.NET (VS 2010 with ArcGIS Desktop 10.0) when using the QueryFilter Subfields property in combination with an ITableSort interface.&amp;nbsp; If the ITableSort's QueryFilter property is set to a QueryFilter that has Subfields specified, the Sort will not return any Rows.&amp;nbsp; This occurs even if the Subfields list of the QueryFilter is identical to the list that is assigned to the Fields property of the TableSort.&amp;nbsp; The same behavior occurs when the Cursor that is assigned to the TableSort's Cursor property was originally generated using a QueryFilter that had Subfields specified.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//0001000001mn000000"&gt;help for the ITableSort&lt;/A&gt;&lt;SPAN&gt; interface says:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"If the IQueryFilter.Subfields property is set, it is ignored as the ITableSort.Fields property always takes precedence."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But based on what I have seen that is apparently not the case, since the only way I have been able to get Rows returned from the ITableSort was to set the input QueryFilter SubFields property to "".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Oct 2012 20:28:29 GMT</pubDate>
    <dc:creator>RichardFairhurst</dc:creator>
    <dc:date>2012-10-11T20:28:29Z</dc:date>
    <item>
      <title>VB.Net ITableSort and QueryFilter SubFields</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/vb-net-itablesort-and-queryfilter-subfields/m-p/349008#M9224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ESRI is promoting the use of Subfields on queries to limit the number of fields read by a search cursor to reduce the processing time involved in retrieving data through a cursor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just wanted to let others know that I have found a gotcha in VB.NET (VS 2010 with ArcGIS Desktop 10.0) when using the QueryFilter Subfields property in combination with an ITableSort interface.&amp;nbsp; If the ITableSort's QueryFilter property is set to a QueryFilter that has Subfields specified, the Sort will not return any Rows.&amp;nbsp; This occurs even if the Subfields list of the QueryFilter is identical to the list that is assigned to the Fields property of the TableSort.&amp;nbsp; The same behavior occurs when the Cursor that is assigned to the TableSort's Cursor property was originally generated using a QueryFilter that had Subfields specified.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//0001000001mn000000"&gt;help for the ITableSort&lt;/A&gt;&lt;SPAN&gt; interface says:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"If the IQueryFilter.Subfields property is set, it is ignored as the ITableSort.Fields property always takes precedence."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But based on what I have seen that is apparently not the case, since the only way I have been able to get Rows returned from the ITableSort was to set the input QueryFilter SubFields property to "".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 20:28:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/vb-net-itablesort-and-queryfilter-subfields/m-p/349008#M9224</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2012-10-11T20:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: VB.Net ITableSort and QueryFilter SubFields</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/vb-net-itablesort-and-queryfilter-subfields/m-p/349009#M9225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had experienced some performance and memory issues with ITableSort in the past. I normally use IQueryDef.PostFixClause to include "orderby" clause in the database query rather than using ITableSort . You can even specify the Subfields in IQueryDef. It can be used with ArcSDE, Personal and File Geodatabase data sources.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 16:34:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/vb-net-itablesort-and-queryfilter-subfields/m-p/349009#M9225</guid>
      <dc:creator>sapnas</dc:creator>
      <dc:date>2012-10-12T16:34:44Z</dc:date>
    </item>
  </channel>
</rss>

