<?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: Next/Previous buttons for Attribute Window in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/next-previous-buttons-for-attribute-window/m-p/1583295#M12602</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes. It is possible. TableView has method&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic22715.html" target="_self"&gt;Highlight&lt;/A&gt;.&amp;nbsp;&amp;nbsp;The table view must be showing the Selected Records view.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to get TableView from table name you can found in&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Editing/TableViewerTest" target="_self"&gt;TableViewerTest&lt;/A&gt; from Esri ArcGIS Pro SDK Community samples. Code sample uses method&amp;nbsp;OpenAndActivateTablePane fromTableViewerTest sample:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;        protected override void OnClick()
        {
            var myTable = MapView.Active.Map.GetLayersAsFlattenedList().OfType&amp;lt;FeatureLayer&amp;gt;().Where(fl =&amp;gt; fl.Name.Equals("YourTableName")).FirstOrDefault()
              ?? throw new Exception(@"Can't find 'YourTableName' Layer");

            var myTablePanes = Module1.OpenAndActivateTablePane(myTable);
            if (myTablePanes.TablePane == null)
                throw new Exception($@"Unable to activate {myTable.Name}");

            TableView tableView = myTablePanes.TablePaneEx.TableView;
            if (tableView == null) throw new Exception($@"Can't get TableView for {myTable.Name}");
            if (tableView.IsReady &amp;amp;&amp;amp; tableView.CanHighlight)
            {
                tableView.Highlight(237, true);
            }

        }&lt;/LI-CODE&gt;&lt;P&gt;You need to listen for&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic12812.html" target="_self"&gt;MapSelectionChangedEvent&lt;/A&gt;, collect selected objects objectid's and store current selected objectid. Selection set and current objectid I would recommend store in Module properties.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Feb 2025 20:40:02 GMT</pubDate>
    <dc:creator>GKmieliauskas</dc:creator>
    <dc:date>2025-02-07T20:40:02Z</dc:date>
    <item>
      <title>Next/Previous buttons for Attribute Window</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/next-previous-buttons-for-attribute-window/m-p/1583147#M12599</link>
      <description>&lt;P&gt;Knowing that it's not possible to add buttons directly on an Attribute Window, I would like to add two buttons to our custom toolbar, one would be 'Previous' and one would be 'Next'. When clicked, the selection would jump to the next feature in the row index of the active Attribute Window, as well as Zoom to the newly selected feature in the Map.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible, or is it a pipe dream?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 17:08:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/next-previous-buttons-for-attribute-window/m-p/1583147#M12599</guid>
      <dc:creator>Carto_Broc</dc:creator>
      <dc:date>2025-02-07T17:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Next/Previous buttons for Attribute Window</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/next-previous-buttons-for-attribute-window/m-p/1583295#M12602</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes. It is possible. TableView has method&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic22715.html" target="_self"&gt;Highlight&lt;/A&gt;.&amp;nbsp;&amp;nbsp;The table view must be showing the Selected Records view.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to get TableView from table name you can found in&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Editing/TableViewerTest" target="_self"&gt;TableViewerTest&lt;/A&gt; from Esri ArcGIS Pro SDK Community samples. Code sample uses method&amp;nbsp;OpenAndActivateTablePane fromTableViewerTest sample:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;        protected override void OnClick()
        {
            var myTable = MapView.Active.Map.GetLayersAsFlattenedList().OfType&amp;lt;FeatureLayer&amp;gt;().Where(fl =&amp;gt; fl.Name.Equals("YourTableName")).FirstOrDefault()
              ?? throw new Exception(@"Can't find 'YourTableName' Layer");

            var myTablePanes = Module1.OpenAndActivateTablePane(myTable);
            if (myTablePanes.TablePane == null)
                throw new Exception($@"Unable to activate {myTable.Name}");

            TableView tableView = myTablePanes.TablePaneEx.TableView;
            if (tableView == null) throw new Exception($@"Can't get TableView for {myTable.Name}");
            if (tableView.IsReady &amp;amp;&amp;amp; tableView.CanHighlight)
            {
                tableView.Highlight(237, true);
            }

        }&lt;/LI-CODE&gt;&lt;P&gt;You need to listen for&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic12812.html" target="_self"&gt;MapSelectionChangedEvent&lt;/A&gt;, collect selected objects objectid's and store current selected objectid. Selection set and current objectid I would recommend store in Module properties.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 20:40:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/next-previous-buttons-for-attribute-window/m-p/1583295#M12602</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2025-02-07T20:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Next/Previous buttons for Attribute Window</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/next-previous-buttons-for-attribute-window/m-p/1584101#M12616</link>
      <description>&lt;P&gt;Are you referring to this attribute window?&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="UmaHarano_0-1739231999026.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/125055iF6E76796DD8B597F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="UmaHarano_0-1739231999026.png" alt="UmaHarano_0-1739231999026.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If so, here is another approach -&lt;/P&gt;&lt;P&gt;you can create your own custom attribute window in Pro.&amp;nbsp; It gives you an opportunity to design your own UI component, while integrating the Pro user control (in your UI) that displays the attributes of the selected features.&lt;/P&gt;&lt;P&gt;Here is a sample that shows this: &lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Editing/EditorInspectorUI" target="_blank"&gt;https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Editing/EditorInspectorUI&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 17:26:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/next-previous-buttons-for-attribute-window/m-p/1584101#M12616</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2025-02-11T17:26:08Z</dc:date>
    </item>
  </channel>
</rss>

