knisleyj

ArcGISFeatureLayer.getGraphic() returns null graphics

Discussion created by knisleyj on Sep 27, 2013
Latest reply on Oct 4, 2013 by knisleyj
I have a feature layer of type 'Table' that I am adding non-spatial features to (it's a related table):
Graphic newFeature = testLayer.createFeatureWithTemplate(testLayer.getTemplates()[0], null);
Map<String, Object> attributes = newFeature.getAttributes();
// edit attributes here
newFeature = new Graphic(null, null, attributes, 0);
testLayer.addGraphic(newFeature);


After adding features, testLayer.getGraphicIDs() returns an array as expected. However, when I loop through that array and call testLayer.getGraphic(i), it always returns null values. This exact same methodology for my spatial layers works with no problem. Any ideas?

Outcomes