Announcement

Collapse
No announcement yet.

Problem getting Data from the model

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

  • 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 ?

  • #2
    Did you find an issue ?

    Comment


    • #3
      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

      Comment


      • #4
        please telecastg
        or yuri
        help us

        Comment


        • #5
          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

          Comment

          Working...
          X