Can someone explain getModelFactory(), getCollectionFactory(), and createView()? And how can I use separately and/or nested? Can I use either function, when user clicks a button, create a window filled with a few buttons that can view whatever I want?
getModelFactory,getCollectionFactor(),createView()??
Collapse
X
-
Tags: None
-
PHP Code:this.getModelFactory().create('Meeting', function (model) { model.id = 'some id'; model.fetch().done(function () { console.log(model.get('status')); }.bind(this)); }, this);
If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks. -
In createview, how can I place a button onto the scope when viewing an entity?
PHP Code:this.createView('Call','clientDefs.Call.modalViews.select',{ scope: 'Call', createButton: false },function(view){ view.render(); self.notify(false); this.listenToOnce(view,'select',function(model){ }) })
Last edited by elbowprogrammer; 02-03-2016, 09:33 PM. Reason: found my answer to previous question, asking a different one that help me meet my deadline.Comment
-
Comment