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.
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
Thank you, an example would be great.
Hello,
Any updates about the sample .CSV report file generation please? We are currently working on a project that requires this functionality.
Thank you.
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
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
Hello @webiq-eg,
Do you have an example how to export to a PDF file generation with process values form data?
Warmest regards,
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.
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:
@HmiGuide thats great news! we were hoping to find a solution as soon as possible. Looking forward to your post 😊