aktuell sieh es so aus. Wie gesagt, auch wenn ich mit result=callParent() und unshift.result arbeite oder andersweitig. Es ändert am Verhalten nichts.
createEditElements: function() {
var me = this;
if(me.record.data.md_user == 0) {
me.record.data.md_user = null;
}
var result= [
{
xtype: 'combobox',
queryMode: 'local',
name: 'md_user',
dataIndex: 'md_user',
triggerAction:'all',
fieldLabel: me.snippets.edit.user,
emptyText: me.snippets.edit.nouser,
store: me.userStore,
displayField: 'name',
valueField: 'id',
editable:false,
allowBlank:false,
required: true,
id:'md_user'
},
{
xtype: 'combobox',
queryMode: 'local',
name: 'status',
dataIndex: 'status',
fieldLabel: me.snippets.edit.orderState,
store: me.orderStatusStore,
displayField: 'description',
valueField: 'id',
listConfig: {
itemTpl: me.createStatusTemplate(),
renderData: me.orderStatusStore.data.raw
}
},
{
xtype: 'label',
html: ' '
}, {
xtype: 'label',
html: ' '
},
{
xtype: 'datefield',
name: 'clearedDate',
submitFormat: 'd.m.Y',
fieldLabel: me.snippets.edit.clearedDate
},
{
xtype: 'textfield',
name: 'trackingCode',
fieldLabel: me.snippets.edit.trackingCode
},
{
xtype: 'numberfield',
decimalPrecision: 2,
submitLocaleSeparator: false,
name: 'invoiceShipping',
fieldLabel: Ext.String.format(me.snippets.edit.shippingCost, me.record.get('currency'))
},
{
xtype: 'numberfield',
decimalPrecision: 2,
submitLocaleSeparator: false,
name: 'invoiceShippingNet',
fieldLabel: Ext.String.format(me.snippets.edit.shippingCostNet, me.record.get('currency')),
}];
return result;
},