Hey if you display the Popup with features try popup.getSelectedFeature()
. You'll get a feature object back. If you want all features wich are set to the popup look at the dom ;).... in my case popup.features
(is an array)if you use a template u can use:var template = new esri.InfoTemplate("","${Status:compare}");
in this case Status is a returned var and compare is the function.
function compare(value, key, data)
{
var content = "The Status of XYZ is" + data.Status;
registry.byId("leftPane").set("content", content); //show in left Pane
return content; //show in Popup
}
btw:i createt a simple popup with
popup = new esri.dijit.Popup({
markerSymbol:popupmarker,
fillSymbol: new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([255,0,0]), 2), new dojo.Color([255,255,0,0.25]))
}, dojo.create("div"));
Hope it helps 😉