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>\
<p>{{$MyVariable}}</p>\
<table>\
{{ Rows/Row => <tr><td>{{Date}}</td><td>{{Description}}</td></tr>  }}\
</table>', {
  MyVariable : 'Long text'
});

...

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

...