Announcement
Collapse
No announcement yet.
Custom Actions In massActionList
Collapse
X
-
Do you think it possible to Mass add documents? Upload one by one and waiting for it take too long at the moment.
- Likes 1
-
Ok, managed to figure this one out so for anyone interested, you need to do the following:
1. Create a custom `client\custom\src\views\<entity>\record\list.js` view
2. Update the relevant `clientDefs.json` file to contain the following:
Code:"recordViews": { "list": "custom:views/<entity>/record/list" },
Code:Espo.define('custom:views/<entity>/record/list', 'views/record/list', function (Dep) { return Dep.extend({ setup: function() { Dep.prototype.setup.call(this); // Set up the mass action list this.massActionList.push('doSomething'); }, massActionDoSomething: function () { console.log('do something here'); }, }); });
- Likes 3
Leave a comment:
-
Custom Actions In massActionList
How can I go about adding custom actions in the `massActionList`?
I've tried to set the `massActionList` variable inside my custom list JS file as follows:
Code:massActionList: ['doSomething'], checkAllResultMassActionList: ['doSomething'], massActionDoSomething: function () { console.assert(); },
Last edited by blueprint; 01-14-2020, 04:33 PM.Tags: None
Leave a comment: