mercredi 4 février 2015

get_item test if null in Javascript model

I've a lookup additional column and alerting its value in Javascript as:



var oPicture = oListItem.get_item("Image_x003A_People").get_lookupValue()


If I dont add any data in the column it errors, how can this be tested to prevent the error.


Thanks


Aucun commentaire:

Enregistrer un commentaire