Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5986039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:36:58+00:00 2026-05-22T22:36:58+00:00

Here is my combobox configuration { xtype : ‘combo’, fieldLabel : ‘Select Field’, displayField

  • 0

Here is my combobox configuration

{
    xtype : 'combo',
    fieldLabel : 'Select Field',
    displayField : 'field_name',
    valueField : 'field_id',
    id : 'fields_combo_id',
    store: new Ext.data.JsonStore({
         proxy : new Ext.data.HttpProxy({url:eyefind.config.DATA_RETRIEVAL, method:'GET'}),
         baseParams: { subject: 'fields' },
         root: 'data',
         id: 'field_id', 
         fields: ['field_name'],
         autoload: true
     }),

    labelStyle : 'font-weight:bold; width:100px',
    triggerAction : 'all',
    clearFilterOnReset : false,
    mode : 'local'
 }

I load the store in an external function in this way:

        .....
        var comboFields = Ext.getCmp('fields_combo_id');
        comboFields.store.load(); 
        comboFields.setValue(selectedFieldId);
        .....

And so far selectedFieldId has been set but in the visible part I see a value instead of displayText, the store looks fine and I have the value:displayValue pair properly set there.

Do I miss something or do I have to use some other functionality for this part?

My version of Ext is 3.2.0.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T22:36:59+00:00Added an answer on May 22, 2026 at 10:36 pm

    You set valuefield : 'field_id', but there is no field_id in store’s fields,

    {
        xtype : 'combo',
        fieldLabel : 'Select Field',
        displayField : 'field_name',
        valueField : 'field_id', //This 'field_id' must be in store fields too.
        id : 'fields_combo_id',
        store: new Ext.data.JsonStore({
            proxy : new Ext.data.HttpProxy({url:eyefind.config.DATA_RETRIEVAL, method:'GET'}),
            baseParams: { subject: 'fields' },
            root: 'data',
            id: 'field_id', //This id is just for the store, not the record data.
            fields: ['field_id','field_name'], // here, i add `field_id`
            autoload: true // This should be autoLoad, remember JavaScript is case sensitive.
        }),
    
        labelStyle : 'font-weight:bold; width:100px',
        triggerAction : 'all',
        clearFilterOnReset : false,
        mode : 'local'
    }
    

    And also, why do you set autoLoad : true if you load it again in your external function?

    EDIT

    When I run comboFields.setValue(id);, in which my id is assign to one of the field id, it works, and I see displayfield on my combo (no need to dropdown first). But, if, in your case, your combo item has been highlighted, I guess it’s because of the version. Unfortunately
    I tested it in Ext 3.3.0.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

ok, I must be having a brain freeze here... I have a ComboBox with
Here's my code: <ComboBox Grid.Column=1 Grid.Row=9 ItemsSource={Binding Path=PriorityEntries} SelectedItem={Binding Path=Priority,Mode=TwoWay}/> The comboBox is bound
Here is peace of the XAML code from my page: <ComboBox Grid.Row=2 Grid.Column=1 Name=Player2
I'm currently playing with the richfaces comboBox. You can check is here I would
Am working on smartphone application. Here I have a combobox which loads when the
Subj. I am using Silverlight 4 with VS2010, here is a source code: <ComboBox
Here is the code of jquery ui combobox with remote source. I need to
Here is my current jquery ui combobox. It uses remote datasource. Here is the
I'm using the nifty 'combobox' variant of jQuery UI Autocomplete - see here: http://jqueryui.com/demos/autocomplete/#combobox
i'm trying hard to load comboBox items from an xml file. Here is my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.