-
1 Sep 2010 5:37 AM #1
combobox - loading
combobox - loading
I'm struggling with what is probably a simple problem, but I just can't seem to get past it. The issue is that I have a form that contains a combobox that is loaded from a remote store, the initial display is working, the problem I am having is reloading the data back into the form.
My combobox is defined as
The store returns data defined by the recordPHP Code:{
xtype : 'combo',
fieldLabel : 'Project Sponsor',
anchor : '-10',
loadingText : 'Querying...',
minChars : 1,
forceSelection : true,
triggerAction : 'all',
displayField : 'user',
valueField : 'id',
hiddenName : 'sponsor_id',
store : this.dao.getUsersByGroup('SPONS'),
mode : 'remote'
}
So, this all saves properly and looks good. However, for the life of me I can not get the data to load from a record. It always displays the id in the combobox instead of the text value. The record that comes back from the server when a record is loaded is defined as;PHP Code:[
{name: 'id'},
{name: 'user'},
{name: 'group'}
]
The value I want to be updated in the form's combobox is the sponsor_id from this record.PHP Code:[
{name: 'id'},
{name: 'sponsor_id'},
{name: 'manager_id'},
{name: 'subscriber_id'},
]
-
1 Sep 2010 6:22 AM #2
The issue is that the associated combobox has not yet been loaded, so no values exists in the drop-down for the match.
-
1 Sep 2010 6:33 AM #3Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 40
-
1 Sep 2010 6:55 AM #4
Thanks Condor, worked perfectly.
Similar Threads
-
Loading ComboBox
By pnl in forum Ext GWT: DiscussionReplies: 8Last Post: 12 Oct 2009, 3:50 AM -
Loading ComboBox
By pnl in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 1 Oct 2009, 7:11 AM -
combobox loading..
By abhilashsastry in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 29 Jan 2009, 12:12 PM -
Combobox Loading
By Selvam packiam in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 8 Sep 2008, 10:50 PM -
loading 2nd combobox depending on the item selected in 1st combobox
By basavarajkoti in forum Ext 2.x: Help & DiscussionReplies: 6Last Post: 7 Jan 2008, 5:20 AM


Reply With Quote