Select to view content in your preferred language

Feature query doesn't return all fields like it's supposed to.

412
1
09-27-2011 07:31 AM
GregoryKramida
Deactivated User
I have a Query that is performed on a feature layer and is supposed to return all fields, i.e.

this.someQuery.outFields = ["*"];


It queries a feature layer where all the fields are accessible and editable:
Fields:
objectid (Type: esriFieldTypeOID, Alias: OBJECTID, Editable: False)
length (Type: esriFieldTypeDouble, Alias: length, Editable: True)
segment_count (Type: esriFieldTypeSmallInteger, Alias: segment_count, Editable: True)
a_node (Type: esriFieldTypeInteger, Alias: a_node, Editable: True)
b_node (Type: esriFieldTypeInteger, Alias: b_node, Editable: True)
class (Type: esriFieldTypeString, Alias: class, Length: 50, Editable: True)
cost (Type: esriFieldTypeDouble, Alias: cost, Editable: True)
name (Type: esriFieldTypeString, Alias: name, Length: 50, Editable: True)


However, the only fields returned are "class", "name", "objectid", and the geometry.
Any ideas on what's going wrong?
Tags (2)
0 Kudos
1 Reply
GregoryKramida
Deactivated User
Never mind, I found a workaround. I was building up the feature layer object from a url in the widget there for some reason...

Including the feature layer in the config.xml (FlexViewer main config file) instead and accessing it via Map.getLayer(...) solved the problem.
0 Kudos