Results 1 to 3 of 3

Thread: Too much recursion on form submit

  1. #1
    Sencha User
    Join Date
    May 2011
    Posts
    14

    Default Too much recursion on form submit

    Hi,

    I have a problem when I try to send my form in a direct method.
    The following error is :

    "too much recursion
    [Stopper sur une erreur] v === null ? "null" : doEncode(v));"
    ext-all-debug.js (ligne 4266)

    Do you have an idea to submit the form without this error ?
    thanks

  2. #2
    Sencha User
    Join Date
    May 2011
    Posts
    14

    Default

    Here is my code :

    Code:
    var formComponent = MyDesktop.getMainForm();
    
                        wgt = new Ext.form.AComboBox({
                            id : getCompId(scrNum,colItems[i][Enum_WidgetAttribute.ID]),
                            gridComponent: gridComponent,
                            displayField:'key',
                            valueField:'value',
                            value:'',
                            cls: columnCls,
                            notify:colItems[i][Enum_WidgetAttribute.NOTIFY]|| '',
                            tpl: '<tpl for="."><div class=x-combo-list-item id="{key}" name='+colItems[i][Enum_WidgetAttribute.FIELDNAME]+'>{value:defaultValue("&#160;")}</div></tpl>',
                            editable: colItems[i][Enum_WidgetAttribute.EDITABLE],
                            disabled:!colItems[i][Enum_WidgetAttribute.ENABLE],
                            name:colItems[i][Enum_WidgetAttribute.FIELDNAME],
                            submitValue:false,
                            minChars: Number.MAX_VALUE,
                            screenNum:scrNum,
                            background:colItems[i][Enum_WidgetAttribute.BACKGROUND]||'',
                            enableKeyEvents:true,
                            preventMark:true,
                            isCombo:true,
                            mode: 'remote',
                            triggerAction: 'all',
                            store: new Ext.data.DirectStore({
                                root : 'data',
                                baseParams:{
                                    myForm : formComponent,
                                    command : 'comboGridUpdate',
                                    notify : colItems[i][Enum_WidgetAttribute.NOTIFY],
                                    screenNum : this.screenNum,
                                    specificDelay:1
                                },
                                directFn: FormService.directSubmit
                            });

  3. #3
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,791

    Default

    Code:
    baseParams:{
        myForm : formComponent,
        ...
    }
    I don't know much about Ext Direct but I'm very suspicious of this line. Try removing it.

    Inspect the stacktrace or add a breakpoint/logging to figure out what it's trying to encode when it blows up.

Posting Permissions

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