Code:
var F1 = {
xtype: 'form',
id: 'form_add_address_diverse',
bodyStyle: 'padding:15px;background:transparent',
border: false,
url: '/func/ext/save_new_diverse.php',
labelWidth: 60,
items:[
{xtype: 'textfield',
anchor: '100%',
labelStyle: 'color:#999999;padding:0',
fieldLabel: 'Firma',
name: 'NAME',
allowBlank: false
},
{xtype: 'textarea',
labelStyle: 'color:#999999;padding:0,margin:0',
fieldLabel: 'Adresse',
anchor: '100%',
name: 'ADDRESS',
allowBlank: true
}, {
xtype: 'checkboxcombo',
width: 150,
mode: 'remote',
store: new Ext.data.Store(
{
proxy: new Ext.data.HttpProxy(
{
url: 'func/ext/getCombos_openitems.php?TYPE=CUSTOMER&ADDRESSID=70126',
autoLoad: true,
method: 'GET'
}
),
reader: new Ext.data.JsonReader(
{
root: 'data',
totalProperty: 'total'
},
[
{
name: 'V_FIELD'
},
{
name: 'D_FIELD'
}
]
)
}
),
valueField: 'V_FIELD',
displayField: 'D_FIELD',
allowBlank: true
}
],
buttonAlign: 'center',
buttons:[
{
text: 'Speichern',
handler: function() {
var f = Ext.getCmp('form_add_address_diverse');
f.getForm().submit();
win.close();
}
},
{
text: 'Abbrechen',
handler: function() {
win.close();
}
}
]
}
win = new Ext.Window(
{
title: 'Combotest',
layout: 'form',
id: 'win',
width: 340,
height: 260,
closeAction: 'close',
items:[F1]
}
);
win.show();
}
);
What am I missing??