1. #1
    Ext JS Premium Member
    Join Date
    Apr 2012
    Location
    Madison, WI
    Posts
    33
    Answers
    1
    Vote Rating
    1
    mharris45 is on a distinguished road

      0  

    Default Answered: Add items to View from another view

    Answered: Add items to View from another view


    Hello, I'm rather new to ExtJS, but I'm moving along quite nicely. However, I've run into a problem.

    I have a view called TaskForm, which contains several items. One of which is a ComboBox that his some complex logic to it and is used in several different locations (once complete). I'm trying it do something like this, from within the view:
    Code:
    items: [
                  {Ext.widget('empcomposite', {
                valFieldNamekey: 'RQT_EMP_CD',
                displFieldName: 'RQT_NAME',
                fieldLabel:         'Requestor'})
                  },{
                        // This is just for testing purposes
                    xtype:          'textfield',
                    name:           'text1',
                },
                {
                        // This is just for testing purposes
                    xtype:          'textfield',
                    name:           'text1',
                },
    But, it does not work at all. I'm pretty sure it's easy to do, but I'm just missing something basic here. Any help would be appreciated.

  2. You could create your item:

    mywidget = Ext.create('mywidget', { .. });

    items: [ mywidget ]

    Regards,
    Scott.

  3. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,918
    Answers
    655
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    You could create your item:

    mywidget = Ext.create('mywidget', { .. });

    items: [ mywidget ]

    Regards,
    Scott.

  4. #3
    Ext JS Premium Member
    Join Date
    Apr 2012
    Location
    Madison, WI
    Posts
    33
    Answers
    1
    Vote Rating
    1
    mharris45 is on a distinguished road

      0  

    Default


    Hmm, that doesn't seem to work.

    It appears that makes it try and call the javascript file directly.
    Code:
    var comp = this;
        	comp.empwidget = Ext.create('empcomposite', {
        		valFieldNamekey: 'RQT_EMP_CD',
       		displFieldName:  'RQT_NAME',
       		fieldLabel: 	 'Requestor'
        	});
    Results in a 400 Bad Request.

  5. #4
    Ext JS Premium Member
    Join Date
    Apr 2012
    Location
    Madison, WI
    Posts
    33
    Answers
    1
    Vote Rating
    1
    mharris45 is on a distinguished road

      0  

    Default


    Everything seems to be working now. You're suggestion worked great, along with correctly defining my views in the controller.

    Thanks.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi