<?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: Detect when creation of first polygon (with attribute table) is finished by EditorViewModel in &amp;quot;creating-features&amp;quot; state in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/detect-when-creation-of-first-polygon-with/m-p/1582840#M15058</link>
    <description>&lt;P&gt;I succeeded by this link in ESRI blog&amp;nbsp;&lt;A title="Application with Editor Widget... automatically fill the input fields of the editor widget with the address information from the locator" href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/application-with-editor-widget-and-typescript/td-p/1343048" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/application-with-editor-widget-and-typescript/td-p/1343048&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my code:&lt;/P&gt;&lt;P&gt;await reactiveUtils.when(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;() =&amp;gt; editor.viewModel.featureFormViewModel,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;() =&amp;gt; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;editor.viewModel.featureFormViewModel.on("submit", function (event) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (/* activity === create*/) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;console.log(`** create finished`);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* jump to next activity */&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;});&lt;/P&gt;</description>
    <pubDate>Thu, 06 Feb 2025 20:49:19 GMT</pubDate>
    <dc:creator>MichaelLev</dc:creator>
    <dc:date>2025-02-06T20:49:19Z</dc:date>
    <item>
      <title>Detect when creation of first polygon (with attribute table) is finished by EditorViewModel in "creating-features" state</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/detect-when-creation-of-first-polygon-with/m-p/1582730#M15057</link>
      <description>&lt;P&gt;In 3D WAB app I am creating by WAB Developer Edition version 2.30 (jsApi 4.30),&lt;/P&gt;&lt;P&gt;I created custom widget containing ESRI Editor widget (and its&amp;nbsp;EditorViewModel).&lt;/P&gt;&lt;P&gt;I need to detect when creating a single feature (including setting its attributes table) has been finished.&lt;/P&gt;&lt;P&gt;I can't programmatically command the EditorViewModel to create a single feature (disable batch creation) since for this I need the method&amp;nbsp;startCreateFeaturesWorkflowAtFeatureEdit but it needs to get the feature as parameter whilst I want to create a new feature.&lt;/P&gt;&lt;P&gt;So,&amp;nbsp;I programatically start batch creation by&amp;nbsp;startCreateFeaturesWorkflowAtFeatureCreation giving it the layer, and I need to detect when creation of the first feature in the batch (and setting its attributes table) has been finished.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 16:28:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/detect-when-creation-of-first-polygon-with/m-p/1582730#M15057</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2025-02-06T16:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Detect when creation of first polygon (with attribute table) is finished by EditorViewModel in "creating-features" state</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/detect-when-creation-of-first-polygon-with/m-p/1582840#M15058</link>
      <description>&lt;P&gt;I succeeded by this link in ESRI blog&amp;nbsp;&lt;A title="Application with Editor Widget... automatically fill the input fields of the editor widget with the address information from the locator" href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/application-with-editor-widget-and-typescript/td-p/1343048" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/application-with-editor-widget-and-typescript/td-p/1343048&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my code:&lt;/P&gt;&lt;P&gt;await reactiveUtils.when(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;() =&amp;gt; editor.viewModel.featureFormViewModel,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;() =&amp;gt; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;editor.viewModel.featureFormViewModel.on("submit", function (event) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (/* activity === create*/) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;console.log(`** create finished`);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* jump to next activity */&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;});&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 20:49:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/detect-when-creation-of-first-polygon-with/m-p/1582840#M15058</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2025-02-06T20:49:19Z</dc:date>
    </item>
  </channel>
</rss>

