1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    81
    Answers
    3
    Vote Rating
    0
    mice-pace is on a distinguished road

      0  

    Default Unanswered: xtype display, can't change displayed value

    Unanswered: xtype display, can't change displayed value


    The following code throws no errors, the console logging shows the expected values, but the display fields i fetch to set the value of remain stubbornly unchanged

    Code:
                Ext.getCmp('booking_appointment_personnel_lastname').setValue(appointment.personnel.lastname);
                console.log('lastname: '+appointment.personnel.lastname);
                Ext.getCmp('booking_appointment_personnel_firstname').setValue(appointment.personnel.firstname);
                console.log('firstname: '+appointment.personnel.firstname);
                Ext.getCmp('booking_appointment_time').setValue(appointment.time);
                Ext.getCmp('booking_appointment_time').doComponentLayout() ;
                console.log('time: '+appointment.time);
                Ext.getCmp('booking_appointment_date').setValue(appointment.date);
                console.log('date: '+appointment.date);
    There *is* an error being thrown, but it seems to be unrelated since it was there before I added this code, appears in the logs AFTER all of the console outputs.

    I doubt it can be that i have failed to fetch the fields, otherwise it would throw an error that i'm calling a method of undefined.

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,819
    Answers
    453
    Vote Rating
    608
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    There's not enough information here, you'll need to post a test case.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Answers
    124
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default


    Hi,

    try following code it will be helpfull for you :

    Code:
    Ext.create('Ext.form.Panel', {
        title: 'Simple Form',
        bodyPadding: 5,
        width: 350,
        layout: 'anchor',
        defaults: {
            anchor: '100%'
        },
    
    
        defaultType: 'displayfield',
        items: [{
            fieldLabel: 'First Name',
            name: 'first',
            id:'name',
            value:' First Name'
        },{
            fieldLabel: 'Last Name',
            name: 'last',
            id:'last',
            value:'Last Name'
        }],
    
    
        buttons: [{
            text: 'Set Value',
            handler: function() {
                Ext.getCmp('name').setValue('Form');
                Ext.getCmp('last').setValue('Panel')
            }
        }],
        renderTo: Ext.getBody()
    });
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

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