I need to send some info back to the Thingworx server from a Hololens experience.
Binding an 'APPLICATION EVENT' to the service on a thing in the 'EXTERNAL DATA' (all done in the right hand pane) is limiting and although works in preview and in 2D expereiences, it is not working for me in Hololens experiences.
I thought I would use a programmatic way to call the TWX service (as seen in others posts):
var result = $scope.app.mdl['IIM.Workflow.REST'].svc['ConsumeAnswerToQuestion'] ;
This doesn't work in hololens - even if I've set the service to Invoke on startup - which appears to be needed before the service can be sucessfully referenced in js.
For now, I've found another way of calling a thingworx service from JS - which appears to be robust, and can asyncronously deal with response when it arrives back :-
Graham Taylor As ThingWorx Service (ConsumeAnswerToQuestion) returns result in specific datatype, we need to add "svc['...'].data" to get the result stored in a variable. If the service returns 'infotable', we need to add data.<name-of-the-column>