flex combobox question

365
1
04-01-2011 09:10 AM
JustinCarasick
New Contributor III
Hi folks, I am binding a combobox using the below code with a FeatureLayer. After I add a new feature to the FeatureLayer (editing using the applyEdits method of the FeatureLayer). After this the combobox gets an additional value of object:Object.

var features:ArrayCollection = ArrayCollection(excavationLayer.graphicProvider);
var featureSet:FeatureSet = new FeatureSet(features.source)

this.cboSearchWorkOrder.dataProvider = featureSet.attributes;
this.cboSearchWorkOrder.labelField = "Order_No";


I stepped through the code when selecting the object:Object item in the combobox and has the correct attributes array but for some reason won't display it properly.

I have tried to refresh the FeatureLayer with hopes of rebinding the combobox but didn't seem to work. Any ideas?

thanks,
Justin
Tags (2)
0 Kudos
1 Reply
JustinCarasick
New Contributor III
I figured it out. When adding a feature using applyEdits method I was setting the attribute column name to "order_no" vs. "Order_No". While it did update the database and all was good. The binding of the combobox couldn't handle the case differences.
0 Kudos