diff --git a/server/AyaNova/resource/rpt/stock-report-templates/EXAMPLE WIKI helper.ayrt b/server/AyaNova/resource/rpt/stock-report-templates/EXAMPLE WIKI helper.ayrt index 002e0259..dcb85b29 100644 --- a/server/AyaNova/resource/rpt/stock-report-templates/EXAMPLE WIKI helper.ayrt +++ b/server/AyaNova/resource/rpt/stock-report-templates/EXAMPLE WIKI helper.ayrt @@ -1 +1 @@ -{"Name":"EXAMPLE WIKI helper","Active":true,"Notes":"","Roles":124927,"ObjectType":2,"Template":"\n\n\n\t{{#each ayReportData}}\n\t

Object name:

\n\t{{ Name }}\n\t

Object WIKI:

\n\t{{ ayWiki Wiki }}\n\t{{/each}}\n\n\n","Style":"","JsPrerender":"async function ayPrepareData(reportData){ \n //this function (if present) is called with the report data \n //before the report is rendered\n //modify data as required here and return it to change the data before the report renders\n //see the help documentation for details\n return reportData;\n}","JsHelpers":"//Register custom Handlebars helpers here to use in your report script\n//https://handlebarsjs.com/guide/#custom-helpers\n","RenderType":0} \ No newline at end of file +{"Name":"EXAMPLE WIKI helper","Active":true,"Notes":"","Roles":124927,"ObjectType":2,"Template":"\n\n\n\t

Example: WIKI / markdown field usage

\n\t

See help documentation for details

\n\n\t{{#each ayReportData}}\n\t

Object name:

\n\t{{ Name }}\n\t

Object WIKI:

\n\t{{ ayWiki Wiki }}\n\t{{/each}}\n\n\n","Style":"","JsPrerender":"async function ayPrepareData(reportData){ \n //this function (if present) is called with the report data \n //before the report is rendered\n //modify data as required here and return it to change the data before the report renders\n //see the help documentation for details\n return reportData;\n}","JsHelpers":"//Register custom Handlebars helpers here to use in your report script\n//https://handlebarsjs.com/guide/#custom-helpers\n","RenderType":0} \ No newline at end of file diff --git a/server/AyaNova/resource/rpt/stock-report-templates/EXAMPLE custom fields.ayrt b/server/AyaNova/resource/rpt/stock-report-templates/EXAMPLE custom fields.ayrt new file mode 100644 index 00000000..2b10340c --- /dev/null +++ b/server/AyaNova/resource/rpt/stock-report-templates/EXAMPLE custom fields.ayrt @@ -0,0 +1 @@ +{"Name":"EXAMPLE custom fields","Active":true,"Notes":"","Roles":124927,"ObjectType":2,"Template":"\n\n\n\t

Example: custom fields usage

\n\t

See help documentation for details

\n\n\t
\n\t\t{{#each ayReportData}}\n\n\t\t

Non custom fields

\n\t\tName: {{ Name }}
\n\t\tDollarAmount as Number: {{ ayDecimal DollarAmount}}
\n\n\t\t

Custom fields

\n\t\t

Custom field items can be accessed via the main object's CustomFields property and then by dot notation for each of the 16 possible custom fields as .c1 to .c16 \n\t\tIf a custom field is unused it will return a blank for that item.\n\t\t(note, example assumes generated sample data and that c1 and c5 have data)

\n\t\tCustom c1 as DateTime: {{ ayDateTime CustomFields.c1}}
\n\t\tcustom c5 as Number: {{ ayDecimal CustomFields.c5}}
\t\n\t\t
\n\t\t{{/each}}\n\t
\n\n\n","Style":"","JsPrerender":"async function ayPrepareData(reportData){ \n return reportData;\n}","JsHelpers":"","RenderType":0} \ No newline at end of file