Hi, I'm trying to create a date field that is not in the entityDefs for a sidepanel, I'm using:
and:
But I'm always getting a 'None' result, what I'm missing?
Thanks
PHP Code:
this.createField('exportDate', null, null, 'Fields.DatetimeShort');
PHP Code:
createField: function (name, type, params, view) {
type = type || this.model.getFieldType(name) || 'base';
this.createView(name, view || this.getFieldManager().getViewName(type), {
model: this.model,
defs: {
name: name,
params: params || {}
},
el: this.options.el + ' .cell-' + name,
mode: 'list'
});
},
Thanks
Comment