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

  • SEARCH
  • Home
  • 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 7612353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:53:20+00:00 2026-05-31T01:53:20+00:00

Saluts!!!! I have my combo, IN SENCHA TOUCH, declared as the following Ext.regModel(‘modelo’, {fields:

  • 0

Saluts!!!!
I have my combo, IN SENCHA TOUCH, declared as the following

Ext.regModel('modelo', {fields: ['id', 'nombre']});

aaStore = new Ext.data.Store({
    model: 'modelo',
    autoLoad: (noLoad !== true),
    autoDestroy : true,
    proxy: {
        type: 'ajax',
    url: url,
    extraParams: extraParams,
    reader: {
        type: 'array'
        }
    }
});
 bSelect = new Ext.form.Select({Ext.apply({
        label: label,
        name: name,
        store: aaStore,
        placeHolder: config.placeHolder || 'Seleccione...',
        valueField: config.valueField || 'id',
        displayField: config.displayField || 'nombre',
        useClearIcon: config.useClearIcon || true
    })

})

I am almost new to Sencha touch, and I need to populate my combo “Ext.form.Select” from data coming from a variable,
I mean, I found a plain of examples loading data from a proxy, dynamically, but that’s not what I need. I need to load data to my combo from a variable that is hardcoded. I mean I’ve built the variable, an array type variable, like this:

var varArray = [[‘1′,’2’],[‘3′,’4’],[‘5′,’6’]]

and I want to charge that data to my combo bSelect ,

I’ve tried the following:

this.bSelect.store.loadData(varArray,false);

but, although the data has been charged, I cannot be displayed, and when I select and element of that combo, it appears like “undefined”

Please, somebody help me out. How can I load data from an array variable into my sencha touch combo?

  • 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-31T01:53:21+00:00Added an answer on May 31, 2026 at 1:53 am
    Ext.regModel('modelo', {
        fields: [
            { name : 'id', type : 'string'},
            {name : 'nombre', type : 'string'}
        ]
    });
    
    aaStore = new Ext.data.Store({
        model: 'modelo',
        data : [{id : '1', nombre : '2'},{id : '3', nombre : '4'}, {id : '5', nombre : '6'}]
    });
    
    bSelect = new Ext.form.Select({
            label: label,
            name: name,
            store: aaStore,
            placeHolder: config.placeHolder || 'Seleccione...',
            valueField: config.valueField || 'id',
            displayField: config.displayField || 'nombre',
            useClearIcon: config.useClearIcon || true
        });
    
    console.log(bSelect);
    

    i think this should work for you

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

Sidebar

Related Questions

At work we have two competing theories for salts. The products I work on
I have been tasked with migrating an existing mature ASP.NET 2.0 web site to
I have a nested class, let's call it class1 and it has class2 inside
At the moment I have a database with md5 passwords stored, a few years
Further to my previous question about salted passwords in PHP/MySQL , I have another
I'm trying to understand how threads works. I have some examples from the school.
I'm using phpfog.com for hosting and github.com for issue tracking, etc. I have two
I am preparing a registration page using JSF/Spring webflow&mvc application. I have added two
We have a current application where user login credentials are stored in a SQL
Hey i would like do have your input on this I use this to

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.