View Full Version : ComboBox with Json Store
7 May 2010, 3:52 PM
has anyone got it working?
Store is properly loading but nothing can be selected in the combobox.
Here is simple example. What is wrong?
Json is provided by the following srchas.php
"srchas" : [
"type" : "Phrase",
"value" : "1"
"type" : "Phrase Feldanfang",
"value" : "2"
"type" : "Wort AND",
"value" : "3"
"type" : "Wort OR",
"value" : "4"
Thanks and Regarda
7 May 2010, 4:11 PM
the combostore.xds is obsolete.
This is the current:
8 May 2010, 8:09 PM
I'm assuming you're viewing this in the Preview. The Preview has some issues with Stores at the moment. This is an open issue we are working on. If you export your project and view in your own browser from your local web server...and given your "url" is setup properly...you will see that your configuration is absolutely correct and loads perfectly. The only other option you may want to change (depending on the behavior you want in the end) is to make the mode "local" instead of "remote" (the default).
8 May 2010, 11:23 PM
Thank you a lot. I should have had a look at this in a browser before complaining. I was actually not aware of these preview issues.
12 May 2010, 7:38 AM
I am having the same problem and I am using a browser. I can see in firebug that my data store is loading. One thing that confuses me is that in the ui file in the combo definition, the store name has quotes around it. Any suggestions on why the combo is empty?
12 May 2010, 9:57 AM
When you specify a storeId in your Store, it will register the Store with the StoreMgr.
You can then use a string in any store configuration to auto look it up from the StoreMgr.
Take a look at Ext.StoreMgr.lookup('DBMethod').getRange() in your console.
Are your records there?
12 May 2010, 1:54 PM
Thanks for replying to my post! Yes, using the command you suggested I can see that the data appears to exist in the datastore at the point where my app's initComponent function is called.
Powered by vBulletin® Version 4.1.5 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.