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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T21:32:30+00:00 2026-06-07T21:32:30+00:00

I am having a horrible time understanding Sencha Touch 2’s architecture. I’m finding even

  • 0

I am having a horrible time understanding Sencha Touch 2’s architecture. I’m finding even the most basic things I do in other language and frameworks to be incredibly painful.

Currently, I just want to do a standard Master/Detail view. I load a store into a list view and would like to click on each list item to slide in a detail view. Since my initial list view can contain quite a lot of items, I’m only loading a little bit of the data with this method in my controller:

viewUserCommand: function(list, record) {
      // console.log(record);
      var profileStore = Ext.getStore("Profiles");
      profileStore.setProxy({
        url: 'http://localhost:8000/profile/' + record.data.user_id
      });
      profileStore.load();

      // console.log(profileStore);

      Ext.Viewport.animateActiveItem(Ext.getCmp('profileview'), this.slideLeftTransition);

    }

First, modifying the url property for each tap event seems a bit hacky. Isn’t there a way to specify “this.id” or something along those lines, and then pass that to my store? Or would that require loading the entire DB table into an object?

I can console.log the return from this method and it’s exactly what I want. How do I populate the detail view? I’ve tried utilizing a DataView component, but it doesn’t show any data. The examples on sencha’s website are fairly sparse, and relatively contextless. That means that even copying and pasting their examples are likely to fail. (Any examples I’ve tried using Ext.modelMgr.getModel() have failed.)

I know it’s partly that this framework is new and I’m probably missing a huge gaping hole in my understanding of it, but does anyone have any clue?

  • 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-06-07T21:32:32+00:00Added an answer on June 7, 2026 at 9:32 pm

    Would suggest you check out the docs, there’s an example of loading a single model:

    http://docs.sencha.com/touch/2-0/#!/api/Ext.data.Model

    Ext.define('User', {
        extend: 'Ext.data.Model',
    
        config: {
            fields: ['id', 'name', 'email'],
            proxy: {
                type: 'rest',
                url : '/users'
            }
        }
    });
    
    //get a reference to the User model class
    var User = Ext.ModelManager.getModel('User');
    
    //Uses the configured RestProxy to make a GET request to /users/123
    User.load(123, {
        success: function(user) {
            console.log(user.getId()); //logs 123
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This seems like such a simple task, but I'm having a hard time finding
I've just suffered a horrible time of having my application freezing after a few
I was having a horrible time today trying to get a query to perform
I am having a horrible time trying to get this to work. I have
Having a hard time with labels on a ggplot2 plot. Here's a similar plot
Having issue with slider navigation. Works perfectly fine when there are no other unordered
Having trouble understanding how to filter an images table by tag information in a
I am having a Javascript kerfuffle that goes beyond my knowledge of the language.
Having a horrible night with this, I'm new to C++ and I don't understand
I'm having an issue where my main form isn't updating even though I see

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.