Im brand new to MVC and this is my first app. Im getting
The following classes are not declared even if their files have been loaded: 'iPal.store.prodStore', 'iPal.store.custStore'. Please check the source code of their corresponding files for possible typos: '/iPal/store/prodStore.js', '...<omitted>...js
I dont know what it means by "declared". I have two store(s) and both are getting the error. This config is AS/400 centric so it may not resemble a windows or linux config. I was the only way I could get it to find the files. I built my stores from the SenchTouch in Action Examples. Any clues what Im doing wrong.
The following classes are not declared even if their files have been loaded: 'iPal.store.prodStore', 'iPal.store.custStore'. Please check the source code of their corresponding files for possible typos: '/iPal/store/prodStore.js', '...<omitted>...js
I dont know what it means by "declared". I have two store(s) and both are getting the error. This config is AS/400 centric so it may not resemble a windows or linux config. I was the only way I could get it to find the files. I built my stores from the SenchTouch in Action Examples. Any clues what Im doing wrong.
Code:
Ext.Loader.setConfig({
enabled : true
});
Ext.Loader.setPath({
iPal : "/iPal",
});
Ext.application({
name: "iPal",
appFolder: "/iPal",
models: ["iPal.model.prodModel", "iPal.model.custModel"],
stores: ["iPal.store.prodStore", "iPal.store.custStore"],
controllers: ["iPal.controller.Main"],
views : ["iPal.view.login", "iPal.view.prodList"] ,
launch: function () {
Ext.create('iPal.view.mainContainer',{
fullscreen: true
});
}
});
Code:
Ext.define('custStore', {
extend : 'Ext.data.Store',
xtype : 'custstore',
requires: ['iPal.model.custModel'],
config : {
autoLoad: false,
model : 'iPal.model.custModel',
storeId : 'custStore',
proxy : {
type: 'ajax',
url : 'ipal01r.pgm',
reader: {
type: 'json',
record: 'customers',
idProperty: 'CMCUST'
}
}
}
});
Code:
Ext.define('prodStore', {
extend : 'Ext.data.Store',
xtype : 'prodstore',
requires : ['iPal.model.prodModel'],
config : {
autoLoad: false,
model : 'iPal.model.prodModel',
storeId : 'prodStore',
proxy : {
type: 'ajax',
url : 'ipal02r.pgm',
reader: {
type: 'xml',
rootProperty: 'ipal02r',
record: 'product',
idProperty: 'PMITNO'
}
},
sorters: [
{
property : 'PMDESC',
direction: 'asc'
}
],
getGroupString : function(record) {
return record.get('PMDESC')[0];
}
}
Aucun commentaire:
Enregistrer un commentaire