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,596
    Vote Rating
    324
    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.