Hey Jason,The reason its not showing anything in the AT widget is because Attribute Table component is not able to create the columns. The Search widget should set the outfields on the (result)feature layer for that to happen, otherwise it just shows the 'displayfield'. My guess is your service does not have a display field set, hence you see nothing.Quick fix for this would be to update the SearchWidget.mxml by adding:
private function createSearchResults(featureSet:FeatureSet, queryFields:XMLList):ArrayCollection
{
var result:ArrayCollection = new ArrayCollection();
var layerDetails:LayerDetails = queryLayer.layerDetails;
if (!queryTitleField)
{
queryTitleField = featureSet.displayFieldName;
}
for each (var graphic:Graphic in featureSet.features)
{
var resultAttributes:ResultAttributes =
ResultAttributes.toResultAttributes(queryFields, textDirection, graphic, featureSet, queryLayer, layerDetails, widgetTitle, queryTitleField, queryLinkField, queryLinkAlias);
var searchResult:ResultItem = new ResultItem(graphic, resultAttributes);
result.addItem(searchResult);
var infoWindowRenderer:ClassFactory = new ClassFactory(PopUpRenderer);
infoWindowRenderer.properties = { popUpInfo: configurePopUpInfo(resultAttributes)};
graphic.infoWindowRenderer = infoWindowRenderer;
}
resultFeatureLayer.outFields = queryLayer.outFields; // for Attribute Table and/or AttributeInspector
resultFeatureLayer.visible = true;
resultFeatureLayer.featureCollection = new FeatureCollection(featureSet, layerDetails);
switch (featureSet.geometryType)
{
case Geometry.MAPPOINT:
{
resultFeatureLayer.renderer = new SimpleRenderer(resultMarkerSymbol);
break;
}
case Geometry.POLYLINE:
{
resultFeatureLayer.renderer = new SimpleRenderer(resultLineSymbol);
break;
}
case Geometry.POLYGON:
{
resultFeatureLayer.renderer = new SimpleRenderer(resultFillSymbol);
break;
}
}
return result;
}