Hello,
Sorry, because it seems to be a quite stupid problem.
I am trying to print "fullName" and I have this small piece of code:
var c = contactosInteresados[i]; Ti.API.debug( 'Users: ' + JSON.stringify( c ) ); Ti.API.debug( 'id: ' + c.id + ', name: ' + c.fullName + ' name: ' + c['fullName'] ); Ti.API.debug( 'id: ' + c.id + ', name: ' + String(c.fullName) + ' name: ' + String(c['fullName']) );
But traces shows this (fullName shows "undefined" instead of the real value): > Users: {"id:"4,"fullName":"Juan 4", "marcado":"true","interesado":"true"} > id: 4, name: undefined, name: undefined > id: 4, name: undefined, name: undefined
I have also try using c[fullName] without success.
So c.fullName="Juan 4" but when I try to print it: - c.fullName -> undefined
c.['fullName'] -> undefined
String(c.fullName) -> undefined
String(c.['fullName']) -> undefined
c[fullName] -> error "fullName" is not defined
¿What is the problem?,¿how should I do it?
Thank you. J. Pablo.