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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:11:49+00:00 2026-06-13T14:11:49+00:00

I am trying to get a has Many association working using a localstorage. I

  • 0

I am trying to get a “has Many” association working using a localstorage. I set up two models : User and Products. My user has many Products. I want to:

Load my user via AJAX from a server after the user is authorized. The Products are already stored in the localstorage (e.g. {“id”:”ext-record-1″,”user_id”:1,”name”:”product1″}).

// The id and name are loaded via ajax
var user = Ext.create('User', {id: 1, name: 'Ed'});
var userProducts = user.products();
userProducts.load();

The problem is: All the instances from the store / proxy are loaded if i call the association. According to the docs there should only be the instances with “user_id” : 1

The filter is set. It only happens if i load the products from the localstorage, if i create them in place there is no problem. The saving to a localstore breaks the association.

And i set up an example without a localstorage here:
http://www.senchafiddle.com/#J9VX6

And with the localstorage: http://www.senchafiddle.com/#J9VX6#hBDkq

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

I really appreciate your help

  • 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-13T14:11:50+00:00Added an answer on June 13, 2026 at 2:11 pm

    It seems as this is a known bug, i got the link on my question in the sencha touch forum:

    http://www.sencha.com/forum/showthread.php?173327-WebStorage-proxy-can-t-deal-with-associated-data

    I think this will not be solved until the next version of Sencha Touch

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

Sidebar

Related Questions

I'm trying to get MSBuild working on a project that has just been moved
I am trying to get values from a data set. My function has to
I'm having problems adding to a Has Many Through association using user_ids . My
I'm trying to get the backbone-relational plugin working with an association between tasks and
I have an association as so: User has many Uploads Uploads belongs to User
I am relatively new to rails. I am trying to set a one-to-many association
I'm trying to get a value from an HTML page that has the name
I'm trying to get it to verify that it has the same item in
I'm trying to get a target to build that has quite a long list
I'm trying to get some data from a table, where the tag has no

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.