Custom Actions In massActionList
Collapse
X
-
Here's a link that details how uploading multiple files can be accomplished, I am not sure how to adapt it to a custom view function function but with a little tinkering I am sure it would be possible. If you manage to do it please shareDo you think it possible to Mass add documents? Upload one by one and waiting for it take too long at the moment.
https://stackoverflow.com/questions/...multiple-files -
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:
3. Add the following code to the `list.js` file: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'); }, }); });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:
But this doesn't seem to make any difference.Code:massActionList: ['doSomething'], checkAllResultMassActionList: ['doSomething'], massActionDoSomething: function () { console.assert(); },Last edited by blueprint; 01-14-2020, 04:33 PM.Tags: None

Leave a comment: