Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User zefciu's Avatar
    Join Date
    Jul 2009
    Posts
    13
    Vote Rating
    0
    zefciu is on a distinguished road

      0  

    Default [OPEN-1062] Load Record by itemId doesn't work for composite fields

    [OPEN-1062] Load Record by itemId doesn't work for composite fields


    The loadRecord function can find fields by itemId as well as by id and name. However it's only true for fields that can be found by "BasicForm.get()", so it doesn't work for parts of CompositeField.

    The fix I used is simply changing the findField function like this:
    Code:
    findField : function(id) {
            var field = this.items.get(id);
    
            if (!Ext.isObject(field)) {
                
                var findMatchingField = function(f) {
                    if (f.isFormField) {
                        if (f.dataIndex == id || f.id == id || f.getName() == id || f.itemId == id) {
                            field = f;
                            return false;
                        } else if (f.isComposite && f.rendered) {
                            return f.items.each(findMatchingField);
                        }
                    }
                };
    
                this.items.each(findMatchingField);
            }
            return field || null;
        },
    I don't know if it's a bug or a feature (the docs don't say explicitly if loadRecord should take itemId into account), so excuse mi if it's intended behaviour and move this thread.

  2. #2
    Sencha User arpeggian's Avatar
    Join Date
    Dec 2011
    Posts
    21
    Vote Rating
    1
    arpeggian is on a distinguished road

      0  

    Default


    Yes, how to call loadRecord with itemId

Similar Threads

  1. [FIXED] Composite doesn't work as documented
    By akme247 in forum Ext GWT: Bugs (1.x)
    Replies: 3
    Last Post: 11 Feb 2009, 5:08 PM
  2. How to load record into form with dependent fields?
    By pkmiec in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 3 Feb 2009, 2:41 PM
  3. [2.2] Data Record Mappings doesn't work
    By letssurf in forum Ext 2.x: Bugs
    Replies: 9
    Last Post: 26 Aug 2008, 1:18 AM
  4. [2.2][OPEN] History Example doesn't work correct
    By KimH in forum Ext 2.x: Bugs
    Replies: 4
    Last Post: 7 Aug 2008, 11:52 AM
  5. Form Json Submit doesn't work but the Load work
    By dieyoudie in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 14 Dec 2007, 2:13 PM

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."