Problem getting Data from the model
Collapse
X
-
You can check this script to learn how Espo creates the detail display and retrieves the relevant data https://github.com/espocrm/espocrm/b...cord/detail.js -
To explain more :
in /www/client/custom/src/views/contact/record/detail.js
On the front when I get the page with F5 i've got in my console everything BUT when i change page and comeback again i've got an undefined
Any idea to fetch, set , or populate ?
Another think :
In console in chrome i've got all attributes for both test in : this.model.attributes4 PhotosLeave a comment:
-
Problem getting Data from the model
Hi ,
in a custom view of the Account entity i wrote in the afterRender --> console.log( this.model.get('myCustomField') );
If i clear local cache and load the account detail i see correctly the console log .
But if i change entity and then return to Account entity on detail the console log give me UNDEFINED ...
Where espo populate model.attributes ?Tags: None
Leave a comment: