Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/12/2011, 10:01
lizz17_87
 
Fecha de Ingreso: febrero-2011
Mensajes: 38
Antigüedad: 13 años, 2 meses
Puntos: 1
Como paso un dato de un grid como parametro para php en extjs?

Este es el código necesito poner el valor de un grid como parametro en este caso el valor de Expediente pero no se como colocarlo .. me podrían ayudar (ExtJs)



/* INICIO DE GRID*/
datosIntereses = new Ext.data.Store({
id: 'datosIntereses',
proxy: new Ext.data.HttpProxy({
url: 'frmExpedienteBack.php',
method: 'POST'
}),
baseParams:{
tarea: 'DATOSINTERESES'
//AQUI NECESITO PONER EL PARAMETRO
},
reader: new Ext.data.JsonReader({
root: 'results',
totalProperty: 'total'
},[
{name: 'Expediente', type: 'string', mapping: 'numeroExpediente'},
{name: 'Desde', type: 'string', mapping: 'fechaDesde'},
{name: 'Hasta', type: 'string', mapping: 'fechaHasta'},
{name: 'Monto', type: 'float', mapping: 'monto'},
{name: 'Dias', type: 'int', mapping: 'dias'},
{name: 'InteresOrdinario', type: 'float', mapping: 'interesOrdinario'},
{name: 'InteresLuegoVcto', type: 'float', mapping: 'interesLuegoVcto'},
{name: 'InteresMoratorio', type: 'float', mapping: 'interesMoratorio'}
]),
sortInfo:{field: 'Expediente', direction: "ASC"}
});


columnasIntereses = new Ext.grid.ColumnModel(
[{
header: 'Expediente',
dataIndex: 'Expediente',
width: 80
},{
header: 'Desde',
dataIndex: 'Desde',
width: 100
},{
header: 'Hasta',
dataIndex: 'Hasta',
width: 100
},{
header: 'Dias',
dataIndex: 'Dias',
width: 50,
},{
header: 'Monto',
dataIndex: 'Monto',
width: 100,
align: 'right'
},{
header: 'InteresOrdinario',
dataIndex: 'InteresOrdinario',
width: 130,
align: 'right'
},
{
header: 'InteresLuegoVcto',
dataIndex: 'InteresLuegoVcto',
width: 130,
align: 'right'
},
{
header: 'InteresMoratorio',
dataIndex: 'InteresMoratorio',
width: 130,
align: 'right'
}]
);

datosIntereses.load({params: {start: 0, limit: 10}});

var xPagingBarInt = new Ext.PagingToolbar({
pageSize: 10,
store: datosIntereses,
displayInfo: true,
displayMsg: 'Mostrando registros: {0} - {1} de {2}',
emptyMsg: "No existen registros para mostrar",
});


gridIntereses = new Ext.grid.GridPanel({
//title: 'Intereses',
id: 'gridIntereses',
store: datosIntereses,
cm: columnasIntereses,
width:870,
height:270,
bbar: xPagingBarInt,
enableHdMenu: false,
enableColumnMove:false,
enableColumnResize: false,
tbar:[{
text: 'Cerrar Ventana',
icon: 'images/drop-yes.gif',
tooltip:'Click aca para cerrar esta ventana',
cls: 'x-btn-text-icon',
handler: function() {
ventanaEstado.hide();
}
}],
});
/* FIN DE GRID *