Skip to main content
16-Pearl
April 2, 2024
Solved

How to Execute ThingWorx Service from Vuforia Studio

  • April 2, 2024
  • 1 reply
  • 2419 views

Hello,

 

I am using stream to store values. 

It's working but the problem is after every single record I need to manually press the execute button in ThingWorx service to store the data into Stream.

 

Eg. I capture record1 then need to manually press execute button of ThingWorx InspectionAddData service.

Capture record2 again manually press the execute button in ThingWorx InspectionAddData service.

Capture record3 again manually press the execute button in ThingWorx InspectionAddData service.

 

Now the problem is, how can I trigger execute button of ThingWorx InspectionAddData Service from Vuforia Studio?

 

Thanks & Best Regards,

Aditya Gupta.

Best answer by Rocko

add the line

me.InspectionAddData();

to your service InspectionStep

1 reply

Rocko
19-Tanzanite
April 2, 2024

Why don't you use the triggerDataService as described in the Help? https://support.ptc.com/help/vuforia/studio/en/#page/Studio_Help_Center%2Fcoding_twx.html%23

16-Pearl
April 2, 2024

Hi,

 

I have written a function to call the service in Vuforia Studio and I am calling it on the click event of a button widget but it is still not working. '

I have attached the reference image.

 

Also note that the service I want to call has  no inputs & outputs, its just a service to enter the data into ThingWorx Stream.

 

 

Rocko
19-Tanzanite
April 2, 2024

In you other post you wrote you enter the data using the service InspectionStep. https://community.ptc.com/t5/ThingWorx-Developers/Property-values-are-repeating-while-using-QueryPropertyHistory/m-p/940291/highlight/true#M66168

 

Why don't you call InspectionAddData  from inside of InspectionStep?