<?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>idea API access to updating domains in AGO in ArcGIS Online Ideas</title>
    <link>https://community.esri.com/t5/arcgis-online-ideas/api-access-to-updating-domains-in-ago/idi-p/937779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We use coded value domains for multiple fields in more than 30 feature layers. In our previous applications (using ArcMap), we were able to use ArcObjects to update domains.&amp;nbsp; Using hosted services in ArcGIS Online,&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;the owner of a hosted feature layer or organization administrator can&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;add/edit/delete domains using t&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;he hosted feature layer's item page&amp;nbsp;as described at this link:&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&lt;A class="link-titled" href="https://doc.arcgis.com/en/arcgis-online/manage-data/define-attribute-lists-and-ranges.htm" title="https://doc.arcgis.com/en/arcgis-online/manage-data/define-attribute-lists-and-ranges.htm"&gt;Define attribute lists and ranges—ArcGIS Online Help | ArcGIS&lt;/A&gt;.&amp;nbsp;This method is useful for GIS administrators or others with GIS knowledge, but it doesn't address our needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to be able to control which domains are editable and which values can be changed. Examples:&lt;/P&gt;&lt;P&gt;1) Values used in code to&amp;nbsp;trigger other actions (fields that are required, setting default values in other fields). Values in this domain may be required by code or not-- meaning some values cannot be&amp;nbsp;edited/deleted but&amp;nbsp;the domain can have other values that can be editable.&lt;/P&gt;&lt;P&gt;2) Measurement units (ensures calculations use correct units).&lt;/P&gt;&lt;P&gt;3) T/F values -- certain actions are triggered based on whether value is true (1) or false (0), incorrect action can occur if&amp;nbsp; values other than 1/0 are added.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We want to offer our customers the flexibility of defining their own values for fields, while maintaining the integrity of the code. Our current application is in JavaScript using the 3.x API.&amp;nbsp;Using that API, we might be able to use Esri Request and the&amp;nbsp;UpdateDefinitions method to update domains. The functionality available in the AGO hosted feature layer described above would be preferred. Ideally, an API that allows domain editing tools that perform the following tasks&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Create a list of values based on the existing unique values in a field.&lt;/P&gt;&lt;P&gt;2) Assign the same domain to multiple fields (in different layers) at the same time.&lt;/P&gt;&lt;P&gt;3)&amp;nbsp;Control&amp;nbsp;which domains can be edited.&lt;/P&gt;&lt;P&gt;4) Control which values in a domain can be edited.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Oct 2018 17:33:44 GMT</pubDate>
    <dc:creator>ChrisSeabrooke1</dc:creator>
    <dc:date>2018-10-02T17:33:44Z</dc:date>
    <item>
      <title>API access to updating domains in AGO</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/api-access-to-updating-domains-in-ago/idi-p/937779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We use coded value domains for multiple fields in more than 30 feature layers. In our previous applications (using ArcMap), we were able to use ArcObjects to update domains.&amp;nbsp; Using hosted services in ArcGIS Online,&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;the owner of a hosted feature layer or organization administrator can&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;add/edit/delete domains using t&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;he hosted feature layer's item page&amp;nbsp;as described at this link:&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&lt;A class="link-titled" href="https://doc.arcgis.com/en/arcgis-online/manage-data/define-attribute-lists-and-ranges.htm" title="https://doc.arcgis.com/en/arcgis-online/manage-data/define-attribute-lists-and-ranges.htm"&gt;Define attribute lists and ranges—ArcGIS Online Help | ArcGIS&lt;/A&gt;.&amp;nbsp;This method is useful for GIS administrators or others with GIS knowledge, but it doesn't address our needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to be able to control which domains are editable and which values can be changed. Examples:&lt;/P&gt;&lt;P&gt;1) Values used in code to&amp;nbsp;trigger other actions (fields that are required, setting default values in other fields). Values in this domain may be required by code or not-- meaning some values cannot be&amp;nbsp;edited/deleted but&amp;nbsp;the domain can have other values that can be editable.&lt;/P&gt;&lt;P&gt;2) Measurement units (ensures calculations use correct units).&lt;/P&gt;&lt;P&gt;3) T/F values -- certain actions are triggered based on whether value is true (1) or false (0), incorrect action can occur if&amp;nbsp; values other than 1/0 are added.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We want to offer our customers the flexibility of defining their own values for fields, while maintaining the integrity of the code. Our current application is in JavaScript using the 3.x API.&amp;nbsp;Using that API, we might be able to use Esri Request and the&amp;nbsp;UpdateDefinitions method to update domains. The functionality available in the AGO hosted feature layer described above would be preferred. Ideally, an API that allows domain editing tools that perform the following tasks&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Create a list of values based on the existing unique values in a field.&lt;/P&gt;&lt;P&gt;2) Assign the same domain to multiple fields (in different layers) at the same time.&lt;/P&gt;&lt;P&gt;3)&amp;nbsp;Control&amp;nbsp;which domains can be edited.&lt;/P&gt;&lt;P&gt;4) Control which values in a domain can be edited.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2018 17:33:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/api-access-to-updating-domains-in-ago/idi-p/937779</guid>
      <dc:creator>ChrisSeabrooke1</dc:creator>
      <dc:date>2018-10-02T17:33:44Z</dc:date>
    </item>
  </channel>
</rss>

