Results 1 to 2 of 2

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

    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
    Vote Rating

    Default [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:
    findField : function(id) {
            var field = this.items.get(id);
            if (!Ext.isObject(field)) {
                var findMatchingField = function(f) {
                    if (f.isFormField) {
                        if (f.dataIndex == id || == id || f.getName() == id || f.itemId == id) {
                            field = f;
                            return false;
                        } else if (f.isComposite && f.rendered) {
                            return f.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
    Vote Rating


    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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts