Sample Projects and Use Cases > Use Case: 3D-Guided Service Instructions > 3D-Guided Service Instructions 201: Use JavaScript to Highlight Parts and Create Ionic Popups > Appendix 3: ThingWorx External Data Services Vuforia Studio Events
  
Appendix 3: ThingWorx External Data Services Vuforia Studio Events
Event Name
(evt.name)
Description
Arguments and Usage Notes
Example
(servicename)-begin
Triggered by start of a ThingWorx service defined in the Vuforia Studio project.
No arguments returned, only event.name.
* 
event is broadcast to root scope. Therefore, event must listen with $scope.$root.$on, not just $scope.$on.
$scope.$root.$on('myTWXService-begin', function(evt, arg) { $scope.view.wdg['label-1']['text'] = $scope.view.wdg['label-1']['text'] + " event name: " + evt.name;});
(servicename)-complete
Triggered by successful completion of a ThingWorx service defined in the Vuforia Studio project.
See modelLoaded
See (servicename)-begin
(servicename)-end
Triggered by completion of a ThingWorx service (successful or unsuccessful).
Arguments returned include: event (name), target (model-1, modelItem-1, or 3DImage-1, etc.), parent (null), edata (JSON object containing occurrence property value for model items as defined in the PVZ. For example, /0/0/18)
See (servicename)-begin
(servicename)-failed
Triggered by failure when calling a ThingWorx service.
Event includes the widget’s Studio ID in tergetScope._widgetId. No args data returned.