Hi Folks
I want to remove record-view from all modules in Sugar 7.9
I have tried below link too.
https://community.sugarcrm.com/message/81189?commentID=81189#comment-81189
Hi Folks
I want to remove record-view from all modules in Sugar 7.9
I have tried below link too.
https://community.sugarcrm.com/message/81189?commentID=81189#comment-81189
Try this solution
create record.js file
custom/clients/base/views/record/record.js
({
extendsFrom: "RecordView",
_render: function() {
this._super('_render');
var defaultLayout = this.closestComponent('sidebar');
if (defaultLayout && defaultLayout.isSidePaneVisible() ) {
defaultLayout.trigger('sidebar:toggle');
}
}
})
Try this solution
create record.js file
custom/clients/base/views/record/record.js
({
extendsFrom: "RecordView",
_render: function() {
this._super('_render');
var defaultLayout = this.closestComponent('sidebar');
if (defaultLayout && defaultLayout.isSidePaneVisible() ) {
defaultLayout.trigger('sidebar:toggle');
}
}
})