<?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: Get the selected row from a table in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-the-selected-row-from-a-table/m-p/1304879#M10001</link>
    <description>&lt;P&gt;I just now noticed that the method you were using has been misspelled in its original version.&amp;nbsp; The correct method name is:&amp;nbsp;GetSelectedObjectIds&amp;nbsp;&lt;/P&gt;&lt;P&gt;The method you found as obsolete has the letter 'c' missing in Selected.&amp;nbsp; Apparently, the author of TableControl corrected the spelling and marked the originally misspelled variant as obsolete.&amp;nbsp; So you should be fine if you use the 'GetSelectedObjectIds ' variant.&amp;nbsp; Sorry about that.&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jun 2023 14:33:51 GMT</pubDate>
    <dc:creator>Wolf</dc:creator>
    <dc:date>2023-06-30T14:33:51Z</dc:date>
    <item>
      <title>Get the selected row from a table</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-the-selected-row-from-a-table/m-p/1302861#M9975</link>
      <description>&lt;P&gt;I am trying to get the selected row from a table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a TableControl objetc&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;private TableControl _tableControl = null;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And a method to fetch the selected row(s)&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;private async Task GetSelectedObjectIdsFromTable()
    {
        await QueuedTask.Run(() =&amp;gt; _selectedObjectIds = _tableControl.GetSeletedObjectIds() as List&amp;lt;long&amp;gt;);
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The user can from a combobox select a layer from TOC and the content are showend in a tabel in a dockpane. But I can't figure out how I get the selected row from the table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Visual studio give me a waring to the above method, saying GetSelectedObjectIds are deprecated in 3.1. But what do i use insted?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Daniel4_0-1687766250455.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/74130iF570627A633F950C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Daniel4_0-1687766250455.png" alt="Daniel4_0-1687766250455.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 07:59:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-the-selected-row-from-a-table/m-p/1302861#M9975</guid>
      <dc:creator>Daniel4</dc:creator>
      <dc:date>2023-06-26T07:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get the selected row from a table</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-the-selected-row-from-a-table/m-p/1303026#M9978</link>
      <description>Simplest is to realize that 'deprecated' just means it may not work in ArcGIS 3.2, which will not be out till 2025 or so.&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Jun 2023 15:33:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-the-selected-row-from-a-table/m-p/1303026#M9978</guid>
      <dc:creator>RichardDaniels</dc:creator>
      <dc:date>2023-06-26T15:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get the selected row from a table</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-the-selected-row-from-a-table/m-p/1304879#M10001</link>
      <description>&lt;P&gt;I just now noticed that the method you were using has been misspelled in its original version.&amp;nbsp; The correct method name is:&amp;nbsp;GetSelectedObjectIds&amp;nbsp;&lt;/P&gt;&lt;P&gt;The method you found as obsolete has the letter 'c' missing in Selected.&amp;nbsp; Apparently, the author of TableControl corrected the spelling and marked the originally misspelled variant as obsolete.&amp;nbsp; So you should be fine if you use the 'GetSelectedObjectIds ' variant.&amp;nbsp; Sorry about that.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 14:33:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-the-selected-row-from-a-table/m-p/1304879#M10001</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2023-06-30T14:33:51Z</dc:date>
    </item>
  </channel>
</rss>

