Hi,
I have the following JSON string being parsed for the colModel:
Â
|
1 |
[{"attributes":{"type":"Contact","url":"/services/data/v32.0/sobjects/Contact/003o0000004FNNiAAO"},"Name":"Rose Gonzalez","AccountId":"001o00000051kLSAAY","Account":{"attributes":{"type":"Account","url":"/services/data/v32.0/sobjects/Account/001o00000051kLSAAY"},"Name":"Edge Communications","Id":"001o00000051kLSAAY"},"Id":"003o0000004FNNiAAO"}] |
|
1 |
The colModel goes like this: |
|
1 2 3 4 5 6 7 8 |
colNames:,<br /> colModel:[<br /> {name:'Id',index:'Id'},<br /> {name:'Name',index:'Name'},<br /> {name:'Account',index:'Account'},<br /> {name:'Email',index:'Email'},<br /> {name:'State',index:'State'}<br /> ], |
However, when the grid renders it displays [object Object] on the Account Column. How will I make it such that the Account Column should display the Account Name on the Account Column?
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top