<?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: QueryFilter  in ArcGIS PRO SDK in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/queryfilter-in-arcgis-pro-sdk/m-p/1152145#M7906</link>
    <description>&lt;P&gt;What data type is templateDesignerProperties.PipelineRouteID? If it's a number, it may be thrown off by the quotes around selectedLineId. If it's a GUID, you'll need to add braces around it by calling&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;selectedLineId.ToString("B", CultureInfo.CurrentCulture).ToUpper(CultureInfo.CurrentCulture);&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 09 Mar 2022 14:33:12 GMT</pubDate>
    <dc:creator>tempStephenRhea_NV5</dc:creator>
    <dc:date>2022-03-09T14:33:12Z</dc:date>
    <item>
      <title>QueryFilter  in ArcGIS PRO SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/queryfilter-in-arcgis-pro-sdk/m-p/1152095#M7902</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm connecting to FGDB and then firing the queryFilter in ArcGIS Pro SDK, which is where I'm having trouble because it's not going inside the while loop.&lt;/P&gt;&lt;P&gt;queryFilter which i'm using is:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-----------------------------------------------------------------------------------&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;QueryFilter routesQueryFilter = new QueryFilter();&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;routesQueryFilter.WhereClause = templateDesignerProperties.PipelineRouteID + "='" + selectedLineId + "'";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----------------------------------------------------------------------------&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and the rowCursor:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----------------------------------------------------------------------------&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;QueuedTask.Run(() =&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;using (RowCursor rowCursor = featureClassOpenedAsTableRoute.Search(queryFilter, false)) &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{ &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;while (rowCursor.MoveNext())&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;//code here&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;});&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-------------------------------------------------------------------------------------------&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Could anyone please tell me the issue that is preventing&amp;nbsp; it from entering the while loop?&lt;/P&gt;&lt;P&gt;Thanks in advance!!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 12:36:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/queryfilter-in-arcgis-pro-sdk/m-p/1152095#M7902</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-03-09T12:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: QueryFilter  in ArcGIS PRO SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/queryfilter-in-arcgis-pro-sdk/m-p/1152126#M7903</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The answer could be: no records matching to your query filter. You can check it by adding code line before calling Search method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var count = featureClassOpenedAsTableRoute.GetCount(queryFilter);&lt;/LI-CODE&gt;&lt;P&gt;Count must be equal 0 in your case.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 13:54:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/queryfilter-in-arcgis-pro-sdk/m-p/1152126#M7903</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2022-03-09T13:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: QueryFilter  in ArcGIS PRO SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/queryfilter-in-arcgis-pro-sdk/m-p/1152141#M7905</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/42133"&gt;@GKmieliauskas&lt;/a&gt;&amp;nbsp; Yes you are right, but when I'm connecting it to SDE Database its pretty much happening but the problem is when I connect to FGDB , I also checked the whereClause the, value is coming but why the count is still 0 ??&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 14:18:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/queryfilter-in-arcgis-pro-sdk/m-p/1152141#M7905</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-03-09T14:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: QueryFilter  in ArcGIS PRO SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/queryfilter-in-arcgis-pro-sdk/m-p/1152145#M7906</link>
      <description>&lt;P&gt;What data type is templateDesignerProperties.PipelineRouteID? If it's a number, it may be thrown off by the quotes around selectedLineId. If it's a GUID, you'll need to add braces around it by calling&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;selectedLineId.ToString("B", CultureInfo.CurrentCulture).ToUpper(CultureInfo.CurrentCulture);&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 09 Mar 2022 14:33:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/queryfilter-in-arcgis-pro-sdk/m-p/1152145#M7906</guid>
      <dc:creator>tempStephenRhea_NV5</dc:creator>
      <dc:date>2022-03-09T14:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: QueryFilter  in ArcGIS PRO SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/queryfilter-in-arcgis-pro-sdk/m-p/1152154#M7907</link>
      <description>&lt;P&gt;Stop debugger before calling Search.&lt;/P&gt;&lt;P&gt;Copy&amp;nbsp;routesQueryFilter.WhereClause value from Watch window to clipboard. Finish your tool work.&lt;/P&gt;&lt;P&gt;Open the&amp;nbsp;featureClassOpenedAsTableRoute table in ArcGIS Pro table view and try Select by Attribute with whereclause string from clipboard. Check before that SQL query type is on.&lt;/P&gt;&lt;P&gt;If result still 0, try create query with query builder and check for differences&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 14:41:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/queryfilter-in-arcgis-pro-sdk/m-p/1152154#M7907</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2022-03-09T14:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: QueryFilter  in ArcGIS PRO SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/queryfilter-in-arcgis-pro-sdk/m-p/1152422#M7908</link>
      <description>&lt;P&gt;Thanks, the same way I debugged the code and then tried using the same whereClause in my ArcGIS Pro application, where I discovered a mistake in the query because the application was not retrieving any records. I fixed it, and now its working as expected &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 05:45:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/queryfilter-in-arcgis-pro-sdk/m-p/1152422#M7908</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-03-10T05:45:25Z</dc:date>
    </item>
  </channel>
</rss>

