JOIN
Get Time
forums   
Search | Watch Thread  |  My Post History  |  My Watches  |  User Settings
View: Flat (newest first)  | Threaded  | Tree
Previous Thread  |  Next Thread
Unable to fetch object value | Reply
I am facing strange problem . I have set account data but when I try to retrieve values from account like : {!v.Account.Id}
I am getting undefined is not a function error.
Can anybody help on this.


----------------------------------
In component
<aura:attribute name="Account" type="Account" />
{!v.Account.Id}
----------------------------------
in component helper
var acc = a.getReturnValue();
component.set("v.Account",acc);
console.log(acc);

-------------------------------
in console
Object {Name: "Fry And Sons50", Id: "00190000016sMyFAAU", sobjectType: "Account"} VM1737 app.js:4064
Uncaught TypeError: undefined is not a function
RSS