Guest User

Untitled

a guest
Jan 3rd, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Espo.define('Custom:Views.Quote.Record.Panels.Items', 'Views.Record.Panels.Bottom', function (Dep) {
  2.  
  3.     return Dep.extend({
  4.  
  5.         template: 'custom:quote.record.panels.items',
  6.  
  7.         getObjectRecords: function () {
  8.             this.ajaxPostRequest('Quote/action/GetObjects', {
  9.                 objects: this.model.attributes.objektassNames
  10.             }, {
  11.                 async:"false"
  12.             }).then(function (attributes) {
  13.                 this.createView('items', 'custom:views/quote/record/panels/object', {
  14.                     objects: attributes
  15.                 }, function (view) {
  16.                     view.render();
  17.                 }.bind(this));
  18.             });
  19.         },
  20.  
  21.         data: function () {
  22.             return this.getObjectRecords();
  23.         }
  24.     });
  25. });
Advertisement
Add Comment
Please, Sign In to add comment