<?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: Load selected data onOpen of smartEditor widget in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/load-selected-data-onopen-of-smarteditor-widget/m-p/1196149#M22339</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/586027"&gt;@BrianDiunizio_GISP&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Please would you be able to clarify all the steps your users are currently doing 1, 2 ,3... ? And also please the steps you would like to provide instead? Some screenshots may be helpful too.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jul 2022 22:04:29 GMT</pubDate>
    <dc:creator>AlixVezina</dc:creator>
    <dc:date>2022-07-26T22:04:29Z</dc:date>
    <item>
      <title>Load selected data onOpen of smartEditor widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/load-selected-data-onopen-of-smarteditor-widget/m-p/1195000#M22334</link>
      <description>&lt;P&gt;Hello! I am developing a custom widget that allows a user to select from existing polygon boundaries, add the selection to an on-premise dataset, and fill out the attribute fields of the newly created boundary. I am leveraging the smartEditor widget to accomplish the step where users fill out attribute fields related to their work boundary. Another geographer has suggested that the step to click the desired treatment boundary after it has been added to the dataset and after the smartEditor widget opens is confusing. Rather, it was suggested to open the smartEditor widget with this selected boundary pre-determined already so as to advance to the attribute field population step immediately once the widget opens. I am leveraging WAB v2.19 and the smartEditor widget that is included with this install. I can clearly see the function involved once a click event occurs on the selected boundary (_processRelationAndShowAttrInspector in Widget.js), but this function accepts a DOM click event (evt) to fire the function. Does anyone have a suggestion on how to pass in my loaded feature and geometry to the smartEditor widget onOpen? As it stands now, I'm just opening the widget&amp;nbsp; with this.open("SmartEditor");. Is this even possible without a complete re-write? Is there an updated version that handles this?&lt;/P&gt;&lt;P&gt;Any help is certainly appreciated! I am relatively new to javascript 3.x and tend to revert back to my understanding of Python programming, which is very different! (@AlixVezina I think you wrote smartEditor and &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1104"&gt;@RobertScheitlin__GISP&lt;/a&gt; I can tell you are fluent in javascript)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DiunizioBrian_0-1658508016577.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/46550i4B89AF3947B23958/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DiunizioBrian_0-1658508016577.jpeg" alt="DiunizioBrian_0-1658508016577.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 16:37:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/load-selected-data-onopen-of-smarteditor-widget/m-p/1195000#M22334</guid>
      <dc:creator>BrianDiunizio_GISP</dc:creator>
      <dc:date>2022-07-26T16:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Load selected data onOpen of smartEditor widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/load-selected-data-onopen-of-smarteditor-widget/m-p/1196149#M22339</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/586027"&gt;@BrianDiunizio_GISP&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Please would you be able to clarify all the steps your users are currently doing 1, 2 ,3... ? And also please the steps you would like to provide instead? Some screenshots may be helpful too.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 22:04:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/load-selected-data-onopen-of-smarteditor-widget/m-p/1196149#M22339</guid>
      <dc:creator>AlixVezina</dc:creator>
      <dc:date>2022-07-26T22:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Load selected data onOpen of smartEditor widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/load-selected-data-onopen-of-smarteditor-widget/m-p/1196199#M22340</link>
      <description>&lt;P&gt;Thank you for your reply!&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Users are uploading a shapefile as a graphic (referencing the &lt;A href="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=portal_addshapefile&amp;amp;share=false" target="_self"&gt;Add Shapefile&lt;/A&gt; example)&lt;/LI&gt;&lt;LI&gt;On the 'Add' button click, users can save the uploaded graphic to an on-prem prod dataset&lt;/LI&gt;&lt;LI&gt;A lot of javascript is going on at this stage including an areal calc and performing a definition expression based on the uploaded polygon's objectid. I am using this def expression to select the polygon and simultaneously open smartEditor.&lt;/LI&gt;&lt;LI&gt;Attribute fields are inspected and edited within smartEditor AFTER users click on the uploaded boundary.&lt;/LI&gt;&lt;LI&gt;Is it possible to eliminate the polygon click in smartEditor and advance from capture3 to capture5 (see attached photos).&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 19:49:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/load-selected-data-onopen-of-smarteditor-widget/m-p/1196199#M22340</guid>
      <dc:creator>BrianDiunizio_GISP</dc:creator>
      <dc:date>2022-07-27T19:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Load selected data onOpen of smartEditor widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/load-selected-data-onopen-of-smarteditor-widget/m-p/1196933#M22344</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/586027"&gt;@BrianDiunizio_GISP&lt;/a&gt;&amp;nbsp;thank you for the details!&lt;/P&gt;&lt;P&gt;We looked into this and, right now, the widget to widget communications on the Smart Editor's end only listens for selection messages from the Select widget and the Attribute Table widget (this was implemented starting with the Web AppBuilder developer edition 2.20 (see:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-web-appbuilder-blog/the-smart-editor-widget-a-few-years-in-review/ba-p/1066169#:~:text=Streaming%20the%20selection%20of%20features%20to%20update" target="_blank" rel="noopener"&gt;ENH: Streaming the selection of features to update&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;So one thing you could do, is load your selections in either the Select or the Attribute widgets, the Smart Editor should pick them up when it loads.&lt;/P&gt;&lt;P&gt;Otherwise, you could also look into setting up&amp;nbsp;a feature action in your custom widget, and on execute, start up Smart Editor and&amp;nbsp;execute programmatically instead of needing a click.&amp;nbsp;&lt;A href="https://developers.arcgis.com/web-appbuilder/guide/create-a-feature-action-in-your-widget.htm" target="_blank"&gt;Create a feature action in your widget—ArcGIS Web AppBuilder | ArcGIS Developers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 18:03:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/load-selected-data-onopen-of-smarteditor-widget/m-p/1196933#M22344</guid>
      <dc:creator>AlixVezina</dc:creator>
      <dc:date>2022-07-28T18:03:00Z</dc:date>
    </item>
  </channel>
</rss>

