• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

[HELPED] Combobox in Tbar not Loading

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [HELPED] Combobox in Tbar not Loading

    I have a combobox in an add window that works, but when I put that same code in a tbar I get an error. Do I need something additional for this to work in the tbar? The error is: TypeError: url is undefined. Thanks for any help.

    My add window code:
    Code:
    xtype:'combo',
                        id:'add_MTLINE',
                        fieldLabel:'Line',
                        emptyText: 'Select Line',
                        selectOnTab: true,
                        triggerAction: 'all',
                        editable: false,
                        forceSelection:true,                    
                        valueField: 'LINE',                   
                        displayField: 'ALPHA4',
                        store: new Ext.data.JsonStore({
                            url: 'vvcall.pgm',
                            fields: ['LINE', 'ALPHA4'],
                            root: 'LINES',
                            autoLoad: false,
                            baseParams: {
                                action: 'getLines',
                                pgm: 'GETLINE'
                            }
                        })
    Here's my tbar code:
    Code:
    xtype:'combo',
                        id:'TPLINE',                    
                        emptyText: 'Select Line',
                        selectOnTab: true,
                        triggerAction: 'all',                    
                        editable: false,
                        forceSelection:true,                    
                        valueField: 'LINE',                   
                        displayField: 'ALPHA4',
                        store: new Ext.data.JsonStore({
                            url: 'vvcall.pgm',
                            fields: ['LINE', 'ALPHA4'],
                            root: 'LINES',
                            autoLoad: true,
                            baseParams: {
                                action: 'getLines',
                                pgm: 'GETLINE'
                            }
                        })

  • #2
    Can you point out exactly what line in your code that error is coming from?

    Comment


    • #3
      This is what I see in Firebug. Is there a way for me to see exactly which line? Also, when I remove that combobox code the error disappears.

      TypeError: url is undefined

      return url + (url.indexOf('?') === -1 ? '?' : '&') + string;

      ext-all-debug.js (line 811)
      Last edited by JosephHarriman; 01-16-2014, 12:29 PM.

      Comment


      • #4
        Try using the native firefox or chrome debugger, you might be able to drill into the stack trace and see where the error comes from in your code. But the error you see there is coming from line 811 of ext-all-debug.js

        Comment

        Working...
        X