Figured things out so I figured I'd offer the pretty straight-forward solution here. Not sure why I couldn't find it to start, but simply put, you use the applyEdits() method on a feature layer, supplying it with a JSON formatted array of graphics/geometries and attributes.Here's the code:function showResults(featureSet) {
// Clear prior graphics
map.graphics.clear();
// Assign symbology to selected features
var parcelSymbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID,
new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,
new dojo.Color([98, 194, 204]), 2), new dojo.Color([98, 194, 204, 0.5]));
// Put result in array
var resultFeatures = featureSet.features;
if (resultFeatures.length > 0) {
// Empty out array for new features
features = [];
// Loop through each feature (here it's limited to one feature)
for (var i=0, il=resultFeatures.length; i<1; i++) {
var feature = resultFeatures;
feature.setSymbol(parcelSymbol);
var geometry = feature.geometry;
var parcelGraphic = new esri.Graphic(geometry);
var attr = {};
parcelGraphic.setAttributes(attr);
features.push(parcelGraphic);
}
}
Hope it helps,Colin