1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    22
    Answers
    1
    Vote Rating
    1
    rpsirois is on a distinguished road

      0  

    Default Answered: Problem with #setData() on panel

    Answered: Problem with #setData() on panel


    When using #setData() or #updateData(), I get an error from the Sencha Touch library:

    Line 21907 of sencha-touch-all-debug.js:21097:
    return me.useEval ? me.evalTpl(code) : (new Function('Ext', code))(Ext);
    Uncaught SyntaxError: Unexpected token )

    Here is an abbreviated version of where I am calling #setData():

    Code:
    Ext.define('Project.view.PanelView', {
        extend: 'Ext.Panel',
        alias: ['widget.apanelview'],
        config: {
            id: 'aPanelView',
            ui: 'light',
            tpl: new Ext.XTemplate( '<div>{blah}</div>' )
        },
        constructor: function( config ) {
            this.callParent( arguments );
        },
        loadRecord: function( json ) {
            this.setData( json );
        }
    });
    Unless I misunderstand the use of tpl / setData, I believe I am doing the right thing here. Also, would someone mind clarifying the difference between #setData() and #updateData() for me?

    My goal here is to do what #update() does on templates in ExtJS.

    Thanks,
    RS

  2. Solved:

    Caused by a syntax error in XTemplate html. XTemplate lint should be done at some point.

  3. #2
    Sencha User
    Join Date
    Jul 2012
    Posts
    22
    Answers
    1
    Vote Rating
    1
    rpsirois is on a distinguished road

      0  

    Default Update

    Update


    Other ways to recreate:

    Setting #data: in panel config.
    Using #apply() or #applyTemplate() on a template.

  4. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    22
    Answers
    1
    Vote Rating
    1
    rpsirois is on a distinguished road

      0  

    Default Answered

    Answered


    Solved:

    Caused by a syntax error in XTemplate html. XTemplate lint should be done at some point.

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