Skip to main content
15-Moonstone
April 21, 2020
Solved

Report generating from Thingworx UI

  • April 21, 2020
  • 1 reply
  • 1975 views

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?

Best answer by 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

1 reply

17-Peridot
April 22, 2020

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

15-Moonstone
April 23, 2020

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?