Select to view content in your preferred language

DataForm control

1435
4
09-06-2011 10:54 AM
DonFreeman
Emerging Contributor
The FeatureDataForm defaults to present the fields and their labels using the fieldnames and order in which they appear in the database. Is there a way to override this and change the order of the presentation and the label associated with the field?
Thanks
0 Kudos
4 Replies
JenniferNery
Esri Regular Contributor
This is the behavior of FeatureDataForm, it relies on the order of fields as specified in the service. If you wish to change this behavior, you can download source from codeplex http://esrisilverlight.codeplex.com/, you can tweak GenerateFields() method.
0 Kudos
DonFreeman
Emerging Contributor
This is the behavior of FeatureDataForm, it relies on the order of fields as specified in the service. If you wish to change this behavior, you can download source from codeplex http://esrisilverlight.codeplex.com/, you can tweak GenerateFields() method.


Thanks Jenn. Can they be reordered in the service? Or in the dataset before the service is published? Anything short of creating new fields in the propoer order.
0 Kudos
JenniferNery
Esri Regular Contributor
I have asked around and it seems there is a bug in feature service where the results does not honor the order of out fields.

For example, this service defines lifecyclestatus before description in the fields. If I request "description, lifecyclestatus", the result respects the order in my query in map service but not in feature service.

Map service:
http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/MapServer/0/q...

Feature service:
http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer...
0 Kudos
DonFreeman
Emerging Contributor
I have asked around and it seems there is a bug in feature service where the results does not honor the order of out fields.

For example, this service defines lifecyclestatus before description in the fields. If I request "description, lifecyclestatus", the result respects the order in my query in map service but not in feature service.

Map service:
http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/MapServer/0/q...

Feature service:
http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer...


Thanks. may I assume you will report this as a bug?
0 Kudos