22 Nov 2010 9:24 AM #1
[FIXED-595] Request to server when accessing parent record which is already loaded
Sencha Touch version tested:
Platform tested against:
- iOS 3.2.2
- Chrome 5.0.375.125 on Linux
Parent record is being requested from the server which is already on the client, when accessing a belongsTo association from a child record.
This generates unnecessary requests to the server being that the instance is already loaded on the browser.
The parent instance should be passed down to its children when accessed via the hasMany getter.
See this URL : http://www.carvajalonline.com/tmp/se...one/index.html
22 Nov 2010 11:58 AM #2
22 Nov 2010 8:36 PM #3
I've added a patch to populate the other end of the association also when loading like this. Using my patch your example code works as expected. This will make it into the next release.
By crp_spaeth in forum Sencha Touch 1.x: BugsReplies: 2Last Post: 29 Jun 2010, 2:46 PM
By Maarten76 in forum Ext 3.x: Help & DiscussionReplies: 6Last Post: 25 Mar 2010, 9:41 AM
By mau in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 10 Feb 2010, 1:39 AM
By Rammynampati in forum Ext 3.x: Help & DiscussionReplies: 12Last Post: 11 Aug 2009, 4:24 AM