diff --git a/ayanova/src/views/ay-report-edit.vue b/ayanova/src/views/ay-report-edit.vue index 16e83ff7..f8fe2630 100644 --- a/ayanova/src/views/ay-report-edit.vue +++ b/ayanova/src/views/ay-report-edit.vue @@ -28,7 +28,7 @@ - Pre-render + PrepareData @@ -137,6 +137,11 @@ import * as monaco from "monaco-editor"; /*TODO: Example api helper for docs +http://localhost:7575/api/v8/enum-list/list/AyaType + +determine course of action to handle locale keys list for report based on fields in data source + I'm thinking of replicating the Client translation.js code for this as it's simple and tested + complete docs as much as needed for now then... @@ -356,10 +361,11 @@ export default { style: `.example { color: blue; }`, - jsPrerender: `function reportPreRender(reportData){ + jsPrerender: `function ayPrepareData(reportData){ //this function (if present) is called with the report data //before the report is rendered //modify data as required here and return it to change the data before the report renders + //see the help documentation for details return reportData; }`, jsHelpers: `//Register custom Handlebars helpers here to use in your report script