FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
03-31-2022 09:24 AM
Hello,
Is there a provision to generate a report document (ex: .csv or .pdf) using data from the process tags?
Thanks
Solved! Go to Solution.
03-31-2022 10:05 AM
Hi Tamer,
Basically yes, but this must be done via a script, e.g. a customer-specific UI action in JavaScript. In csv it's pretty easy (I'll create a simple example and attach it to this post next week). PDF is also possible, we have already implemented something like this here, but an open source framework must be used here. If you need specific support for a customer project there, please contact us.
Many greetings
webiq eg
04-05-2022 02:16 AM
Thank you, an example would be great.
04-29-2022 04:40 AM
Hello,
Any updates about the sample .CSV report file generation please? We are currently working on a project that requires this functionality.
Thank you.
05-02-2022 04:00 PM
06-02-2022 09:16 AM
Thank you so much, this was very helpful.
Is there any documention available for the data structure accessible through the JSON code (ex: ItemManager.readDirect)? I would like to build more functions through the code tool.
Thanks
06-02-2022 10:24 AM
you can find the JavaScript reference for programming here: https://www.smart-hmi.de/user/download/deliver/docs/documentation-webiq-visuals-reference-2.11-9600/...
the websocket api for accessing the server here:
https://www.smart-hmi.de/user/download/deliver/docs/documentation-dev-connect-apidoc-version-2.11.x-...
Many helpful "How-tos" in the Documentation area of our Website (after registration):
https://www.smart-hmi.de/user/docs
Best regards
webiq-eg
01-18-2023 04:14 AM
Hello @webiq-eg,
Do you have an example how to export to a PDF file generation with process values form data?
Warmest regards,
01-18-2023 08:41 AM
When it comes to PDF generation it's around 99% effort for using the PDF generation Node.js package and 1% code to retrieve data from WebIQ usually.
As a "PDF Report" is not standardized in any way because what shall be shown is completely up to you and differs from customer to customer and project to project you definitely have to create your own PDF report code.
To create a PDF you have to write code that defines which text/image/... to write where on which page. That's where most of the effort is required - retrieving the data is the same as for CSV and you should be able to use the code posted before to retrieve the data.
We've used the pdfmake library before - you can use any other PDF library as well, of course. Documentation is readily available:
Please understand that we cannot offer support for third-party libraries. You have to familiarize yourself with the library you wish to use to find out how to generate the report you desire.
01-18-2023 08:58 AM
How to generate PDF within WebIQ is on my list. I plan to create a How To article. When do you need it?
As said, it's just webiq-sk like:
01-18-2023 11:06 AM
@HmiGuide thats great news! we were hoping to find a solution as soon as possible. Looking forward to your post 😊
01-19-2023 06:44 PM
@OpenHere is the How-To article: WEBIQ - Create PDF document with pdfmake