<?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: AttributeInspector in an InfoWindow in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/attributeinspector-in-an-infowindow/m-p/152375#M3569</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I use the above method for a date field I get the UTC number as a string instead of a date object.&amp;nbsp; I have searched the internet for ways to convert this 13 digit string back to a date but have had no luck.&amp;nbsp; A coded domain gives me the same headache-I get the code.&amp;nbsp; I could use some suggestions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Sep 2010 17:31:23 GMT</pubDate>
    <dc:creator>KathleenBrenkert</dc:creator>
    <dc:date>2010-09-15T17:31:23Z</dc:date>
    <item>
      <title>AttributeInspector in an InfoWindow</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/attributeinspector-in-an-infowindow/m-p/152371#M3565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've been using the following code to set my infoWindow label to an attribute returned from my feature service.&amp;nbsp; This works great until I have more then 1 selected feature.&amp;nbsp; How do I get it to use the selected feature that is currently shown in the attribute inspector, and how do I get it to update after clicking the next or pervious buttons?&amp;nbsp; I have attempted to call the activeFeatureIndex of my attributeInspector, but I can't seem to get a value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;myMap.infoWindow.label="File "+ event.featureLayer.selectedFeatures[0].attributes.FileNo;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Aug 2010 19:14:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/attributeinspector-in-an-infowindow/m-p/152371#M3565</guid>
      <dc:creator>KathleenBrenkert</dc:creator>
      <dc:date>2010-08-10T19:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeInspector in an InfoWindow</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/attributeinspector-in-an-infowindow/m-p/152372#M3566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Kathleen,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could watch for change on activeFeature property on the attribute inspector and whenever that is changed(moving through the attribute inspector), you could use the attributes of the current activeFeature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;private var changeWatcher:ChangeWatcher;

// on lets say application intialize, do the following:

changeWatcher = ChangeWatcher.watch(attributeInspector, "activeFeature", attributeInspector_activeFeatureChangeHandler);&amp;nbsp;&amp;nbsp; //attributeInspector is the AttributeInspector Object

private function attributeInspector_activeFeatureChangeHandler(event:Event=null):void
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; myMap.infoWindow.label="File "+ attributeInspector.activeFeature.attributes.FileNo;
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:10:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/attributeinspector-in-an-infowindow/m-p/152372#M3566</guid>
      <dc:creator>SarthakDatt</dc:creator>
      <dc:date>2021-12-11T08:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeInspector in an InfoWindow</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/attributeinspector-in-an-infowindow/m-p/152373#M3567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I stuck this in and it doesn't seem to pick up the change.&amp;nbsp; It also looks to me that the activeFeature property loads after my infowindow has popped up- makes sense, but I can't see how to set my label to the correct feature to start.&amp;nbsp; It will load the selectedFeatures[0].attribute(etc), but this doesn't usually match the first record in my attribute Inspector.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;private var changeWatcher:ChangeWatcher;
private function application1_initializeHandler(event:FlexEvent):void
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; changeWatcher=ChangeWatcher.watch(attrInsp,"activeFeature", attrInsp_activeFeatureChangeHandler);
}
private function attrInsp_activeFeatureChangeHandler(event:Event=null):void
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; myMap.infoWindow.label="File "+ attrInsp.activeFeature.attributes.FileNo;
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've currently created a work around so if my selection set is &amp;gt;1, it hides my attribute driven labels and shows their fieldInspectors.&amp;nbsp; Its not as pretty as if my selection set is =1, but it works.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:10:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/attributeinspector-in-an-infowindow/m-p/152373#M3567</guid>
      <dc:creator>KathleenBrenkert</dc:creator>
      <dc:date>2021-12-11T08:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeInspector in an InfoWindow</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/attributeinspector-in-an-infowindow/m-p/152374#M3568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I discovered I can add my custom labels to the skin.&amp;nbsp; I just put what I needed above the form using the format below.&amp;nbsp; Solved my problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&amp;lt;s:Label text="{hostComponent.activeFeature.attributes.FieldNameHere}"/&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 11:00:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/attributeinspector-in-an-infowindow/m-p/152374#M3568</guid>
      <dc:creator>KathleenBrenkert</dc:creator>
      <dc:date>2010-09-10T11:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeInspector in an InfoWindow</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/attributeinspector-in-an-infowindow/m-p/152375#M3569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I use the above method for a date field I get the UTC number as a string instead of a date object.&amp;nbsp; I have searched the internet for ways to convert this 13 digit string back to a date but have had no luck.&amp;nbsp; A coded domain gives me the same headache-I get the code.&amp;nbsp; I could use some suggestions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2010 17:31:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/attributeinspector-in-an-infowindow/m-p/152375#M3569</guid>
      <dc:creator>KathleenBrenkert</dc:creator>
      <dc:date>2010-09-15T17:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeInspector in an InfoWindow</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/attributeinspector-in-an-infowindow/m-p/152376#M3570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To convert a number to a Date, you just need to pass it to the Date's constructor like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;var myDate:Date = new Date(value);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2010 20:50:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/attributeinspector-in-an-infowindow/m-p/152376#M3570</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2010-09-15T20:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeInspector in an InfoWindow</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/attributeinspector-in-an-infowindow/m-p/152377#M3571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had tried to cast the activeFeature attribute directly to myDate and got errors.&amp;nbsp; Once I added another date variable inside the function it worked.&amp;nbsp; Probably a rookie mistake...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;[Bindable]
&amp;nbsp;&amp;nbsp; public var myDate:Date;
&amp;nbsp;&amp;nbsp; protected function FireDetails_clickHandler():void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var selFireDate:Date=new Date(hostComponent.activeFeature.attributes.FInspect);
&amp;nbsp;&amp;nbsp;&amp;nbsp; myDate=selFireDate;
&amp;nbsp;&amp;nbsp;&amp;nbsp; currentState="fire";
&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:10:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/attributeinspector-in-an-infowindow/m-p/152377#M3571</guid>
      <dc:creator>KathleenBrenkert</dc:creator>
      <dc:date>2021-12-11T08:10:16Z</dc:date>
    </item>
  </channel>
</rss>

