cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

How to Execute ThingWorx Service from Vuforia Studio

Aditya1702
15-Moonstone

How to Execute ThingWorx Service from Vuforia Studio

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.

ACCEPTED SOLUTION

Accepted Solutions

add the line

me.InspectionAddData();

to your service InspectionStep

View solution in original post

6 REPLIES 6

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

Aditya1702
15-Moonstone
(To:Rocko)

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.

 

 

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?

 

Aditya1702
15-Moonstone
(To:Rocko)

Hi

 

I am using Inspection Service to fetch data from vuforia studio to thingworx & using InspectionAddData service of thingworx to enter data into stream.

 

Can you guide be how to call InspectionAddData service inside InspectionStep?

 

 

 

Hello,

 

Can anyone help me out?

 

 

add the line

me.InspectionAddData();

to your service InspectionStep

Announcements


Top Tags