[Bindable] public var myDate:Date; protected function FireDetails_clickHandler():void { var selFireDate:Date=new Date(hostComponent.activeFeature.attributes.FInspect); myDate=selFireDate; currentState="fire"; }
var myDate:Date = new Date(value);
<s:Label text="{hostComponent.activeFeature.attributes.FieldNameHere}"/>
private var changeWatcher:ChangeWatcher; private function application1_initializeHandler(event:FlexEvent):void { changeWatcher=ChangeWatcher.watch(attrInsp,"activeFeature", attrInsp_activeFeatureChangeHandler); } private function attrInsp_activeFeatureChangeHandler(event:Event=null):void { myMap.infoWindow.label="File "+ attrInsp.activeFeature.attributes.FileNo; }
private var changeWatcher:ChangeWatcher; // on lets say application intialize, do the following: changeWatcher = ChangeWatcher.watch(attributeInspector, "activeFeature", attributeInspector_activeFeatureChangeHandler); //attributeInspector is the AttributeInspector Object private function attributeInspector_activeFeatureChangeHandler(event:Event=null):void { myMap.infoWindow.label="File "+ attributeInspector.activeFeature.attributes.FileNo; }
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.