yanasdf789

how  to  get  the feature  by  the infowindow

Discussion created by yanasdf789 on Oct 22, 2012
Latest reply on Oct 23, 2012 by yanasdf789
i  get  resultFeatures   by  querytask   ,the  the feature   set  InfoTemplate 
[HTML]

       for (var i=0, il=resultFeatures.length; i<il; i++) {
            var graphic = resultFeatures[i];
            graphic.setSymbol(symbol);
            graphic.setInfoTemplate(infoTemplate);
            map.graphics.add(graphic);
          }



var infoTempContent = "POP2007 = ${POP2007}<br/>POP2000 = ${POP2000}<br/>MALES = ${MALES}<br/>FEMALES = ${FEMALES}"
            + "<br/><A href='#' onclick='getfeature()'>Remove Selected Features</A>";
             var infoTemplate = new esri.InfoTemplate("Block: ${FIPS}", infoTempContent);

[/HTML]



how to    get the feature   by  the  click  function  of  "'getfeature()"  on the  infoTemplate?
i  want  to  get  the feature  point colletions   by  the  click  function  int  on  the infotemlate.

Outcomes