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 7682061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:28:51+00:00 2026-05-31T18:28:51+00:00

I have a small example Sencha Touch 2 app at http://www.senchafiddle.com/#FWMDh . It populates

  • 0

I have a small example Sencha Touch 2 app at http://www.senchafiddle.com/#FWMDh. It populates a DataView from a store and each of the models renders some text in the view. Lovely. What I would actually like to do is have the DataView work, not from the store, but from one of the models ‘letters’ property – that is, an array. So that the DataView will end up displaying a list of letters from just one of the words.

Any ideas on how to accomplish this? Ta.

  • 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-31T18:28:52+00:00Added an answer on May 31, 2026 at 6:28 pm

    DataView needs to have a Store, so there is no other way but to convert that data in your Model into something a Store can read (an Array of Objects) and then bind that store to the DataView.

    Something like this:

    var letters = record.get('letters'), // get the letters array from the model
        lettersData = [], // we are going to create a new array of objects
        ln = letters.length,
        store, i;
    
    for (i = 0; i < ln; i++) {
        // push each of the letters into the lettersData array, but as objects
        lettersData.push({
            letter: letters[i]
        });
    }
    
    store = Ext.create('Ext.data.Store', {
        fields: ['letter'], // set the only field as a letter. This will automatically create a model for this store
        data: lettersData // set the store data as the lettersData array
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a small question: For example I'm using System.IO.File.Copy() method from .NET Framework.
Have small web page at www.peterbio.com/mom/test.htm Someone wrote the code with mouse over and
In Sencha Touch, I often need to have an Ext.DataView panel that contains a
I have built a small breadcrumbs example cloning some functionality from Google's design. I
I have small test app: Socket socket = new Socket(jeck.ru, 80); PrintWriter pw =
I have small web app that generate PDF files as a report. I'm trying
I have small class called 'Call' and I need to store these calls into
I have reduced down to a small example some code that I have, which
Does Clojure have named arguments? If so, can you please provide a small example
I have a big dataframe, but small example would be like this: mydf <-

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.