This commit is contained in:
2020-09-03 22:37:17 +00:00
parent 74cfadc430
commit 8576cca7e2

View File

@@ -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: `<html>
<body>
{{#each this}}
<h1>Widget {{ Name }}</h1>
<div>{{ Notes }}</div>
{{/each}}
</body>
</html>`,
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