Report designer refinement and docs

This commit is contained in:
2021-10-13 17:44:34 +00:00
parent ee703e24c0
commit 6a7f6cea34
2 changed files with 15 additions and 16 deletions

View File

@@ -16,6 +16,10 @@
## ROUGH SCHEDULE TO GET TO BETA
Report designer improvements
add group by method to standard functions and document
ayGroupBy
@@ -27,11 +31,14 @@
in docs it says see below or something but that's not ideal, put it directly into both sections if necessary in a code markdown block
See 3999 append about unit model name/number
case 4002 - I will check after performing import that serials match, BUT see my note as there may be an issue with serials that in v7 "are not consumed" because the workorder is "open" but in v8 would and should be considered "consumed"
security jwt tokens and expiration, can a user just keep working if they are set to inactive because their token hasn't expired?
should tokens refresh periodically and have a super short life?
Update front / back
Update front / back / dotnet 6 is out
https://dotnet.microsoft.com/download/dotnet/6.0
double check roles at client, the way authorizationroles.hasrole is coded makes me think it might be wrong
it only checks that the value is nonzero but in postgres I noticed it needs to compare if the resulting value equals the exact role being checked

View File

@@ -497,27 +497,19 @@ export default {
<body>
{{#each ayReportData}}
<!-- Your template here see Help for details -->
<h2>{{ Name }}</h2>
<div>Notes: <span class='example'>{{ Notes }}</span></div>
{{/each}}
</body>
</html>`,
style: `.example {
color: blue;
style: "",
jsPrerender: `async function ayPrepareData(ayData){
return ayData;
}`,
jsPrerender: `async 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
//https://handlebarsjs.com/guide/#custom-helpers
Handlebars.registerHelper('loud', function (aString) {
return aString.toUpperCase()
})`,
jsHelpers: "",
renderType: 0,
headerTemplate: null,
footerTemplate: null,