Announcement

Collapse
No announcement yet.

Customizing client/src/views/record/base.js in upgrade-safe way ?

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

  • Customizing client/src/views/record/base.js in upgrade-safe way ?

    What metadata do I edit to tell espo to use my version of client/src/views/record/base.js that i will put in client/custom/src/views/record/base.js ?
    tanya pls advise!

  • #2
    Not possible. You need to define your custom view for all entity types where you need to have custom code.

    Comment


    • #3
      So I can make a customized version of record/base.js, but then how do apply it to the Call entity?

      Let me add some context: I added some code to the xhr success handler of the model.save instruction in the save method to read an header that I set in a php beforeSave or afterSave hook.

      Based on the value of the header it can show an information box (a confirmation dialog without the cancel button). My concern is that I wouldn't be able to get that header if I do a subclass of downstream views.

      Comment

      Working...
      X