Results 1 to 4 of 4

Thread: Composite field is not working

  1. #1
    Sencha User
    Join Date
    Oct 2010
    Location
    Chandigarh (INDIA)
    Posts
    143

    Default Composite field is not working

    hello here is the code that i am using for composite field but it always displays an error message.......but when we remove composite field it works fine
    ERROR
    PHP Code:
    Errorb[d.xtype || eis not a constructor
    Source File
    http://localhost:8080/amp/assets/lib/ext/ext-all.js
    Line

    CODE


    PHP Code:

    var checkinForm = new Ext.FormPanel( {
            
    standardSubmit true,
            
    url 'checkinResult.jsp',
            
    frame true,
            
    bodyStyle 'height:440px;',
            
    defaultType 'textfield',
            
    autoWidth true,
            
    fileUpload true,
            
    monitorValid true,
            
    labelWidth 102,
            
    autoRegion true,
            
    height 450,
            
    defaults : {
                
    // allowBlank : false,
            
    width 250
        
    },
        
    items : [ {
            
    html "<b>Fill the required fields to check in<b><br /><br />",
            
    xtype "panel"
        
    }, {
            
    fieldLabel 'Title<span style="color:red">*</span>',
            
    name 'title',
            
    id 'title',
            
    allowBlank false
        
    }, {
            
    fieldLabel 'Folder Selected<span style="color:red">*</span>',
            
    name 'folder',
            
    value foldername,
            
    readOnly true,
            
    disabled true,
            
    allowBlank false
        
    }, new Ext.form.ComboBox( {
            
    editable false,
            
    typeAhead true,
            
    triggerAction 'all',
            
    lazyRender true,
            
    mode 'local',
            
    selectOnFocus true,
            
    emptyText 'Select the Security Group...',
            
    store secGroupTypeStore,
            
    valueField 'myId',
            
    fieldLabel 'Security Group<span style="color:red">*</span>',
            
    name 'securityGroup',
            
    displayField 'displayText',
            
    allowBlank false
        
    }), {
                                            
    xtype'compositefield',
                    
    fieldLabel'Date Range',
                    
    msgTarget 'side',
                    
    anchor    '-20',
                    
    defaults: {
                        
    flex1
                    
    },
                    
    items: [
                        {
                            
    xtype'datefield',
                            
    name 'startDate'
                        
    },
                        {
                            
    xtype'datefield',
                            
    name 'endDate'
                        
    }
                    ]
                },......
    .....
    .....

    ..... 

  2. #2
    Sencha Premium User
    Join Date
    Apr 2010
    Posts
    238

    Default

    what EXTJS version is being used?

  3. #3
    Sencha User fay's Avatar
    Join Date
    Apr 2007
    Location
    Ireland
    Posts
    1,750

    Default

    Use ext-all-debug.js and FireFox+FireBug while developing/debugging.

  4. #4
    Sencha User
    Join Date
    Oct 2010
    Posts
    157

    Default

    some others ideas :
    1. have your tried to see if using 'starDate' and 'endDate' directly in your panel (not worry about layout here) works ?

    2. defaults: { flex: 1},
    flex what ? when you "flex" you flex at least 2 things ! and anyway there are alternatives to flex... stretch, fit, size in % applied to styles, etc...

Similar Threads

  1. Composite field without width
    By SabaSarwat in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 26 Oct 2010, 2:09 AM
  2. Composite Field labels
    By Alan Heywood in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 15 Apr 2010, 11:08 PM
  3. Composite Field
    By mhuibers in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 25 Feb 2008, 4:37 AM

Posting Permissions

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