<?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: Editor Widget Events in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-widget-events/m-p/1154862#M76694</link>
    <description>&lt;P&gt;you need to use the .on or .watch in the editor.viewModel , there are 2 sub viewModels inside that too&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;editor&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;viewModel&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;featureTemplatesViewModel&lt;BR /&gt;editor.viewModel.featureSketchViewModel&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;this will trigger on all editor states, you can check which event you need to trigger your custom code&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;editor&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;viewModel&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;watch&lt;/SPAN&gt;(&lt;SPAN&gt;"state"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;function &lt;/SPAN&gt;(state) &lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;  console&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;log&lt;/SPAN&gt;(state)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;)&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;or you can be more specific like this:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;editor&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;viewModel&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;featureTemplatesViewModel&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;on&lt;/SPAN&gt;(&lt;SPAN&gt;"select"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;(x) =&amp;gt; &lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;  console&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;log&lt;/SPAN&gt;(x)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;)&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Mar 2022 16:05:21 GMT</pubDate>
    <dc:creator>RodrigoAbril</dc:creator>
    <dc:date>2022-03-17T16:05:21Z</dc:date>
    <item>
      <title>Editor Widget Events</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-widget-events/m-p/1154113#M76666</link>
      <description>&lt;P&gt;Using ArcGIS API for JavaScript 4.x I am trying to create custom behavior for the Editor Widget. Specifically I want to watch for clicking the Add button on the create workflow or when clicking either Update or Delete on the update workflow. I am trying to use the editor.on() event handler, however, I am not seeing a list of events for the Editor widget. Other widgets, such as Search, have an Event Overview list (&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#events-summary" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#events-summary&lt;/A&gt;) but there does not seem to be one for Editor (&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#events-summary" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#events-summary&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;A point in the right direction would be appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 23:56:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-widget-events/m-p/1154113#M76666</guid>
      <dc:creator>BruceSchneider2</dc:creator>
      <dc:date>2022-03-15T23:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Editor Widget Events</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-widget-events/m-p/1154862#M76694</link>
      <description>&lt;P&gt;you need to use the .on or .watch in the editor.viewModel , there are 2 sub viewModels inside that too&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;editor&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;viewModel&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;featureTemplatesViewModel&lt;BR /&gt;editor.viewModel.featureSketchViewModel&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;this will trigger on all editor states, you can check which event you need to trigger your custom code&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;editor&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;viewModel&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;watch&lt;/SPAN&gt;(&lt;SPAN&gt;"state"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;function &lt;/SPAN&gt;(state) &lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;  console&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;log&lt;/SPAN&gt;(state)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;)&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;or you can be more specific like this:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;editor&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;viewModel&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;featureTemplatesViewModel&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;on&lt;/SPAN&gt;(&lt;SPAN&gt;"select"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;(x) =&amp;gt; &lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;  console&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;log&lt;/SPAN&gt;(x)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;)&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 16:05:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-widget-events/m-p/1154862#M76694</guid>
      <dc:creator>RodrigoAbril</dc:creator>
      <dc:date>2022-03-17T16:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Editor Widget Events</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-widget-events/m-p/1417279#M84463</link>
      <description>&lt;PRE&gt;&lt;SPAN&gt;editor&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;viewModel&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;featureTemplatesViewModel&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;on&lt;/SPAN&gt;(&lt;SPAN&gt;"select"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;(x) =&amp;gt; &lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;  console&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;log&lt;/SPAN&gt;(x)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;)&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt;is not working. I'm using JS API 4.28. What is the right property and right model to watch for?&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Apr 2024 21:48:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-widget-events/m-p/1417279#M84463</guid>
      <dc:creator>MichaelWen_Timmons</dc:creator>
      <dc:date>2024-04-30T21:48:51Z</dc:date>
    </item>
  </channel>
</rss>

