<?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: EditTool Autopopulate Fields in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/edittool-autopopulate-fields/m-p/26345#M1528</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For anyone using the method above, you will need to add the following code to update the layer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var updates:Array = [ feature ];
event.featureLayer.applyEdits(null, updates, null);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 21:03:47 GMT</pubDate>
    <dc:creator>ShannakaBeveridge</dc:creator>
    <dc:date>2021-12-10T21:03:47Z</dc:date>
    <item>
      <title>EditTool Autopopulate Fields</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/edittool-autopopulate-fields/m-p/26341#M1524</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;Is there a way to autopopulate fields in the attribute editor when creating and editing features? e.g. inserting the current date into a date field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Shannaka&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 01:48:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/edittool-autopopulate-fields/m-p/26341#M1524</guid>
      <dc:creator>ShannakaBeveridge</dc:creator>
      <dc:date>2011-02-14T01:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: EditTool Autopopulate Fields</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/edittool-autopopulate-fields/m-p/26342#M1525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Is there a way to autopopulate fields in the attribute editor when creating and editing features? e.g. inserting the current date into a date field.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Shannaka&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure about how to auto-populate the date field, but with all other fields you could set a default value at the database level OR set a default value on the editing template in the MXD. The flex viewer will respect these default values. To access the editing templates, simply open an edit session in the MXD you published to the server and right click the appropriate layer in the create features window and go to properties.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 12:40:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/edittool-autopopulate-fields/m-p/26342#M1525</guid>
      <dc:creator>SimonMorgan</dc:creator>
      <dc:date>2011-02-14T12:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: EditTool Autopopulate Fields</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/edittool-autopopulate-fields/m-p/26343#M1526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I hope there is someone who will correct me, but everyone that I have talked to has said that you have to use code to autopopulate the Date field in FlexViewer. I don't have the experience to help you write the code but possibly someone else who reads this can.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 12:42:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/edittool-autopopulate-fields/m-p/26343#M1526</guid>
      <dc:creator>JoelShegrud</dc:creator>
      <dc:date>2011-02-16T12:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: EditTool Autopopulate Fields</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/edittool-autopopulate-fields/m-p/26344#M1527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found that I could autopopulate fields in the Attribute Inspector of the Edit widget using &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;private function featureLayer_selectionComplete(event:FeatureLayerEvent):void&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works for both adding new features and editing existing features.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 00:02:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/edittool-autopopulate-fields/m-p/26344#M1527</guid>
      <dc:creator>ShannakaBeveridge</dc:creator>
      <dc:date>2011-02-17T00:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: EditTool Autopopulate Fields</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/edittool-autopopulate-fields/m-p/26345#M1528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For anyone using the method above, you will need to add the following code to update the layer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var updates:Array = [ feature ];
event.featureLayer.applyEdits(null, updates, null);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:03:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/edittool-autopopulate-fields/m-p/26345#M1528</guid>
      <dc:creator>ShannakaBeveridge</dc:creator>
      <dc:date>2021-12-10T21:03:47Z</dc:date>
    </item>
  </channel>
</rss>

