I'm a bit confused on how to interact with the frontend in JS.
How do I show a view from the "inlineEditSave" method in "espocrm-5.4.4\client\src\views\fields\base.js" ?
This is the code I tried but at runtime there is no "createView" method available in that class, so it fails.
I think "this" should be the object owning the field, but I can't find what to call createView on.
So I want to show the panel like the "duplicate" modal panel.
How do I show a view from the "inlineEditSave" method in "espocrm-5.4.4\client\src\views\fields\base.js" ?
This is the code I tried but at runtime there is no "createView" method available in that class, so it fails.
var mylist = [...]; // arbitrary data
this.createView('duplicate', 'views/modals/duplicate', { scope: this.entityType, duplicates: my_list }, function (view) { view.render(); }.bind(this));
this.createView('duplicate', 'views/modals/duplicate', { scope: this.entityType, duplicates: my_list }, function (view) { view.render(); }.bind(this));
So I want to show the panel like the "duplicate" modal panel.