This is more of a feature then a bug. could the 'freeze edits' be per item not globally. The reason for this is we use some global scripts that need modifying, while most of the script do not. It would be good to lock editing on the ones that should never be modified and allow editing on the ones that will be modified.
Posts made by hluikartjr
-
RE: jsreport v2 beta released - asking for a feedback
-
RE: jsreport v2 beta released - asking for a feedback
Review of v2:
I like the commit feature. but, it needs a wait wheel or something to indicate that it is working.
The 'Freeze edits' does not allow for running a report from the 'Run'. return 'Error: Editing is frozen through jsreport-freeze extension.
at D:\jsreportV2\node_modules\jsreport-freeze\lib\freeze.js:31:13
at <anonymous>'
Also, 'Release freeze' is not unfreezing and allowing the report to run either. -
RE: jsreport v2 beta released - asking for a feedback
@bjrmatos, thanks for the fast response.
The playground link provided above is not working. I found the problem.
I was adding the asset to the top of the scripts outside of any beforeRender function. First line asset looked like this 'var startDate = new Date(req.options.startDate);'
followed by others that refer to 'req.options' where each script would pass the options from script to script.
The error I was getting was 'ReferenceError: req is not defined'. -
RE: jsreport v2 beta released - asking for a feedback
Did you get rid of being able to add assets in scripts. In version 1.9.2, I could add a asset to any script by using '{#asset Global-BeforeRender.js @encoding=utf8}'. This allow for some global functions and handling of variables the same way from script to script.