View Full Version : Data Populate problem in Hibernate EXTJS 4
mfinosanjeev
3 Feb 2012, 11:45 PM
Hi,
My existing EXTJS 3 code is and working fine:
{
xtype: 'remotedropdown',
fieldLabel:'Prefix Code',
RPCObject : CmFinoFIX.message.JSBrand,
displayField: CmFinoFIX.message.JSBrand.Entries.PrefixCode._name,
name: CmFinoFIX.message.JSBrand.PrefixCodeSearch._name,
anchor:'90%',
listeners : {
focus : function(){
this.reload();
},
specialkey: this.enterKeyHandler.bind(this)
}
}
I am using following code for EXT JS 4
Ext.define('mFino.page.subsmodel', {
extend: 'Ext.data.Model',
fields: [
'mdn',
'firstname',
'lastname'
]
});
Getting error message in console
var store = Ext.define('mFino.page.subsstore', {
extend: 'Ext.data.Store',
model: 'page-subsmodel',
autoLoad: true,
proxy: {
type: 'ajax',
url: 'dispatcher',
reader: {
type: 'json',
root: CmFinoFIX.message.JSSubscriberMDN.Entries,
successProperty: 'success'
}
}
});
May you tell us which error message or shall we guess?
mfinosanjeev
5 Feb 2012, 8:56 PM
I am getting list of errors. With Static grid no such error.
1. function () {if (!this.tpl) {this.tpl = new Ext.XTemplate("<tpl for=\".\"><div class=\"x-combo-list-item\">{", this.displayField, ":this.blank}</div></tpl>", {blank: function (value) {return value === "" ? " " : value;}});}}.createSequence is not a function
chrome://firebug/content/blank.gif
}).createSequence(Ext.form.ComboBox.prototype.initList)
2.The following classes are not declared even if their files have been loaded: 'mFino.page.SubscriberSearchForm', 'mFino.page.SubscriberSearchForm', 'mFino.page.SubscriberSearchForm'. Please check the source code of their corresponding files for possible typos: 'js/page/SubscriberSearchForm.js', 'js/page/SubscriberSearchForm.js', 'js/page/SubscriberSearchForm.js'
con[level](message);
3.
msg
"The following classes a...ubscriberSearchForm.js'"
sourceClass
"Ext.Loader"
sourceMethod
"onFileLoaded"
4. log(message="The following classes a...ubscriberSearchForm.js'")ext-all-dev.js (line 9448)raise(err=Object { sourceClass="Ext.Loader", sourceMethod="onFileLoaded", msg="The following classes a...ubscriberSearchForm.js'"})ext-all-dev.js (line 8322)
onFileLoaded(className="mFino.page.SubscriberList", filePath="js/page/SubscriberList.js")ext-all-dev.js (line 7809)
(?)()ext-all-dev.js (line 2420)
onLoadFn()
5. uncaught exception: The following classes are not declared even if their files have been loaded: 'mFino.page.SubscriberSearchForm', 'mFino.page.SubscriberSearchForm', 'mFino.page.SubscriberSearchForm'. Please check the source code of their corresponding files for possible typos: 'js/page/SubscriberSearchForm.js', 'js/page/SubscriberSearchForm.js', 'js/page/SubscriberSearchForm.js'
mfinosanjeev
5 Feb 2012, 9:09 PM
1st Error is resolved from 2nd onwards are getting
mfinosanjeev
7 Feb 2012, 10:21 PM
Hi,
Can Any body tell why the error has come:
Cannot create an instance of unrecognized alias: widget.remotedropdown
con[level](message);
It seems to me, that you didn't add your JS File with the
remotedropdown xtype.
You have to declare this class with Ext.define in a JS File where do you add a config attribute: alias: widget.remotedropdown. To register this with a xtype.
Besides... where is the hibernate problem? ;)
mfinosanjeev
8 Feb 2012, 3:14 AM
Thanks Born,
Hibernate problem is there but I was commented and tried with remotecombo.
Sanjeev
Powered by vBulletin® Version 4.2.3 Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.