Select to view content in your preferred language

Editing a field inspector programmatically

761
0
10-08-2010 07:10 AM
EddieJesinsky
Deactivated User
Hi,

Is it possible to edit a field inspector programmatically? For example, say I have the following fieldInspector:

  <esri:FieldInspector id="myFieldInspector" featureLayer="{myLayer}" fieldName="MYFIELD"  label="My Field">
   <esri:renderer>
    <fx:Component>
     <esri:DropDownListField>
      <esri:dataProvider>
       <s:ArrayCollection>
        <fx:Object label="Red" value="RED"/>
        <fx:Object label="Green" value="GREEN"/>
       </s:ArrayCollection>
      </esri:dataProvider>
     </esri:DropDownListField>
    </fx:Component>
   </esri:renderer>
  </esri:FieldInspector>


Rather than have the user update it, say I want to say something like myFieldInspector.value = "GREEN" and have it update the FeatureService. How is this possible?

Thank you
Tags (2)
0 Kudos
0 Replies