Bug? GetDomain() not working on some feature services

440
1
05-07-2013 01:59 AM
TrevorHart1
New Contributor III
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
New Contributor III
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