<?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: EditWidget (Viewer for Flex 3.4) - Prepopulate fields by code ? in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/editwidget-viewer-for-flex-3-4-prepopulate-fields/m-p/386255#M11122</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another solution would be to add a new icon near the address field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After the editor windows is opened, a click on this icon would prepopulate the address field with the address found by the reverse geocoder (like the calendar icon)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;According to you, is this a good solution ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If yes, how to start ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Guillaume&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jul 2013 12:04:14 GMT</pubDate>
    <dc:creator>GuillaumeROUSSEL1</dc:creator>
    <dc:date>2013-07-19T12:04:14Z</dc:date>
    <item>
      <title>EditWidget (Viewer for Flex 3.4) - Prepopulate fields by code ?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/editwidget-viewer-for-flex-3-4-prepopulate-fields/m-p/386254#M11121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use the EditWidget of a viewer for flex 3.4.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the editor, I try to prepolutate an address field by code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For instance : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- getting x/y of the mappoint clicked by the user =&amp;gt; OK&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- reverse geocoding for this point =&amp;gt; OK, address is found&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- affect the address to the address field (seem OK)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;=&amp;gt; editor.attributeInspector.activeFeature.attributes["address"] = "reverse geocoding address found";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is the editor is opened BEFORE reverse geocoding is finished.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The value of the address field seem correctly changed (because if I validate, the record in database own the correct address), but the field display is not filled for the user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I try a lot of things :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- bindable var for the address&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- editor.attributeInspector.activeFeature.attributes["address"] = "reverse geocoding address found";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- editor.attributeInspector.activeFeature.validateNow();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- editor.attributeInspector.activeFeature.validateProperties();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- editor.attributeInspector.activeFeature.refresh();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- editor.attributeInspector.refreshActiveFeature();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- editor.validateNow();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, no way to refresh the display !!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have any idea to correct this point ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In anticipation, thank you for help !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Guillaume&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2013 08:35:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/editwidget-viewer-for-flex-3-4-prepopulate-fields/m-p/386254#M11121</guid>
      <dc:creator>GuillaumeROUSSEL1</dc:creator>
      <dc:date>2013-07-18T08:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: EditWidget (Viewer for Flex 3.4) - Prepopulate fields by code ?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/editwidget-viewer-for-flex-3-4-prepopulate-fields/m-p/386255#M11122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another solution would be to add a new icon near the address field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After the editor windows is opened, a click on this icon would prepopulate the address field with the address found by the reverse geocoder (like the calendar icon)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;According to you, is this a good solution ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If yes, how to start ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Guillaume&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 12:04:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/editwidget-viewer-for-flex-3-4-prepopulate-fields/m-p/386255#M11122</guid>
      <dc:creator>GuillaumeROUSSEL1</dc:creator>
      <dc:date>2013-07-19T12:04:14Z</dc:date>
    </item>
  </channel>
</rss>

