Feb 17, 2012, 6:54 PM
Sugestion about Ext.net.Store and ur Reader
Hi all,
I have an sugestion about Ext.net.Store.
I create an lib to create dynamically Stores from reflection types, but i have a problem: when js try access an null object from another null object ('undefined') occours an error. For example:
I have an sugestion about Ext.net.Store.
I create an lib to create dynamically Stores from reflection types, but i have a problem: when js try access an null object from another null object ('undefined') occours an error. For example:
function anonymous(obj) {
return obj.professionalsData.Address.Classe1.Property
}
An try...catch and return null/default value defined in recordfield is interesting. Becouse the properties is not necessarily instantiated.function anonymous(obj) {
var sugestion = null;
try{
sugestion = obj.professionalsData.Address.Classe1.Property;
}
catch{
return sugestion;
}
}
Thanks.