Select to view content in your preferred language

Bug? GetDomain() not working on some feature services

569
1
05-07-2013 01:59 AM
TrevorHart1
Emerging Contributor
Hi,

When I call getDomain() on the "incidenttype" field for following feature service I get the domain;

http://mobilesampleserver.arcgisonline.com/ArcGIS/rest/services/DemoData/incidents_service/FeatureSe...

However if I call getDomain() on the "TurbineType" field for the following service I get nothing;

http://mobilesampleserver.arcgisonline.com/ArcGIS/rest/services/DemoData/SabineTestService5/FeatureS...

Is this a bug?
0 Kudos
1 Reply
TrevorHart1
Emerging Contributor
Right FeatureSet.getFields and then Field.getDomain seems real flaky. Works sometimes other times not (mostly not though).

However if I use the ArcGISFeatureLayer.getFields and then Field.getDomain it seems to work everytime.
0 Kudos