I create custom field from views.fields.link. I need to add some fields from one entity to another (belongsTo).
For this i redefine method select :
select: function(model){
Dep.protptype.select.call(this, model);
//set some fields here
}
When i select entity via ui it work good.
But when i createView 'quickCreate'
this.createView('quickCreate', viewName' {
scope:scope,
relate:{
model: this.model,
link: foreignLink
}....
Relationship between 2 entity is setup, but method select is not called.
How can i call this method when i used relate in createView ?
For this i redefine method select :
select: function(model){
Dep.protptype.select.call(this, model);
//set some fields here
}
When i select entity via ui it work good.
But when i createView 'quickCreate'
this.createView('quickCreate', viewName' {
scope:scope,
relate:{
model: this.model,
link: foreignLink
}....
Relationship between 2 entity is setup, but method select is not called.
How can i call this method when i used relate in createView ?