Code:
<script type="text/javascript">
strDestinatario = Ext.apply(Ext.data.Store.prototype, {
constructor: Ext.Function.createInterceptor(Ext.data.Store.prototype.constructor, function(cfg) {
cfg = cfg || {};
strDestinatario.superclass.constructor.call(this, Ext.apply({
storeId: 'strDestinatario'
}, cfg));
})
});
//new strDestinatario();
strPrioridad = Ext.apply(Ext.data.Store.prototype, {
constructor: Ext.Function.createInterceptor(Ext.data.Store.prototype.constructor, function(cfg) {
cfg = cfg || {};
strPrioridad.superclass.constructor.call(this, Ext.apply({
storeId: 'strPrioridad'
}, cfg));
})
});
//new strPrioridad();
strTipoRequerimiento = Ext.apply(Ext.data.Store.prototype, {
constructor: Ext.Function.createInterceptor(Ext.data.Store.prototype.constructor, function(cfg) {
cfg = cfg || {};
strTipoRequerimiento.superclass.constructor.call(this, Ext.apply({
storeId: 'strTipoRequerimiento'
}, cfg));
})
});
//new strTipoRequerimiento();
MyPanelUi = Ext.extend(Ext.Panel, {
width: 784,
height: 512,
layout: 'absolute',
initComponent: function() {
this.items = [
{
xtype: 'panel',
x: 10,
y: 40,
layout: 'form',
labelWidth: 150,
autoWidth: true,
border: false,
items: [
{
xtype: 'combo',
fieldLabel: 'Tipo Requerimiento',
autoWidth: true,
store: 'strTipoRequerimiento'
}
]
},
{
xtype: 'panel',
x: 10,
y: 70,
layout: 'form',
labelWidth: 150,
autoWidth: true,
border: false,
items: [
{
xtype: 'combo',
fieldLabel: 'Prioridad',
autoWidth: true,
store: 'strPrioridad'
}
]
},
{
xtype: 'panel',
x: 10,
y: 100,
layout: 'form',
labelWidth: 150,
autoWidth: true,
border: false,
items: [
{
xtype: 'combo',
fieldLabel: 'Enviar a',
autoWidth: true,
store: 'strDestinatario'
}
]
},
{
xtype: 'panel',
x: 10,
y: 130,
width: 380,
layout: 'form',
labelWidth: 150,
border: false,
items: [
{
xtype: 'textfield',
fieldLabel: 'Titulo',
anchor: '100%'
}
]
},
{
xtype: 'panel',
x: 10,
y: 160,
width: 460,
layout: 'form',
labelWidth: 150,
border: false,
items: [
{
xtype: 'textarea',
width: 300,
fieldLabel: 'Descripcion',
height: 40
}
]
},
{
xtype: 'panel',
x: 10,
y: 207,
width: 460,
layout: 'form',
labelWidth: 150,
border: false,
items: [
{
xtype: 'textarea',
width: 300,
fieldLabel: 'Objetivo',
height: 40
}
]
},
{
xtype: 'panel',
x: 10,
y: 254,
width: 460,
layout: 'form',
labelWidth: 150,
border: false,
items: [
{
xtype: 'textarea',
width: 300,
fieldLabel: 'Observaciones',
height: 40
}
]
},
{
xtype: 'toolbar',
items: [
{
xtype: 'button',
text: 'Registrar'
},
{
xtype: 'tbseparator'
},
{
xtype: 'button',
text: 'Adjuntar Archivo'
}
]
}
];
MyPanelUi.superclass.initComponent.call(this);
}
});
MyPanel = Ext.extend(MyPanelUi, {
initComponent: function() {
MyPanel.superclass.initComponent.call(this);
}
});
Ext.reg('mypanel', 'MyPanel');
</script>
Ahora cuando corro la aplicacion en google chrome, me aparece que el error se centra en estas lineas: