<?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: How to create attribute inspectors inspectorFields with actionscript? in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-create-attribute-inspectors-inspectorfields/m-p/49168#M2076</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Martti,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; See this thread for an example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/19995-Easiest-way-to-customize-AttributeInspector-associated-with-an-active-Editor?p=64608&amp;amp;viewfull=1#post64608"&gt;http://forums.arcgis.com/threads/19995-Easiest-way-to-customize-AttributeInspector-associated-with-an-active-Editor?p=64608&amp;amp;viewfull=1#post64608&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't forget to &lt;/SPAN&gt;&lt;STRONG&gt;click the Mark as answer check&lt;/STRONG&gt;&lt;SPAN&gt; and to &lt;/SPAN&gt;&lt;STRONG&gt;click the top arrow (promote)&lt;/STRONG&gt;&lt;SPAN&gt; as shown below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;IMG src="http://gis.calhouncounty.org/FlexViewer2.5/Answer.jpg" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Feb 2012 12:50:24 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2012-02-07T12:50:24Z</dc:date>
    <item>
      <title>How to create attribute inspectors inspectorFields with actionscript?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-create-attribute-inspectors-inspectorfields/m-p/49167#M2075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to create an attribute inspector window with actionscript, because the field inspectors need to be created dynamically. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In mxml, I can just go&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp; &amp;lt;esri:FieldInspector id="myFieldInspector" featureLayer="{myLayer}" fieldName="MYFIELD"&amp;nbsp; label="My Field"&amp;gt; &amp;nbsp;&amp;nbsp; &amp;lt;esri:renderer&amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fx:Component&amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:DropDownListField&amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:dataProvider&amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;s:ArrayCollection&amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fx:Object label="Red" value="RED"/&amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fx:Object label="Green" value="GREEN"/&amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/s:ArrayCollection&amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:dataProvider&amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:DropDownListField&amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/fx:Component&amp;gt; &amp;nbsp;&amp;nbsp; &amp;lt;/esri:renderer&amp;gt; &amp;nbsp; &amp;lt;/esri:FieldInspector&amp;gt;.&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;In actionscript, I can go:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;myFieldInspector.renderer = myFieldInspectorRenderer, and then do the renderer in a separate mxml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The fieldInspector should be a textInput or a textArea, and changes to those fields should go to the database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What should the renderer contain for this? The fieldInspector has correct the featurelayer and the field name.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2012 11:05:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-create-attribute-inspectors-inspectorfields/m-p/49167#M2075</guid>
      <dc:creator>MarttiKostia</dc:creator>
      <dc:date>2012-02-07T11:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to create attribute inspectors inspectorFields with actionscript?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-create-attribute-inspectors-inspectorfields/m-p/49168#M2076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Martti,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; See this thread for an example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/19995-Easiest-way-to-customize-AttributeInspector-associated-with-an-active-Editor?p=64608&amp;amp;viewfull=1#post64608"&gt;http://forums.arcgis.com/threads/19995-Easiest-way-to-customize-AttributeInspector-associated-with-an-active-Editor?p=64608&amp;amp;viewfull=1#post64608&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't forget to &lt;/SPAN&gt;&lt;STRONG&gt;click the Mark as answer check&lt;/STRONG&gt;&lt;SPAN&gt; and to &lt;/SPAN&gt;&lt;STRONG&gt;click the top arrow (promote)&lt;/STRONG&gt;&lt;SPAN&gt; as shown below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;IMG src="http://gis.calhouncounty.org/FlexViewer2.5/Answer.jpg" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2012 12:50:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-create-attribute-inspectors-inspectorfields/m-p/49168#M2076</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-02-07T12:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to create attribute inspectors inspectorFields with actionscript?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-create-attribute-inspectors-inspectorfields/m-p/49169#M2077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Robert, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did look at that thread first, but I couldn't figure out from the answers how the data in the renderer's textInput gets stored into the db.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I figured it out though: the renderer can be a standard item renderer: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt; &amp;lt;s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:s="library://ns.adobe.com/flex/spark"&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:mx="library://ns.adobe.com/flex/mx"&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:managers="com.esri.viewer.managers.*" &amp;nbsp;&amp;nbsp;&amp;nbsp; autoDrawBackground="true"&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; width="100%" xmlns:esri="http://www.esri.com/2008/ags" &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;&amp;nbsp; &amp;lt;fx:Script&amp;gt; &amp;nbsp; &amp;lt;![CDATA[ &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; override public function set data(value:Object):void { &amp;nbsp;&amp;nbsp;&amp;nbsp; if (value) input.text = String(value); &amp;nbsp;&amp;nbsp; } &amp;nbsp;&amp;nbsp; &amp;nbsp; ]]&amp;gt;&amp;nbsp; &amp;lt;/fx:Script&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:StringField id="input" width="200" /&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/s:ItemRenderer&amp;gt; &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With the exception that I use &amp;lt;esri:StringField&amp;gt; instead of spark textinput.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Apparently the StringField manages to do the trigger the submitting to database automatically.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 08:05:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-create-attribute-inspectors-inspectorfields/m-p/49169#M2077</guid>
      <dc:creator>MarttiKostia</dc:creator>
      <dc:date>2012-02-09T08:05:52Z</dc:date>
    </item>
  </channel>
</rss>

