FYI, this is fixed now on master, it will be part of next release
BORIS MATOS MORILLO
@bjrmatos
Posts made by bjrmatos
-
RE: Issue with Excel Formulas in JSReport each Iterationposted in general forum
-
RE: Issue with Excel Formulas in JSReport each Iterationposted in general forum
can you try to upload the xlsx files again? it would be great if you add the data you use too.
if you like you can also send me those files at bjrmatos@gmail.com
-
RE: Localization data not rendered when accessed using an arrayposted in general forum
hi @lennykey
Before this was working before jsReport 4.0.6
do you mean before 4.6.0? right?
{{lookup localize "months" (localizationFolder) settlementMonth}}
hmm i am not even sure why using the lookup worked previously here, that way you use the
lookupmakes use of 4 parameters, even though i think lookup only works with 2 (according to handlebars docs).{{localize (concat "months." settlementMonth) (localizationFolder)}}
This looks good, and it is the correct way to use the localize helper, though i am not sure why you need to wrap the localizationFolder in parentheses
(localizationFolder), if it is just a data variable you should not need to use handlebars sub-expressions here. -
RE: Import ESM module to sandboxposted in general forum
hi! yes, it is not possible to use ESM inside the sandbox, it is mainly because of some limitations in the implementation of sandbox (vm module and vm scripts).
we are tracking the progress of it in this issue, there were some changes in node that will likely help with making ESM modules to work in sandbox, however we have not yet evaluated the full history.
this change will likely require a major version bump in jsreport so we are still in the process of planning the next major release, and when we are on that we will fully check if ESM is possible right now or not yet given the current nodejs features.
-
RE: Import-export using jsreport-cli without installing it globallyposted in general forum
hi!!
you should be able to execute the cli without the global installation by doing any of the following methods:
(all methods assume you execute the command from the root of your project)
- executing
npx jsreport <command> - executing
node node_modules\.bin\jsreport <command>
if this does not work, please share more details, like:
- the jsreport version you are using
- where are you trying to execute this? local machine? server? windows? linux?
- do you execute this manually? or are you using some CI or automated process?
- executing
-
RE: DocxImage in footerposted in general forum
@ValentinCerfaux yes, the fix is going to be part of next release.
-
RE: DocxImage in footerposted in general forum
thank you @ValentinCerfaux, i can replicate the problem with your export, we are going to take a look.
-
RE: Formula with "equal" and "if" in Excelposted in general forum
using the
{{#if }}in this way does not work in xlsx, in Docx it works because the definition of the content there is different from how cells definitions are done. you can use the{{#if }}in xlsx only if the start end end of the block calls are in the same cell.however this would be nice to support, i have opened new issue to support it, you can subscribe there for updates
-
RE: Disable docx toc updateposted in general forum
@bjarnesc yes, let us know if you get to have a sample ready
-
RE: Disable docx toc updateposted in general forum
hi @bjarnesc
as I understand from the documentation, if jsreport detects a table of content, it automatically tries to update this. As good as an automated update would be, this seems to be a bit hacky and is not working properly for my template.
maybe we can try to fix the automatic update for your template. if you share your entities we can take a look.
My solution would be to just not use page numbers and to keep the toc as it is in the template, because there is no generated headings. However I do not seem to find a way that the toc just stays the same as in the template. I tried setting {{docxTOCOptions updateFields=false}} in the table header but this did not work. Is there any solution for this?
no way to disable the automatic sync of TOC, the
updateFieldsis an option for another purpose, it is described in the docs. i have opened a new issue to add an option to disable the automatic sync, you can subscribe there for updates.