It is only shown as a panel after the entity is created for me...
How to show scheduler in meeting creation ?
Collapse
X
-
Basically this Maximus (see screenshot)
I think this is what tothewine meant. At least I feel like it is the problem.
I had a look at Layout Manager and it seem like Scheduler is available in Bottom Panels section but no where else (e.g. we want it in Detail (Small)); perhaps if you can figure out to unlock the restriction then we can have it shown in Details as well. But considering it is a Bottom Panels I don't think it be an easy task.1 PhotoLast edited by esforim; 10-06-2020, 05:35 AM.Comment
-
Hi esforim,
Thanks for the input. I don't think that adding the 'Scheduler' panel to the bottom of the 'Edit small' view is possible w/o hard codding. I suggest you done it with the easiest way by creating the 'Scheduler' panel for the 'Edit small' view:
1. Create the file /client/custom/src/views/meeting/record/panels/scheduler.js with this code:
Code:define('custom:views/meeting/record/panels/scheduler', 'views/record/panels/side', function (Dep) { return Dep.extend({ templateContent: '<div class="scheduler-container no-margin">{{{scheduler}}}</div>', setup: function () { Dep.prototype.setup.call(this); var viewName = this.getMetadata().get(['clientDefs', this.scope, 'schedulerView']) || 'crm:views/scheduler/scheduler'; this.createView('scheduler', viewName, { el: this.getSelector() + ' .scheduler-container', notToRender: true, model: this.model, }); this.once('after:render', function () { if (this.disabled) return; this.getView('scheduler').render(); this.getView('scheduler').notToRender = false; }, this); if (this.defs.disabled) { this.once('show', function () { this.getView('scheduler').render(); this.getView('scheduler').notToRender = false; }, this); } }, actionRefresh: function () { this.getView('scheduler').reRender(); }, }); });
Code:{ "sidePanels":{ "editSmall":[ "__APPEND__", { "name":"scheduler", "label":"Scheduler", "view":"custom:views/meeting/record/panels/scheduler", "sticked": true, "isForm": true } ] } }
4. Refresh a web page.
Create a meeting via an Activity panel (see screenshot).Comment
Comment