Results 1 to 2 of 2

Thread: Can a compositefield be within a fieldset? I get error 'c not defined' on render

  1. #1

    Default Can a compositefield be within a fieldset? I get error 'c not defined' on render

    Here's my form code:

    PHP Code:
    {
                
    xtype:'fieldset',
                
    //title: 'Addresses',
                
    borderfalse,
                
    collapsibletrue,
                
    autoHeight:true,
                
    layout:'column',        
            
    width750,
                
    items: [{
                    
    columnWidth:0.5,
                    
    id'addressesCol1',
                    
    layout'form',
                    
    border:false,
                    
    items: [ TAGNMfieldTAGA1fieldTAGA2fieldTAGA3fieldTAGCIfield
                        
    {
                
    xtype'compositefield',
                
    id'compositefields1',
                
    fieldLabel'Customer#',
                
    labelWidth50,
                
    items: [ COMNOfield, {xtype'displayfield'value'a'width10style: {marginLeft'5px'marginTop'4px'}},
                        
    CUSNOfield, {xtype'displayfield'value'a'width10style: {marginLeft'5px'marginTop'4px'}}
                ]}, 
            
    CUSNOnameSTRAIfieldSITSHfieldCUSPOfieldACTNOfield ]
                },{
                    
    columnWidth:0.5,
                    
    id'addressesCol2',
                    
    layout'form',
                    
    border:false,
                    
    items:  [ SITINfieldINSSNfieldINSS1fieldINSS2fieldINSS3field ]
               }]
            } 
    I searched the forum, and tried Firebug to find c but no luck.

  2. #2

    Default

    FYI, I was able to use a container instead of a compositefield:

    PHP Code:
    {
                
    xtype:'fieldset',
                
    //title: 'Addresses',
                
    borderfalse,
                
    collapsibletrue,
                
    autoHeight:true,
                
    layout:'column',        
            
    width750,
                
    items: [{
                    
    columnWidth:0.5,
                    
    id'addressesCol1',
                    
    layout'form',
                    
    border:false,
                    
    items: [ TAGNMfieldTAGA1fieldTAGA2fieldTAGA3fieldTAGCIfieldTAGSTfieldTAGZPfieldTAGCNfield
                        {
                
    xtype'container',
                
    layout'column',
                
    fieldLabel'Co#/Customer#',
                
    anchor         '-10',
                
    defaultType    'container',
                
    defaults       : {
                    
    width      115,
                    
    //labelWidth : 5,
                    
    layout     'form'
                
    },
                
    items: [
                    {
                        
    labelWidth 5,
                        
    width      35,
                        
    items      :  COMNOfield
                    
    },{
                        
    labelWidth 5,
                        
    width      95,
                        
    items      :  CUSNOfield
                    
    }
                ]}, 
            
    CUSNOnameSTRAIfieldSITSHfieldCUSPOfieldACTNOfield ]
                },{
                    
    columnWidth:0.5,
                    
    id'addressesCol2',
                    
    layout'form',
                    
    border:false,
                    
    items:  [ SITINfieldINSSNfieldINSCOfieldINSPHfieldINSS1fieldINSS2fieldINSS3field
                            
    INSSIfieldINSSSfieldINSSZfieldINSSCfieldINSFXfieldthdEADRfield
                            
    LMNUPfieldLMNDTfieldSITORfield ]
               }]
            } 

Similar Threads

  1. IE7 fails to render button defined by html
    By AudiGeist in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 21 Oct 2010, 12:23 PM
  2. formpanel.add() with xtype: 'compositefield' -> error
    By max5komma2 in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 10 Aug 2010, 10:51 AM
  3. Error with compositefield
    By madirishman in forum Ext Designer: Help & Discussion
    Replies: 3
    Last Post: 23 Jun 2010, 10:47 AM
  4. Load form on 'render' event but CompositeField not rendered yet.
    By jarlau in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 9 Apr 2010, 1:45 AM
  5. Replies: 4
    Last Post: 16 Dec 2009, 12:07 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
  •