Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
To substitute data in a template, use indicators {d.}
. Indicators {d.}
are substituted for data from your JSON dataset in Ninox.
The following values can be substituted:
a string
a number
a date
When data is an array of objects, access each object directly using the square bracket notation []
and the reserved word i
, which represents the ith
item of the array.
Zero-based arrays are used:
the first item of an array is [i=0]
or [0]
,
the second item of an array is [i=1]
or [1]
,
etc.
My preferred movie is {d[i=1].movie}
My preferred movie is Matrix
Use aliases to simplify the maintenance of your report avoiding code repetition or to insert markers somewhere in the document where special characters like square brackets []
are not allowed, e.g., in worksheet names.
Aliases can be used to:
write {#... = ...}
to define an alias
write {$...}
to use this alias
Define aliases anywhere in the document, at the end, or at the beginning. Aliases are parsed and removed automatically before rendering.
{#myAlias = d.wheels}
{d.name} need {$myAlias} wheels!
Cars need 4 wheels!