PDA

View Full Version : Direct Submit Window - Form



wwrrss
17 Jul 2012, 10:52 AM
Hi, i have this Window


Ext.define('AP.view.ciudad.Editar',{
extend:'Ext.window.Window',
alias:'widget.editarciudad',
title:'Editar Ciudad',
layout:'fit',
autoShow:true,
initComponent:function(){
this.items=[
{
xtype:'form',
url:'insertarCliente',
items:[
{
xtype:'textfield',
name:'ciudad.ciuCodigo',
fieldLabel:'Codigo'
},

{
xtype:'textfield',
name:'ciudad.ciuDescripcion',
fieldLabel:'Descripcion'

}

]
}

];
this.buttons=[
{
text:'Guardar',
handler:function(){

}

},
{
text:'Cancel',
scope:this,
handler:this.close
}

];


this.callParent(arguments);

}

How can I Do a direct submit with this form¿?

mitchellsimoens
25 Jul 2012, 10:14 AM
Have you looked at the example for the direct form?