<?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: Usage of AddAttributeAsync on Inspector in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/usage-of-addattributeasync-on-inspector/m-p/822980#M2913</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The sample has been added to the Community Samples located here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Editing/Inspector_AddAttributeAsync" title="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Editing/Inspector_AddAttributeAsync"&gt;arcgis-pro-sdk-community-samples/Editing/Inspector_AddAttributeAsync at master · Esri/arcgis-pro-sdk-community-samples ·…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Nov 2019 21:13:04 GMT</pubDate>
    <dc:creator>NarelleChedzey</dc:creator>
    <dc:date>2019-11-15T21:13:04Z</dc:date>
    <item>
      <title>Usage of AddAttributeAsync on Inspector</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/usage-of-addattributeasync-on-inspector/m-p/822977#M2910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having some difficulty using the AddAttributeAsync() method on the Inspector class. I have tried with different sets of attributes but I can never get the embeddable control to render the fields I have added, it only renders when I have loaded a full layer schema or a mapmember and objectId.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone provide a sample that shows proper usage of this method? I was presuming it is this call that would provide for displaying a subset of attributes for modification much like the Create Feature experience shows. I didn't see any usage of this method in the community samples projects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;IMG alt="Create Feature dialog showing subset of all fields" class="jive-emoji image-1 jive-image j-img-original" src="/legacyfs/online/473328_2019-11-13 10_30_34-MinervilleElectricDistributionV2PostGres - Electric Editor - ArcGIS Pro.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2019 17:32:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/usage-of-addattributeasync-on-inspector/m-p/822977#M2910</guid>
      <dc:creator>DanielRouleau</dc:creator>
      <dc:date>2019-11-13T17:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Usage of AddAttributeAsync on Inspector</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/usage-of-addattributeasync-on-inspector/m-p/822978#M2911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are working on a sample to help explain use, in the meantime I believe I can give you a couple hints...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We always use this with a new (empty) inspector created with isFeatureEdiitng = false and if you call Load or LoadSchema on it after adding fields it would just overwrite the fields you have added so just add the fields you want explicitly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After setting up the inspector we usually are done Adding more fields by the time we create the EmbeddableControl and show it on the UI.&amp;nbsp; Adding after the view is being shown should work but is not currently utilized, so may be buggy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will then need to read whatever values out of the Inspector and do whatever you want with them at some point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tasks and Parcels use this internally and Create features uses a variant of it (but since it has access to internal methods it uses some features not exposed publicly).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2019 20:13:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/usage-of-addattributeasync-on-inspector/m-p/822978#M2911</guid>
      <dc:creator>JohnJones</dc:creator>
      <dc:date>2019-11-14T20:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Usage of AddAttributeAsync on Inspector</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/usage-of-addattributeasync-on-inspector/m-p/822979#M2912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Daniel,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a sample that illustrates how to use the AddAttributeAsync method. It&amp;nbsp;contains a single tool which displays a grid requesting attribute values from the user.&amp;nbsp; After entering values into the grid, the user is required to sketch a rectangle to identify features.&amp;nbsp; The attributes entered will then be applied to the features identified.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A couple of things to note.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sample is written to work in conjunction with the 'Interacting With Maps.aprx' from the Community Samples Data.&amp;nbsp; It works specifically with the Police Stations layer in that project.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the sample I have added 2 attributes from a single layer into the inspector. However, there is no reason why you cannot have multiple attributes from multiple layers in the inspector at one time.&amp;nbsp; It just depends on your purpose.&amp;nbsp; As an example, Create Features only works with attributes from a single layer, whereas Tasks (in the GetAttributes action) allows attributes from multiple layers to be in the inspector grid&amp;nbsp;at one time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sample also&amp;nbsp;illustrates the validation of the attributes via the Attribute.AddValidate routine.&amp;nbsp; &amp;nbsp;This is how the red&amp;nbsp;border outline appears.&amp;nbsp; Obviously if no errors are returned,&amp;nbsp;(or no Validation occurs) the attribute is deemed to be valid.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know if you have any further questions or if you have trouble accessing this zip / sample.&amp;nbsp; You may need to re-reference the ArcGIS dlls in the project according to your install location.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will also get this posted to the Pro SDK Community Samples github repository.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Narelle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2019 19:19:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/usage-of-addattributeasync-on-inspector/m-p/822979#M2912</guid>
      <dc:creator>NarelleChedzey</dc:creator>
      <dc:date>2019-11-15T19:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Usage of AddAttributeAsync on Inspector</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/usage-of-addattributeasync-on-inspector/m-p/822980#M2913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The sample has been added to the Community Samples located here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Editing/Inspector_AddAttributeAsync" title="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Editing/Inspector_AddAttributeAsync"&gt;arcgis-pro-sdk-community-samples/Editing/Inspector_AddAttributeAsync at master · Esri/arcgis-pro-sdk-community-samples ·…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2019 21:13:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/usage-of-addattributeasync-on-inspector/m-p/822980#M2913</guid>
      <dc:creator>NarelleChedzey</dc:creator>
      <dc:date>2019-11-15T21:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Usage of AddAttributeAsync on Inspector</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/usage-of-addattributeasync-on-inspector/m-p/1076399#M6838</link>
      <description>&lt;P&gt;The solution does help. It shows how to edit attributes using the AddAttributeAsync Method.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, it does not solve the original problem. How do you display only a single field or fields in a inspector without loading all the fields and values?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 17:44:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/usage-of-addattributeasync-on-inspector/m-p/1076399#M6838</guid>
      <dc:creator>ScottLehto3</dc:creator>
      <dc:date>2021-07-07T17:44:23Z</dc:date>
    </item>
  </channel>
</rss>

