“Save Screen”

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

“Save Screen”

Post by tford »

The docs say Save Screen action applies to queries displayed as charts.

Can it be used for grid queries as well?

Away from my laptop or I would test for myself.
Tom - V8.8 build 3137 - MySql / PostGres
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Re: “Save Screen”

Post by tford »

My goal is to send pics of charts, grids, and potentially VPs to users via email or Slack message on a schedule.

This is part of a Proof of Concept to replace a BI tool with Aware functionality.
Tom - V8.8 build 3137 - MySql / PostGres
hpl123
Posts: 2579
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: “Save Screen”

Post by hpl123 »

I am fairly sure this function only works in real time i.e when a user is logged into an app and press a button i.e it doesn't work via scheduled processes etc..

I have done something similar to what you are after and I used HTML charts and data presentation (queries) etc. and compiled it all into a PDF (in scheduled processes) i.e what you want is possible.
Henrik (V8 Developer Ed. - Windows)
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Re: “Save Screen”

Post by tford »

Thanks Henrik.

Would you mind sharing how you did it?

Thanks
Tom - V8.8 build 3137 - MySql / PostGres
hpl123
Posts: 2579
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: “Save Screen”

Post by hpl123 »

I used different HTML "components" e.g charts, queries etc. and had what I needed in different HTML pages e.g 1 HTML page for 1 particular chart, 1 HTML page for a query etc. etc. and also in many cases, 1 HTML page with different components together on the same page. These HTML pages are then used as document templates in Aware and I guess you have worked with some type of HTML document template before so you know how that works (you have a process that gather the data you need which you put in context and then the process export the HTML document template to a temp directory on your server). The different end result HTML pages i.e the result from the export of the document templates are then converted to PDF via https://wkhtmltopdf.org/.

Some examples of HTML charts and queries:
https://www.w3schools.com/js/js_graphics_chartjs.asp
https://chartscss.org/
https://www.google.com/search?q=html+charts
https://www.w3schools.com/html/html_tables.asp
https://www.google.com/search?q=html+tables
Henrik (V8 Developer Ed. - Windows)
Post Reply