AnsweredAssumed Answered

dynamically hiding list actions in sugarCRM7.2.x

Question asked by Francesca Shiekh on Jul 16, 2014
Latest reply on Jul 29, 2014 by Francesca Shiekh
I am trying to modify the list view actions dropdown for Accounts to hide merge for non-admins.
The problem is I don't even know where to start!

I looked at

             

mysugar/jssource/src_files/clients/base/views

and tried creating:
mysugar/custom/modules/Accounts/clients/base/views/list/list.js

               
({
    extendsFrom: 'ListView',
    initialize: function (options) {
        console.log('initialize ModuleListView');
        this._super('initialize', [options]);
    }
});
                 
but it never executes (yes, I repaired/rebuilt), wrong name? Wrong extendsFrom?
I also tried extendsFrom: 'ModuleListView' to no avail

Is there any place that documents what can be extended where, at least for the basic things that we used to do in view.edit.php, view.list.php, view.detail.php?

The hunt for information is getting exhausting!

thanks,
FrancescaS

Outcomes