Results 1 to 3 of 3

Thread: howto find component within a form

  1. #1

    Default howto find component within a form

    I would like to find the spinner component and set a value for it without
    using getCmp and a dynamic id, although that is the only function that worked sofar.
    var myId = myId +d.getTime();
    I tryd all a lot off diffferent approches but they all fail.
    I get the idea that this problem is only related to compositefields.

    Can anyone show me possibly a different way to get a reference to a component inside a compositefield?
    Other techniques I could use possibly??

    First off, I have a reference to the container panel set at the start off initComponent
    ,initComponent:function() {
            var pan = this;
    from there I start adding items
    var config = {bodyStyle:'padding:5px',autoHeight: true, defaults: { anchor: '0'},frame:true,
                {xtype: 'compositefield',fieldLabel: blah',anchor: '-20',itemId:'boo'
                        items: [{xtype:combo,
                       listeners:{select: {fn: function(){
                                            test= pan.find('itemId','boo');

    Thanks, Richard

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    The Netherlands


    You should have a look at the 'ref' config option.

    ps. Both 'ref' and find() won't find a component inside a CompositeField (open issue). I recommend using a HBox container instead.

  3. #3


    Thanks, I will remember that next time
    For now, it does the job ok.

    I hope it can do a loadrecord, - but will see about that later.

Similar Threads

  1. HowTo: ExtJs website accessible iPhone? Howto fixed ScreenSize?
    By Arno.Nyhm in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 27 Feb 2010, 8:19 AM
  2. howto find record from a textfield editor listener on editable grid??
    By netslayer in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 23 Mar 2009, 3:44 PM
  3. Howto get the value of a combobox in a form request
    By Wolfgang in forum Community Discussion
    Replies: 4
    Last Post: 20 Aug 2008, 2:00 AM
  4. Howto: Window with a form and grid [Resolved]
    By seymores in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 3 Dec 2007, 8:53 AM
  5. Howto remove auto labels from Form?
    By dotnetCarpenter in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 30 Apr 2007, 12:55 AM

Tags for this Thread

Posting Permissions

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