<?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:  Adding attachments to layers. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-attachments-to-layers/m-p/380964#M35364</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-userid="424218" data-username="roman.k_clearion" href="https://community.esri.com/people/roman.k_clearion"&gt;Roman Kohut&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the look of the error it looks like the layer doesnt support global ids, please refer to the documentation at link&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/rest/services-reference/apply-edits-feature-service-layer-.htm" title="https://developers.arcgis.com/rest/services-reference/apply-edits-feature-service-layer-.htm"&gt;Apply Edits (Feature Service/Layer)—ArcGIS REST API | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;for more information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;supportsApplyEditsWithGlobalIds&lt;/STRONG&gt; will be true if the layer supports applying edits.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The documentation also states&amp;nbsp;if useGlobalIds is true&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;, the features are added while preserving their globalIds&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;. If useGlobalIds is false&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #595959; font-weight: 300; "&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;or not specified, the globalIds&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;&lt;SPAN style="background-color: #ffffff; color: #4c4c4c; "&gt;submitted with the features are ignored and the service assigns new&amp;nbsp;globalIds&lt;/SPAN&gt;&lt;SPAN style="background-color: #f8f8f8; color: #595959; "&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;to the new features.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #4c4c4c; "&gt;Please feel free to share codepen with your example which will be easier for verifying if there is any change in code required.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="direction: ltr; border-width: 100%;"&gt;&lt;DIV style="direction: ltr; margin-top: 0in; margin-left: 0in; width: 7.5in;"&gt;&lt;DIV style="direction: ltr; margin-top: 0in; margin-left: 0in; width: 7.5in;"&gt;&lt;P style="margin: 0in; font-family: arial; font-size: 11.25pt; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: arial; font-size: 11.25pt; color: #3d3d3d;"&gt;&lt;SPAN style="background: white;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: arial; font-size: 11.25pt; color: #3d3d3d;"&gt;&lt;SPAN style="background: white;"&gt;Manish&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-family: inherit; font-size: 9.75pt; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: italic; background: white;"&gt;If this answer solved your question or if you found it helpful please mark it accordingly to help others who have the same question.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Oct 2020 11:08:25 GMT</pubDate>
    <dc:creator>ManishPatel</dc:creator>
    <dc:date>2020-10-12T11:08:25Z</dc:date>
    <item>
      <title>Adding attachments to layers.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-attachments-to-layers/m-p/380963#M35363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I try to add attachments to a layer, I get the following error in response:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="510691" alt="error" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/510691_Screenshot_17.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/510756_Screenshot_20.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps someone has encountered this error?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Oct 2020 20:10:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-attachments-to-layers/m-p/380963#M35363</guid>
      <dc:creator>RomanKohut</dc:creator>
      <dc:date>2020-10-11T20:10:56Z</dc:date>
    </item>
    <item>
      <title>Re:  Adding attachments to layers.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-attachments-to-layers/m-p/380964#M35364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-userid="424218" data-username="roman.k_clearion" href="https://community.esri.com/people/roman.k_clearion"&gt;Roman Kohut&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the look of the error it looks like the layer doesnt support global ids, please refer to the documentation at link&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/rest/services-reference/apply-edits-feature-service-layer-.htm" title="https://developers.arcgis.com/rest/services-reference/apply-edits-feature-service-layer-.htm"&gt;Apply Edits (Feature Service/Layer)—ArcGIS REST API | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;for more information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;supportsApplyEditsWithGlobalIds&lt;/STRONG&gt; will be true if the layer supports applying edits.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The documentation also states&amp;nbsp;if useGlobalIds is true&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;, the features are added while preserving their globalIds&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;. If useGlobalIds is false&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #595959; font-weight: 300; "&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;or not specified, the globalIds&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;&lt;SPAN style="background-color: #ffffff; color: #4c4c4c; "&gt;submitted with the features are ignored and the service assigns new&amp;nbsp;globalIds&lt;/SPAN&gt;&lt;SPAN style="background-color: #f8f8f8; color: #595959; "&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;to the new features.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #4c4c4c; "&gt;Please feel free to share codepen with your example which will be easier for verifying if there is any change in code required.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="direction: ltr; border-width: 100%;"&gt;&lt;DIV style="direction: ltr; margin-top: 0in; margin-left: 0in; width: 7.5in;"&gt;&lt;DIV style="direction: ltr; margin-top: 0in; margin-left: 0in; width: 7.5in;"&gt;&lt;P style="margin: 0in; font-family: arial; font-size: 11.25pt; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: arial; font-size: 11.25pt; color: #3d3d3d;"&gt;&lt;SPAN style="background: white;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: arial; font-size: 11.25pt; color: #3d3d3d;"&gt;&lt;SPAN style="background: white;"&gt;Manish&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-family: inherit; font-size: 9.75pt; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: italic; background: white;"&gt;If this answer solved your question or if you found it helpful please mark it accordingly to help others who have the same question.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2020 11:08:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-attachments-to-layers/m-p/380964#M35364</guid>
      <dc:creator>ManishPatel</dc:creator>
      <dc:date>2020-10-12T11:08:25Z</dc:date>
    </item>
    <item>
      <title>Re:  Adding attachments to layers.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-attachments-to-layers/m-p/380965#M35365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. You can see the function that is responsible for adding an attachment to the layer -&amp;nbsp;&lt;A class="link-titled" href="https://codepen.io/RomanMainn/pen/XWKmNOx?editors=0010" title="https://codepen.io/RomanMainn/pen/XWKmNOx?editors=0010"&gt;https://codepen.io/RomanMainn/pen/XWKmNOx?editors=0010&lt;/A&gt;.&amp;nbsp;Where should I add the &lt;STRONG&gt;supportsApplyEditsWithGlobalIds&lt;/STRONG&gt; property?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also please note, I was guided by the documentation for this link: &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#applyEdits"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#applyEdits&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2020 08:11:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-attachments-to-layers/m-p/380965#M35365</guid>
      <dc:creator>RomanKohut</dc:creator>
      <dc:date>2020-10-13T08:11:04Z</dc:date>
    </item>
  </channel>
</rss>

