I have an entity I've initially created from the Entity Manager and I'm now adding functionality to it in the custom folders.
I have routing and a controller working, and I can browse to the routes and have it call my functions in the controller, as well as use simple views. That part is fine.
I want to add some functionality to the Entity's list view, specifically add some more options to the mass actions dropdown, but it will mostly be the same as the default views/record/list so I'm trying to extend it so it can use the default list view functionality for everything else without me needing to write it all again,
I've got it using my extended view - I can put a breakpoint in the setup function and see it using my code. However, after that it's not loading the list of records, I just get 'No Data' displayed, where it's clearly not loading the objects for the list. I'd have thought that if I didn't override the default functionality it would just use that? I'm calling the prototype's setup function inside my own setup function. Is there something else I need to add to get it to use the default functionality in view/record/list?
This is my view:
I have routing and a controller working, and I can browse to the routes and have it call my functions in the controller, as well as use simple views. That part is fine.
I want to add some functionality to the Entity's list view, specifically add some more options to the mass actions dropdown, but it will mostly be the same as the default views/record/list so I'm trying to extend it so it can use the default list view functionality for everything else without me needing to write it all again,
I've got it using my extended view - I can put a breakpoint in the setup function and see it using my code. However, after that it's not loading the list of records, I just get 'No Data' displayed, where it's clearly not loading the objects for the list. I'd have thought that if I didn't override the default functionality it would just use that? I'm calling the prototype's setup function inside my own setup function. Is there something else I need to add to get it to use the default functionality in view/record/list?
This is my view:
Code:
Espo.define('custom:views/mailing-list/list', 'views/record/list', function (Dep) { return Dep.extend({ setup: function () { console.log("In new setup function"); Dep.prototype.setup.call(this); }, massActionList: ['remove', 'merge', 'massUpdate', 'export','addToMailingList'], massActionAddToMailingList: function () { // do some stuff, not important for this example }, }); });
Comment