<?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: Trying to update vertices of a line in Experience Builder Custom Widgets</title>
    <link>https://community.esri.com/t5/experience-builder-custom-widgets/trying-to-update-vertices-of-a-line/m-p/1550471#M390</link>
    <description>&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#applyEdits" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#applyEdits&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;So you are using the applyEdits() function, it updates the FeatureLayer, but the other widgets do not acknowledge the change?&lt;/P&gt;</description>
    <pubDate>Mon, 21 Oct 2024 14:26:54 GMT</pubDate>
    <dc:creator>JeffreyThompson2</dc:creator>
    <dc:date>2024-10-21T14:26:54Z</dc:date>
    <item>
      <title>Trying to update vertices of a line</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/trying-to-update-vertices-of-a-line/m-p/1550287#M388</link>
      <description>&lt;P&gt;I am writing a custom widget to allow user to modify the z value of the vertices of a line, but I can't figure out how to apply the changes.&lt;/P&gt;&lt;P&gt;Right now my widget is connected to a map widget and a feature layer datasource. I listen to double click to retrieve a line feature in the map. I then loop over all the vertices in the line and display their z value in an input. I can update the paths of the line with the values entered, but I can't figure out how to save these changes in my feature layer datasource so that these changes are available to all the other widgets in my experience.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Oct 2024 23:58:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/trying-to-update-vertices-of-a-line/m-p/1550287#M388</guid>
      <dc:creator>clc</dc:creator>
      <dc:date>2024-10-19T23:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to update vertices of a line</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/trying-to-update-vertices-of-a-line/m-p/1550471#M390</link>
      <description>&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#applyEdits" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#applyEdits&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;So you are using the applyEdits() function, it updates the FeatureLayer, but the other widgets do not acknowledge the change?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 14:26:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/trying-to-update-vertices-of-a-line/m-p/1550471#M390</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2024-10-21T14:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to update vertices of a line</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/trying-to-update-vertices-of-a-line/m-p/1550657#M391</link>
      <description>&lt;P&gt;I am so lost!&lt;/P&gt;&lt;P&gt;I wanted to edit the records of my datasource directly. This does not seem to be possible... So I use&amp;nbsp;&lt;SPAN&gt;createJSAPILayerByDataSource&lt;/SPAN&gt;&lt;SPAN&gt;() to get a feature layer. I then query the feature layer with the objectid of the polyline I double-click on to get the feature. I then can use applyEdits(). This works fine for updating any attributes&amp;nbsp; but not for changing the z of its vertices for the simple reason that there is no z in the vertices of the feature returned by the query. I used the same code for looping through the path of the polyline. When the polyline is obtained from the datasource it shows x, y and z (as it should because it is z-aware), when the polyline is obtained from the feature layer it shows only x and y!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 21:02:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/trying-to-update-vertices-of-a-line/m-p/1550657#M391</guid>
      <dc:creator>clc</dc:creator>
      <dc:date>2024-10-21T21:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to update vertices of a line</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/trying-to-update-vertices-of-a-line/m-p/1550827#M392</link>
      <description>&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#returnZ" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#returnZ&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I think to get the z values you must explicitly add returnGeometry = true and returnZ = true to your query.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 12:22:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/trying-to-update-vertices-of-a-line/m-p/1550827#M392</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2024-10-22T12:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to update vertices of a line</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/trying-to-update-vertices-of-a-line/m-p/1550915#M393</link>
      <description>&lt;P&gt;You are right, I did not know about returnZ, I thought return Geometry was enough.&lt;/P&gt;&lt;P&gt;Thanks a lot for your help and all your posts.&lt;/P&gt;&lt;P&gt;Catherine&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 15:08:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/trying-to-update-vertices-of-a-line/m-p/1550915#M393</guid>
      <dc:creator>clc</dc:creator>
      <dc:date>2024-10-22T15:08:07Z</dc:date>
    </item>
  </channel>
</rss>

