<?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: Retrieve feature attributes from the Attributes Pane via a context menu in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/retrieve-feature-attributes-from-the-attributes/m-p/1102290#M7190</link>
    <description>&lt;P&gt;Hi Narelle,&lt;/P&gt;&lt;P&gt;Thanks for the additional information.&amp;nbsp; I now understand why this isn't do-able at Pro 2.8.&lt;/P&gt;&lt;P&gt;Is there anything I can submit to get this functionality considered for a future release?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Sep 2021 20:51:27 GMT</pubDate>
    <dc:creator>MichaelHirschheimer</dc:creator>
    <dc:date>2021-09-27T20:51:27Z</dc:date>
    <item>
      <title>Retrieve feature attributes from the Attributes Pane via a context menu</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/retrieve-feature-attributes-from-the-attributes/m-p/1102097#M7186</link>
      <description>&lt;P&gt;I've added a context menu to the Attributes Pane when you right click on a feature.&lt;BR /&gt;Upon clicking on the context item, I want to retrieve attributes from the feature.&lt;/P&gt;&lt;P&gt;Using the screenshot, upon clicking on 'Mike's UN Rules Item', I want to retrieve the Objectid and it's layer name.&amp;nbsp; Results would be:&amp;nbsp; &amp;nbsp; &amp;nbsp;840 and Pipeline Device&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichaelHirschheimer_0-1632748895983.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/23896i4175451AF83D2E6F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MichaelHirschheimer_0-1632748895983.png" alt="MichaelHirschheimer_0-1632748895983.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Does anyone have an example of how to get this information?&lt;/P&gt;&lt;P&gt;I'm using Pro SDK 2.8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 13:29:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/retrieve-feature-attributes-from-the-attributes/m-p/1102097#M7186</guid>
      <dc:creator>MichaelHirschheimer</dc:creator>
      <dc:date>2021-09-27T13:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve feature attributes from the Attributes Pane via a context menu</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/retrieve-feature-attributes-from-the-attributes/m-p/1102239#M7187</link>
      <description>&lt;P&gt;Hi Mike,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Typically with items on a context menus you would use the&amp;nbsp;FrameworkApplication.ContextMenuDataContext property (&lt;A href="https://prodev.arcgis.com/en/pro-app/latest/sdk/api-reference/#topic10164.html" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/#topic10164.html&lt;/A&gt;)&amp;nbsp; and then cast this to an appropriate public API class to retrieve the context object.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately in this case there is no public API class in the Editing module that corresponds to an item in the Attributes tree view.&amp;nbsp; &amp;nbsp;We can look at adding something to a future release to facilitate your scenario.,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Narelle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 18:26:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/retrieve-feature-attributes-from-the-attributes/m-p/1102239#M7187</guid>
      <dc:creator>NarelleChedzey</dc:creator>
      <dc:date>2021-09-27T18:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve feature attributes from the Attributes Pane via a context menu</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/retrieve-feature-attributes-from-the-attributes/m-p/1102253#M7188</link>
      <description>&lt;P&gt;Hi Narelle,&lt;/P&gt;&lt;P&gt;I thought the “Flash” context menu item was using the same attributes that I’m trying to get retrieve, the FeatureLayer and the objectid.&amp;nbsp;&amp;nbsp;Is the Flash item being handled differently than what I’m trying to do?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichaelHirschheimer_2-1632769186409.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/23928i26698E13B924AA94/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MichaelHirschheimer_2-1632769186409.png" alt="MichaelHirschheimer_2-1632769186409.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichaelHirschheimer_3-1632769193977.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/23929i8C3E554C42981303/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MichaelHirschheimer_3-1632769193977.png" alt="MichaelHirschheimer_3-1632769193977.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 19:01:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/retrieve-feature-attributes-from-the-attributes/m-p/1102253#M7188</guid>
      <dc:creator>MichaelHirschheimer</dc:creator>
      <dc:date>2021-09-27T19:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve feature attributes from the Attributes Pane via a context menu</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/retrieve-feature-attributes-from-the-attributes/m-p/1102288#M7189</link>
      <description>&lt;P&gt;Mike,&lt;/P&gt;&lt;P&gt;Essentially the&amp;nbsp;flash item you see on the context menu is a button (similar to what you have for Mikes UN Rules Item) that obtains the mapMember and objectID of the feature that you right click on in the Attributes pane.&amp;nbsp; &amp;nbsp;It would then call the FlashFeature API call that you referenced.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;So in psuedo code it would be like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;  internal class FlashButton : Button
  {
    protected override void OnClick()
    {
      var context = FrameworkApplication.ContextMenuDataContext;
      var items = context as IEnumerable&amp;lt;AttributeTreeItem_InternalClass&amp;gt;;
      var item = items.FirstOrDefault();
      if (item != null)
      {
        MapView.Active.FlashFeature(item.Layer, item.ObjectID);
      }
    }
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So yes it is doing exactly the same thing that you want to do.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The key difference is that the AttributeTreeItem_InternalClass is&amp;nbsp;&lt;STRONG&gt;internal&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;only&lt;/STRONG&gt; to the Editing code.&amp;nbsp; As an add-in developer, you only have access to classes and methods that are in the &lt;STRONG&gt;public API&lt;/STRONG&gt;.&amp;nbsp; Right now, the public API is missing the class used in line 6 to translate from the context object in order to obtain the layer and objectID.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this is clear.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Narelle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 20:42:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/retrieve-feature-attributes-from-the-attributes/m-p/1102288#M7189</guid>
      <dc:creator>NarelleChedzey</dc:creator>
      <dc:date>2021-09-27T20:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve feature attributes from the Attributes Pane via a context menu</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/retrieve-feature-attributes-from-the-attributes/m-p/1102290#M7190</link>
      <description>&lt;P&gt;Hi Narelle,&lt;/P&gt;&lt;P&gt;Thanks for the additional information.&amp;nbsp; I now understand why this isn't do-able at Pro 2.8.&lt;/P&gt;&lt;P&gt;Is there anything I can submit to get this functionality considered for a future release?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 20:51:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/retrieve-feature-attributes-from-the-attributes/m-p/1102290#M7190</guid>
      <dc:creator>MichaelHirschheimer</dc:creator>
      <dc:date>2021-09-27T20:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve feature attributes from the Attributes Pane via a context menu</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/retrieve-feature-attributes-from-the-attributes/m-p/1102295#M7191</link>
      <description>&lt;P&gt;Mike,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have added an issue to our backlog for this to be addressed.&amp;nbsp; It is too late for it to be included in ArcGIS Pro 2.9 but we will consider it for the next release.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Narelle&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 21:00:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/retrieve-feature-attributes-from-the-attributes/m-p/1102295#M7191</guid>
      <dc:creator>NarelleChedzey</dc:creator>
      <dc:date>2021-09-27T21:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve feature attributes from the Attributes Pane via a context menu</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/retrieve-feature-attributes-from-the-attributes/m-p/1153010#M7913</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I resume this topic because we would need on a important project for big telco company to have access to these objects,&lt;BR /&gt;would it be possible to know in which version of the SDKs they will be made available?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 18:11:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/retrieve-feature-attributes-from-the-attributes/m-p/1153010#M7913</guid>
      <dc:creator>VqSp85</dc:creator>
      <dc:date>2022-03-11T18:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve feature attributes from the Attributes Pane via a context menu</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/retrieve-feature-attributes-from-the-attributes/m-p/1260439#M9453</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/629243"&gt;@newbiedotnetguy&lt;/a&gt;&amp;nbsp; &amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/569307"&gt;@VqSp85&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The enhancement described in this thread will be included in the upcoming Pro SDK 3.1 release.&lt;/P&gt;&lt;P&gt;It will also be documented in&amp;nbsp;&lt;SPAN&gt;&lt;SPAN class=""&gt;the Editing Pro Concepts pages.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Thanks,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Mike&lt;/SPAN&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>Wed, 22 Feb 2023 13:11:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/retrieve-feature-attributes-from-the-attributes/m-p/1260439#M9453</guid>
      <dc:creator>MichaelHirschheimer</dc:creator>
      <dc:date>2023-02-22T13:11:16Z</dc:date>
    </item>
  </channel>
</rss>

