0 Replies Latest reply on Jul 7, 2015 12:57 PM by a4poster

    Data Bindings Formatter - String to Integer?

    a4poster

      Hi I have the following code (Dreamweaver latest release - 2015).

       

      <div data-binding-id="employeesListing" data-binding-repeat="{{staff.employees.where( &quot;age&quot;, &quot;==&quot;, 32 )}}">

      <a href="#" data-value="{{age}}">{{age}} {{firstName}} {{lastName}}</a>

      </div>

       

      How can I substitute the static '32" for a variable and format it correctly - so for example I would then have the following:

       

      employeesAge = 32; (This is a number not a string)

       

      So the above code would then look something like this...

       

      <div data-binding-id="employeesListing" data-binding-repeat="{{staff.employees.where( &quot;age&quot;, &quot;==&quot;, employeesAge )}}">

      <a href="#" data-value="{{age}}">{{age}} {{firstName}} {{lastName}}</a>

      </div>

       

      Thanks in advance.

       

      Message was edited by: Paul Lamacraft