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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tothewine
    Active Community Member
    • Jan 2018
    • 373

    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!
  • yuri
    Member
    • Mar 2014
    • 8485

    #2
    Not possible. You need to define your custom view for all entity types where you need to have custom code.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • tothewine
      Active Community Member
      • Jan 2018
      • 373

      #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...