vfabry

replace Null function

Discussion created by vfabry on Dec 5, 2011
Latest reply on Dec 5, 2011 by khutchins-esristaff
Hi,
I'm using an InfoTemplate to display some data in a Popup :

  
 var template = new esri.InfoTemplate();
    template.setTitle("${NOM}");
    template.setContent("<b>Adresse</b>: ${ADR_POST} - ${COMMUNE} <br/> <b>Permanence</b> : ${JOURS_PERM} - ${HEURE} <br/> <b>Services</b> : ${SERVICE:ReplaceNull} - ${SERVICE2}");
    feature.setInfoTemplate(template);


Yet if the field SERVICE is empty, null is written in the popup. How can I replace null value by something else (for instance just a "") ?

Thanks,
Vincent

Attachments

Outcomes