<?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 How can I select select item in attribute table and highlight on mapview? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-select-select-item-in-attribute-table/m-p/1024797#M6147</link>
    <description>&lt;P&gt;I using ArcGIS Pro sdk to make an addin that can select item in attribute table by defined objectid,&lt;/P&gt;&lt;P&gt;But my ArcGIS Pro always freeze after I run this code.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;var featureLayer = MapView.Active.Map.GetLayersAsFlattenedList().OfType&amp;lt;FeatureLayer&amp;gt;().Where(fl =&amp;gt; fl.Name.Contains("Electric Device")).FirstOrDefault();&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;QueryFilter queryFilter = new QueryFilter&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;{ &lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;WhereClause = "OBJECTID = 12227"&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;};&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;featureLayer.Select(queryFilter);&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Feb 2021 04:05:00 GMT</pubDate>
    <dc:creator>PitchYen</dc:creator>
    <dc:date>2021-02-10T04:05:00Z</dc:date>
    <item>
      <title>How can I select select item in attribute table and highlight on mapview?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-select-select-item-in-attribute-table/m-p/1024797#M6147</link>
      <description>&lt;P&gt;I using ArcGIS Pro sdk to make an addin that can select item in attribute table by defined objectid,&lt;/P&gt;&lt;P&gt;But my ArcGIS Pro always freeze after I run this code.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;var featureLayer = MapView.Active.Map.GetLayersAsFlattenedList().OfType&amp;lt;FeatureLayer&amp;gt;().Where(fl =&amp;gt; fl.Name.Contains("Electric Device")).FirstOrDefault();&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;QueryFilter queryFilter = new QueryFilter&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;{ &lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;WhereClause = "OBJECTID = 12227"&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;};&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;featureLayer.Select(queryFilter);&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 04:05:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-select-select-item-in-attribute-table/m-p/1024797#M6147</guid>
      <dc:creator>PitchYen</dc:creator>
      <dc:date>2021-02-10T04:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I select select item in attribute table and highlight on mapview?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-select-select-item-in-attribute-table/m-p/1025173#M6158</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Select&amp;nbsp; must be called on the MCT. Use&amp;nbsp;QueuedTask.Run:&lt;/P&gt;&lt;P&gt;await QueuedTask.Run(() =&amp;gt;&lt;BR /&gt;{&lt;BR /&gt;QueryFilter queryFilter = new QueryFilter&lt;BR /&gt;{&lt;BR /&gt;WhereClause = "OBJECTID = 12227"&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;featureLayer.Select(queryFilter);&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 06:24:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-select-select-item-in-attribute-table/m-p/1025173#M6158</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2021-02-10T06:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can I select select item in attribute table and highlight on mapview?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-select-select-item-in-attribute-table/m-p/1025181#M6159</link>
      <description>&lt;P&gt;Thank you very much for your answer. I've created new method use your code and it work.&lt;/P&gt;&lt;P&gt;Maybe it freeze because I put it in using( ... ) bucket.&lt;/P&gt;&lt;P&gt;I have one more question&lt;/P&gt;&lt;P&gt;if I have to select 10000 items how can I write SQL statement for this one.&lt;/P&gt;&lt;P&gt;It always return message&amp;nbsp;'An invalid SQL statement was used.'&lt;/P&gt;&lt;P&gt;&lt;EM&gt;WhereClause = "OBJECTID = 1 Or OBJECTID = 137 Or ... 14355".&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 07:01:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-select-select-item-in-attribute-table/m-p/1025181#M6159</guid>
      <dc:creator>PitchYen</dc:creator>
      <dc:date>2021-02-10T07:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I select select item in attribute table and highlight on mapview?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-select-select-item-in-attribute-table/m-p/1025183#M6160</link>
      <description>&lt;P&gt;WhereClause = "OBJECTID IN (1, 2, ....)"&lt;/P&gt;&lt;P&gt;or best way to use&amp;nbsp;.ObjectIDs property of QueryFilter&lt;/P&gt;&lt;P&gt;.ObjectIDs = oids // Where oids is List&amp;lt;long&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 07:10:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-select-select-item-in-attribute-table/m-p/1025183#M6160</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2021-02-10T07:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can I select select item in attribute table and highlight on mapview?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-select-select-item-in-attribute-table/m-p/1388554#M11173</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/42133"&gt;@GKmieliauskas&lt;/a&gt;&amp;nbsp; How can we use&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;WhereClause = "OBJECTID IN ObjectIDs"&lt;/SPAN&gt;&lt;/STRONG&gt; where the ObjectID collection is more than 1000 and there is a limitation in oracle sde?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 07:52:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-select-select-item-in-attribute-table/m-p/1388554#M11173</guid>
      <dc:creator>SumitMishra_016</dc:creator>
      <dc:date>2024-02-29T07:52:26Z</dc:date>
    </item>
  </channel>
</rss>

