<?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 Update Sync and Edit capability? Change feature service Style settings? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/update-sync-and-edit-capability-change-feature/m-p/828093#M3073</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there an option to do this using the ArcGIS API for Python?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Feb 2019 17:56:22 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2019-02-06T17:56:22Z</dc:date>
    <item>
      <title>Update Sync and Edit capability? Change feature service Style settings?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/update-sync-and-edit-capability-change-feature/m-p/828093#M3073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there an option to do this using the ArcGIS API for Python?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2019 17:56:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/update-sync-and-edit-capability-change-feature/m-p/828093#M3073</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-02-06T17:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Update Sync and Edit capability? Change feature service Style settings?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/update-sync-and-edit-capability-change-feature/m-p/828094#M3074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure thing, try this out :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #808080;"&gt;#Road Infrastructures
&lt;/SPAN&gt;&lt;SPAN style="color: #8888c6;"&gt;print&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;'Enabling Editing, Sync, Create, Delete, Query, Update and ChangeTracking')&lt;/SPAN&gt;
item_to_search = &lt;SPAN style="color: #6a8759;"&gt;'XXXXXXXX'&lt;/SPAN&gt;)
owner = &lt;SPAN style="color: #6a8759;"&gt;'XXXXX'
&lt;/SPAN&gt;item = gis.content.search(&lt;SPAN style="color: #aa4926;"&gt;query&lt;/SPAN&gt;=&lt;SPAN style="color: #6a8759;"&gt;"title:" &lt;/SPAN&gt;+ item_to_search + &lt;SPAN style="color: #6a8759;"&gt;" AND owner: " &lt;/SPAN&gt;+ owner&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #aa4926;"&gt;item_type&lt;/SPAN&gt;=&lt;SPAN style="color: #6a8759;"&gt;"Feature Layer"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #aa4926;"&gt;sort_field&lt;/SPAN&gt;=&lt;SPAN style="color: #6a8759;"&gt;'title'&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #aa4926;"&gt;sort_order&lt;/SPAN&gt;=&lt;SPAN style="color: #6a8759;"&gt;'asc'&lt;/SPAN&gt;)
flc = FeatureLayerCollection.fromitem(item[&lt;SPAN style="color: #6897bb;"&gt;0&lt;/SPAN&gt;])
&lt;SPAN style="color: #8888c6;"&gt;print&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;"Road Infrastructures Initial Capabilities ==&amp;gt; {}"&lt;/SPAN&gt;.format(flc.properties.capabilities))
&lt;SPAN style="color: #8888c6;"&gt;print&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;"Road Infrastructures Initial Layer capabilities ==&amp;gt; {}"&lt;/SPAN&gt;.format(flc.layers[&lt;SPAN style="color: #6897bb;"&gt;0&lt;/SPAN&gt;].properties.capabilities))
&lt;SPAN style="color: #8888c6;"&gt;print&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;'   '&lt;/SPAN&gt;)


&lt;SPAN style="color: #8888c6;"&gt;print&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;'Updating Editing options ...'&lt;/SPAN&gt;)
flc.manager.update_definition({&lt;SPAN style="color: #6a8759;"&gt;'capabilities' &lt;/SPAN&gt;: &lt;SPAN style="color: #6a8759;"&gt;'Query,Sync'&lt;/SPAN&gt;})
layer = flc.layers[&lt;SPAN style="color: #6897bb;"&gt;0&lt;/SPAN&gt;]
layer.manager.update_definition({&lt;SPAN style="color: #6a8759;"&gt;'capabilities' &lt;/SPAN&gt;: &lt;SPAN style="color: #6a8759;"&gt;'Query,Sync'&lt;/SPAN&gt;})


&lt;SPAN style="color: #808080;"&gt;#Check results
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;# item = gis.content.search(query="title:" + item_to_search + " AND owner: " + owner, item_type="Feature Layer", sort_field='title', sort_order='asc')
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;# flc = FeatureLayerCollection.fromitem(item[0])
&lt;/SPAN&gt;&lt;SPAN style="color: #8888c6;"&gt;print&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;"Road Infrastructures Updated Capabilities ==&amp;gt; {}"&lt;/SPAN&gt;.format(flc.properties.capabilities))
&lt;SPAN style="color: #8888c6;"&gt;print&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;"Road Infrastructures Updated Layer capabilities ==&amp;gt; {}"&lt;/SPAN&gt;.format(flc.layers[&lt;SPAN style="color: #6897bb;"&gt;0&lt;/SPAN&gt;].properties.capabilities))
&lt;SPAN style="color: #8888c6;"&gt;print&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;"================================================================================================================="&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:58:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/update-sync-and-edit-capability-change-feature/m-p/828094#M3074</guid>
      <dc:creator>MaximeCampeau</dc:creator>
      <dc:date>2021-12-12T09:58:49Z</dc:date>
    </item>
  </channel>
</rss>

