Gracias por la ayuda que me puedan dar para seguir con mi aprendizaje...
... Al dar click en el botón que he dispuesto en el gridPanel
Código:
... Llamada al archivo php y paso de parámetrosme.on('ButtonClicked',
function (grid) {
var sm = grid.getSelectionModel();
var selected = sm.getSelection();
var numRecords = sm.getCount(); //Devuelve el número de filas seleccionadas
//todas son enlaces a tabulados en formato
//html)
Ext.each(selected, function(item) {
var url = item.get('Archivo');
rows.push(url); // agrega enlaces a la matriz
}, this);
Código:
Los componentes que tengo en mi aplicación son: Ext.Ajax.request({
url: 'recibeS.php', // mi url
method: 'POST',
params: {
"group[]": rows, // incluye la matriz en los parámetros
},
success: function(response, opts) {
console.log("ok");
var win =Ext.getCmp('SE QUE AQUI DEBO HACER REFERENCIA A UN
COMPONENTE... PERO NO SE A CUÁL');
win.myWindow.show();
},
failure: function() {
console.log('error');
}
});
a)
Código:
b) un data model (Ext.define('MyGrid', ...)Ext.define('UrlGrid',
{ extend: 'Ext.grid.Panel',
itemId: 'urlgrid',
alias: 'widget.UrlGrid',
layout:'fit',
c) un Store (var store = Ext.create('Ext.data.JsonStore',...)
d) Una instancia de mi aplicación
Código:
e) Un panelExt.application({
name: 'Fiddle',
Código:
Ext.create('Ext.panel.Panel',
{ renderTo: Ext.getBody(),
width: 500,
heigth: 500,
title: 'Url Demo',
items: [{
xtype: 'UrlGrid'
}]
});


