From 8576cca7e23a4a595ae9da93480e81ee4773a096 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 3 Sep 2020 22:37:17 +0000 Subject: [PATCH] --- ayanova/src/views/ay-report-edit.vue | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/ayanova/src/views/ay-report-edit.vue b/ayanova/src/views/ay-report-edit.vue index 9dfca76d..d05c98fc 100644 --- a/ayanova/src/views/ay-report-edit.vue +++ b/ayanova/src/views/ay-report-edit.vue @@ -134,16 +134,6 @@ import * as monaco from "monaco-editor"; /*TODO: -render report pdf technique I'm attempting directly from the webapi is much fuckery with mobile -instead: - render to a downloadable file either in file system or in db - return a uniquely coded url with a download token - client pops open a new window to that location and server returns it as a normal file - server deletes stored file on retrieval or in a few minutes via job, whichever comes first - - - -working widget template Immediately render last report code needs proper implementation for both widget and widgets currently it's nonsense @@ -320,13 +310,23 @@ export default { notes: "", roles: 124927, //all except customers objectType: 0, - template: `console.log('hello world');`, + template: ` + + + {{#each this}} +

Widget {{ Name }}

+
{{ Notes }}
+ {{/each}} + + +`, style: `.example { color: blue; }`, - jsPrerender: `function preRender(reportdata){ - //this is called before the report is rendered - //modify data as required here + jsPrerender: `function reportPreRender(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 return reportData; }`, jsHelpers: `//Register custom Handlebars helpers here to use in your report script