Announcement

Collapse
No announcement yet.

How is the frontend implementation organized?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How is the frontend implementation organized?

    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.

    var mylist = [...]; // arbitrary data
    this.createView('duplicate', 'views/modals/duplicate', { scope: this.entityType, duplicates: my_list }, function (view) { view.render(); }.bind(this));
    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.
    Last edited by tothewine; 10-17-2018, 03:23 PM.
Working...
X