1. #1
    Ext User
    Join Date
    May 2009
    Posts
    21
    Vote Rating
    0
    akirillov is on a distinguished road

      0  

    Default call function in xTemplate

    call function in xTemplate


    I got dataView with xTemplate. xTemplate got function getVoiceMessageCount(parm) .
    I want to call this function from xTemplate and pass the parameter from store.
    I got error message missing ) after argument list. ext-all-debug.js (строка 20640)

    '<span id="button-{buttonId}-vmCount">{[this.getVoiceMessageCount({buttonId})]}</span>',

    When i replace {buttonId} with any value e.g 5 or 10 everything works fine.

  2. #2
    Ext User
    Join Date
    May 2009
    Posts
    21
    Vote Rating
    0
    akirillov is on a distinguished road

      0  

    Default


    Never mind
    I found solution.
    '<span id="button-{buttonId}-vmCount">{[this.getVoiceMessageCount(values["buttonId"])]}</span>',

  3. #3
    Sencha User
    Join Date
    Feb 2008
    Location
    Turin, Italy
    Posts
    13
    Vote Rating
    0
    c.barca is on a distinguished road

      0  

    Default


    It work perfectly, thank's.

  4. #4
    Sencha User
    Join Date
    Jun 2011
    Posts
    10
    Vote Rating
    0
    heaversm is on a distinguished road

      0  

    Default can you paste your code

    can you paste your code


    I'm trying to do something similar but it's not working - can you paste a little more of your code (like the function) so I can see how this works?

  5. #5
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,572
    Vote Rating
    310
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    @heaversm, this is all documented is the API docs for XTemplate, including examples. If you need more help then please post your code.

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