any ideas using the solution above how to get the pdf name shown in the browser viewer to not be a mangled name?
lattamore
@lattamore
Posts made by lattamore
-
RE: How to render to a placeholder when sing renderAsync
-
RE: How to render to a placeholder when sing renderAsync
This works, thank you. Now just need to unmangle the report name showed in the PDF viewer through chrome.
-
How to render to a placeholder when sing renderAsync
When Rendering via jsreport.render(placeholder, request) works fine. Because of the time it takes for some reports to render we would like to put up a spinner and remove it when finished. The only way I can see to do this is using the jsreport.renderAsync(request) using the promise when returned to stop the spinner. This seems to work fine, but how do I now use the response and render it to the placeholder?
It is a phantom pdf template being rendered by the way.
<div ref='placeholder' id='placeholder'></div>
// old way works good jsreport.render(placeholder, request) // new async way so we can hide the spinner jsreport.renderAsync(request).then((res) => { res... // what goes here so we can render to placeholder div? Loading.hide() })
-
Show text based on condition return from script function
I am retrieving some data and showing it in a report. The report data has an "active" column the data type is boolean. I would like to show data only when "active" is false. Is it possible to use an "if" and I'm just not finding the correct syntax?
<td>
{{#if {{active}} }}
{{else}}
INACTIVE TEXT
{{/if}}
</td>