Announcement

Collapse
No announcement yet.

Problem getting Data from the model

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • telecastg
    replied
    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

    Leave a comment:


  • jurnet
    replied
    please telecastg
    or yuri
    help us

    Leave a comment:


  • jurnet
    replied
    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.attributes

    Leave a comment:


  • jurnet
    replied
    Did you find an issue ?

    Leave a comment:


  • mfonsatti
    started a topic Problem getting Data from the model

    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 ?
Working...
X