1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    11
    Vote Rating
    0
    deamon1767 is on a distinguished road

      0  

    Default Help with designer and direct

    Help with designer and direct


    I am using ext designer and extdirect connected to a mysql database
    It is displaying grids fine but is not displaying fields (displayfield)
    What do I have to tell ext designer in order to display the fields (autoload worked on grid but not on displayfield)

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,400
    Vote Rating
    129
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Are you asking for a way to introspect the database to autogenerate the data fields?

    This is currently not a feature, but something that we are considering for the future.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    11
    Vote Rating
    0
    deamon1767 is on a distinguished road

      0  

    Default NO

    NO


    No
    I am using field.display but its not showing the data
    I know my connections are good (using firebug) because they are showing in a grid but on another pages I have several field.display('s) and they are not showing the data even though I can see the data is there (firebug)
    Am sure its something simple that I haven't done (am a newbie to sen designer)

  4. #4
    Sencha User
    Join Date
    Feb 2012
    Posts
    11
    Vote Rating
    0
    deamon1767 is on a distinguished road

      0  

    Default Code

    Code


    Below is my code, maybe this will help make more sense
    What I want to do is very simple-just show the data in the displayfields
    Code:
    Ext.define('MyApp.view.MyPanel', {
        extend: 'Ext.container.Viewport',
    
    
        margin: '10 0 0 10',
        autoScroll: true,
    
    
        initComponent: function() {
            var me = this;
    
    
            Ext.applyIf(me, {
                items: [
                    {
                        xtype: 'fieldcontainer',
                        height: 38,
                        margin: '10 0 0 15',
                        width: 576,
                        layout: {
                            align: 'stretch',
                            type: 'hbox'
                        },
                        items: [
                            {
                                xtype: 'displayfield',
                                maxHeight: 25,
                                maxWidth: 320,
                                name: 'account_name',
                                value: 'J Technics\n',
                                fieldLabel: 'Account Name',
                                flex: 1
                            },
                            {
                                xtype: 'displayfield',
                                maxWidth: 160,
                                width: 160,
                                name: 'tech_assigned_to',
                                value: 'Walter',
                                fieldLabel: 'Date Tech Updated',
                                flex: 1,
                                margins: '0 0 0 20'
                            }
                        ]
                    },
                    {
                        xtype: 'fieldcontainer',
                        height: 120,
                        margin: '10 0 0 15',
                        maxHeight: 85,
                        width: 576,
                        layout: {
                            align: 'stretch',
                            type: 'hbox'
                        },
                        items: [
                            {
                                xtype: 'fieldcontainer',
                                height: 120,
                                width: 289,
                                flex: 1,
                                items: [
                                    {
                                        xtype: 'displayfield',
                                        autoShow: false,
                                        height: 50,
                                        maxHeight: 50,
                                        maxWidth: 300,
                                        width: 300,
                                        name: 'maint_address',
                                        value: 'test',
                                        fieldLabel: 'Address of Service Site'
                                    },
                                    {
                                        xtype: 'displayfield',
                                        autoShow: false,
                                        margin: '10 0 0 0',
                                        maxHeight: 25,
                                        maxWidth: 180,
                                        name: 'maint_order_number',
                                        fieldLabel: 'Work Order #'
                                    }
                                ]
                            },
                            {
                                xtype: 'fieldcontainer',
                                height: 120,
                                maxWidth: 230,
                                width: 200,
                                flex: 1,
                                margins: '0 0 0 20',
                                items: [
                                    {
                                        xtype: 'displayfield',
                                        maxHeight: 25,
                                        maxWidth: 180,
                                        name: 'maint_customer_name',
                                        fieldLabel: 'Contact',
                                        labelWidth: 65
                                    },
                                    {
                                        xtype: 'displayfield',
                                        maxHeight: 25,
                                        maxWidth: 180,
                                        name: 'maint_phone',
                                        fieldLabel: 'Phone #',
                                        labelWidth: 65
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        xtype: 'displayfield',
                        margin: '10 0 0 15',
                        width: 553,
                        name: 'gpscord',
                        fieldLabel: 'GPS Quadrants'
                    },
                    {
                        xtype: 'displayfield',
                        margin: '10 0 0 15',
                        width: 551,
                        fieldLabel: 'Maintenance Required'
                    },
                    {
                        xtype: 'fieldcontainer',
                        height: 40,
                        margin: '15 0 0 10',
                        width: 650,
                        layout: {
                            align: 'stretch',
                            type: 'hbox'
                        },
                        fieldLabel: 'Hours:',
                        items: [
                            {
                                xtype: 'textfield',
                                width: 120,
                                fieldLabel: 'Spring Budget',
                                labelWidth: 60
                            },
                            {
                                xtype: 'textfield',
                                width: 120,
                                fieldLabel: 'Summer Budget',
                                labelWidth: 60,
                                margins: '0 0 0 10'
                            },
                            {
                                xtype: 'textfield',
                                width: 120,
                                fieldLabel: 'Fall Budget',
                                labelWidth: 60,
                                margins: '0 0 0 10'
                            },
                            {
                                xtype: 'textfield',
                                width: 120,
                                fieldLabel: 'Winter Budget',
                                labelWidth: 60,
                                margins: '0 0 0 10'
                            }
                        ]
                    },
                    {
                        xtype: 'fieldcontainer',
                        height: 139,
                        width: 573,
                        items: [
                            {
                                xtype: 'fieldcontainer',
                                height: 23,
                                margin: '10 0 0 15',
                                width: 573,
                                fieldLabel: 'P.O. Request',
                                labelWidth: 230,
                                items: [
                                    {
                                        xtype: 'checkboxgroup',
                                        width: 200,
                                        items: [
                                            {
                                                xtype: 'checkboxfield',
                                                boxLabel: 'Yes'
                                            },
                                            {
                                                xtype: 'checkboxfield',
                                                boxLabel: 'No'
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                xtype: 'fieldcontainer',
                                height: 23,
                                margin: '10 0 0 15',
                                width: 573,
                                fieldLabel: 'Filters Needed Next Maintenance',
                                labelWidth: 230,
                                items: [
                                    {
                                        xtype: 'checkboxgroup',
                                        width: 200,
                                        items: [
                                            {
                                                xtype: 'checkboxfield',
                                                boxLabel: 'Yes'
                                            },
                                            {
                                                xtype: 'checkboxfield',
                                                boxLabel: 'No'
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                xtype: 'fieldcontainer',
                                height: 23,
                                margin: '10 0 0 15',
                                width: 573,
                                fieldLabel: 'Sceduled Repairs "Date Stamp"',
                                labelWidth: 230,
                                items: [
                                    {
                                        xtype: 'checkboxgroup',
                                        width: 200,
                                        items: [
                                            {
                                                xtype: 'checkboxfield',
                                                boxLabel: 'Yes'
                                            },
                                            {
                                                xtype: 'checkboxfield',
                                                boxLabel: 'No'
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                xtype: 'fieldcontainer',
                                height: 23,
                                margin: '10 0 0 15',
                                width: 314,
                                fieldLabel: 'Belts Required Next Maintenance',
                                labelWidth: 230,
                                items: [
                                    {
                                        xtype: 'checkboxgroup',
                                        width: 200,
                                        items: [
                                            {
                                                xtype: 'checkboxfield',
                                                boxLabel: 'Yes'
                                            },
                                            {
                                                xtype: 'checkboxfield',
                                                boxLabel: 'No'
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        xtype: 'fieldcontainer',
                        height: 40,
                        width: 654,
                        layout: {
                            align: 'stretch',
                            type: 'hbox'
                        },
                        items: [
                            {
                                xtype: 'button',
                                margin: '0 0 0 10',
                                text: 'Log In/Out',
                                flex: 1
                            },
                            {
                                xtype: 'filefield',
                                margin: '0 0 0 10',
                                fieldLabel: 'Attach W/O',
                                flex: 1
                            },
                            {
                                xtype: 'filefield',
                                name: 'mopic',
                                fieldLabel: 'Attach Picture',
                                flex: 1,
                                margins: '0 0 0 10'
                            }
                        ]
                    },
                    {
                        xtype: 'textfield',
                        margin: '15 0 0 10',
                        fieldLabel: 'Signature'
                    }
                ]
            });
    
    
            me.callParent(arguments);
        }
    
    
    });
    Last edited by aconran; 10 Apr 2012 at 3:05 PM. Reason: add code tags

  5. #5
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,400
    Vote Rating
    129
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Does your other post answer your question?
    http://www.sencha.com/forum/showthre...data-to-a-form
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  6. #6
    Sencha User
    Join Date
    Feb 2012
    Posts
    11
    Vote Rating
    0
    deamon1767 is on a distinguished road

      0  

    Default Not really

    Not really


    Am using designer and new to both it and to some extent js4
    (am a vb programmer learning new language)
    I think I understand, kindof but am doing my coding inside extdesigner
    Can you give me an example/walkthru please

Thread Participants: 1