Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titleScripting Usage
var result = $Xml.Format('SAMPLE REPORT\
<h1>{{Customer/Name}}</h1>\
<table>\
{{ Rows/Row => <tr><td>{{Date}}</td><td>{{Description}}</td></tr>  }}\
</table>', {
  MyVariable : 'Long text'
});

result

Code Block
<h1>John</h1>
<p>Long text</p>
<table>
<tr><td>2010-01-01</td><td>description</td></tr>
<tr><td>2015-01-01</td><td>other description</td></tr>
</table>

...

Code Block
var result = $Xml.Format('SAMPLE REPORT\
<h1>{{Customer/Name}}</h1>\
<table>\
  <tr x-repeat="Rows/Row">\
    <td>{{Date}}</td><td>{{Description}}</td>\
  </tr>\
</table>', {
  MyVariable : 'Long text'
});

This attribute can be used with any element. For example can be used with "li" tag also.

...