Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
Consider I have developed Thingworx UI. It has data shown in Label chart and a button beside it to generate reports for that label chart.When I click the button,report pdf having label chart(Graphical representation) with one weeks data has to be downloaded.Is it possible to do this using thingworx?
Solved! Go to Solution.
Hi,
I think it is possible, first you need to generate the report in a repository , I think an older PDF extension was creating pdf files from the mashups, if you don't have it then you need to create a custom extension generating pdf files.
After this, when clicking button (Click event) , you can run GetFileListingwithLinks service from the repository thing.
The service will return only the generated report, if you provide as input the name of the file.
Also, you can get the file by using REST call: https://<host>:<port>/Thingworx/FileRepositories/reporsitory_thing/my_report.pdf
Hope it helps,
Raluca Edu
Hi,
I think it is possible, first you need to generate the report in a repository , I think an older PDF extension was creating pdf files from the mashups, if you don't have it then you need to create a custom extension generating pdf files.
After this, when clicking button (Click event) , you can run GetFileListingwithLinks service from the repository thing.
The service will return only the generated report, if you provide as input the name of the file.
Also, you can get the file by using REST call: https://<host>:<port>/Thingworx/FileRepositories/reporsitory_thing/my_report.pdf
Hope it helps,
Raluca Edu
I understood the concept.But how do I generate reports in file repository.Does PTC provide any such software to connect to Thingworx file repository?Can you please eloborate on this?
I have got the extension in one of the posts.How do I use it?
Hi @krishnakomal123.
Unfortunately, we're unable to provide support for the PDF extension that has since been removed from the Marketplace.
Regards.
--Sharon