NetTalk Central

Author Topic: JavaScript in Report  (Read 3379 times)

rupertvz

  • Sr. Member
  • ****
  • Posts: 326
    • View Profile
    • Email
JavaScript in Report
« on: July 22, 2022, 03:54:25 AM »
Hi Guys,

It is possible to bring JavaScript into a report?

This is to show a JavaScript graph.

Jane

  • Sr. Member
  • ****
  • Posts: 372
  • Expert on nothing with opinions on everything.
    • View Profile
    • Email
Re: JavaScript in Report
« Reply #1 on: July 22, 2022, 09:31:18 AM »
No personal experience.

It might be worth looking into the Stimulsoft report engine.
There have been some clarionlive webinars on it, including one showing a template and mentioning a NetTalk app: https://www.clarionlive.com/BrowseEpisodes/ww!551



Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: JavaScript in Report
« Reply #2 on: July 24, 2022, 12:11:07 AM »
No, you can't put JavaScript in a Clarion Report, because
a) the clarion report engine does not support it and
b) JavaScript is a language, not an output

what you meant to ask was - can you put a graph in a report? The answer to that is yes - construct the graph in JavaScript - perhaps in Chrome Explorer, or externally to your program, save that image as a PNG file, and then include the PNG on the report.

Cheers
Bruce

rupertvz

  • Sr. Member
  • ****
  • Posts: 326
    • View Profile
    • Email
Re: JavaScript in Report
« Reply #3 on: July 26, 2022, 10:55:05 AM »
Thank you Bruce ;-)