1. #1
    Sencha Premium Member
    Join Date
    Feb 2009
    Location
    Boca Raton, FL
    Posts
    94
    Vote Rating
    1
    jimmifett is on a distinguished road

      0  

    Default form.Panel API load always failing

    form.Panel API load always failing


    I'm trying to use form.Panel's direct load API, and I must be doing something wrong. It always hits a directload failure.

    json i'm getting:
    PHP Code:
    {"result":{"success":true,"ORDER_ID":"41E95CE9ED5C5BDA67E48D955752BEE3"},"tid":4,"method":"getOrder","action":"Components.Foo","type":"rpc"
    Ext.form.Panel reader:
    PHP Code:
    reader    : {
                    
    type            'json',
                    
    root            'result',
                    
    successProperty 'success',
                    
    messageProperty    'message'
                

    I've tried result.success, played with specifying the model to use, with and without root, etc.
    It's seams as if it's not using the reader at all.

    Ideally i'd like it to use CFQueryReader, as I started down this rabbit hole with the, but have simplified to isolate problem.

    my normal reader for cfqueryreader:
    PHP Code:
                    reader    : {
                        
    type            'cfquery',
                        
    successProperty 'success',
                        
    messageProperty    'message'
                    
    }, 
    any suggestions?

  2. #2
    Sencha Premium Member
    Join Date
    Feb 2009
    Location
    Boca Raton, FL
    Posts
    94
    Vote Rating
    1
    jimmifett is on a distinguished road

      0  

    Default


    Never mind, I was having a derp moment for the above, fixed that.

    However, it does not seem to like using CFQuery reader:

    packet:
    PHP Code:
    {"result":{"success":true,"QUERY":{"COLUMNS":["ORDER_ID"],"DATA":[["41E95CE9ED5C5BDA67E48D955752BEE3"]]},"TOTALROWCOUNT":1},"tid":4,"method":"getOrder","action":"Components.Foo","type":"rpc"
    Ext.form.Panel reader:
    PHP Code:
    reader    : {
                        
    type            'cfquery',
                        
    model            'App.Foo.Types.Data.Models.Order',
                        
    successProperty 'success',
                        
    messageProperty    'message'
                    

    model:
    PHP Code:
    Ext.define('App.Foo.Types.Data.Models.Order', {
        
    extend    'Ext.data.Model',
        
    fields    : [
            { 
    name'Order_ID',            type'string' }
        ],
        
    idProperty    'Order_ID'
    }); 

    Any help with this one?

  3. #3
    Sencha Premium Member
    Join Date
    Feb 2009
    Location
    Boca Raton, FL
    Posts
    94
    Vote Rating
    1
    jimmifett is on a distinguished road

      0  

    Default


    Finally having a chance to dig, looks like Ext.form.Panel's api config option completely ignores the reader config option. This would have been useful to note somewhere in the docs for api.