Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member
    Join Date
    Jul 2008
    Location
    Miami, FL
    Posts
    56
    Vote Rating
    1
    omarc is on a distinguished road

      0  

    Default [FIXED-595] Request to server when accessing parent record which is already loaded

    [FIXED-595] Request to server when accessing parent record which is already loaded


    Sencha Touch version tested:
    • 1.0.0

    Platform tested against:
    • iOS 3.2.2
    • Chrome 5.0.375.125 on Linux

    Description:
    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

  2. #2
    Sencha - GXT Dev Team BrendanC's Avatar
    Join Date
    Aug 2010
    Posts
    534
    Vote Rating
    3
    BrendanC is on a distinguished road

      0  

    Default


    Thanks for the bug report.

  3. #3
    Sencha - Community Support Team edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    7
    edspencer is a jewel in the rough edspencer is a jewel in the rough edspencer is a jewel in the rough

      0  

    Default


    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.
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

Similar Threads

  1. Replies: 2
    Last Post: 29 Jun 2010, 2:46 PM
  2. Accessing parent element
    By Maarten76 in forum Ext 3.x: Help & Discussion
    Replies: 6
    Last Post: 25 Mar 2010, 9:41 AM
  3. Accessing parent item of a submenu?
    By mau in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 10 Feb 2010, 1:39 AM
  4. Accessing a parent method from a child window
    By Rammynampati in forum Ext 3.x: Help & Discussion
    Replies: 12
    Last Post: 11 Aug 2009, 4:24 AM

Thread Participants: 2