Hello Everyone
Good Evening,
I am facing problem in logging properties there are some values which are repeating after I carry out the experience multiple times.
PFA attached image in which arrows are shown on the readings which are repeating when I consume the AR experience on my Ipad on view app for multiple times.
I just want to log the properties which are entered by the user on vuforia view app.
Below is the code I am using to write properties from Vuforia Studio to Thingworx:
I have written 2 services for pass & fail
Vuforia Studio JS Code:
$scope.SetStartStagePass = function (width) {
var TWXmodelID = 'Camera_UserStats_DT';
var serviceName = 'GetSummary';
var d = new Date();
var parameters = { 'Emp' : $scope.app.params.empID, 'PartNumberInput' : $scope.app.params.partNo, 'Stage' : 'Step-' + j, 'StepValue' : 'Pass', 'DefectInput' : 'NA',
'StepImageInput' : $scope.view.wdg['camera'].image};
//console.log("Starting UPLOAD using image size " + width);
twx.app.fn.triggerDataService('Camera_UserStats_DT', serviceName, parameters);
}
$scope.SetStartStageFail = function (width) {
var TWXmodelID = 'Camera_UserStats_DT';
var serviceName = 'GetSummary';
var d = new Date();
var parameters = { 'Emp' : $scope.app.params.empID, 'PartNumberInput' : $scope.app.params.partNo, 'Stage' : 'Step-' + j, 'StepValue' : 'Fail', 'DefectInput' : $scope.app.params.defect,
'StepImageInput' : $scope.view.wdg['camera'].image};
//console.log("Starting UPLOAD using image size " + width);
twx.app.fn.triggerDataService('Camera_UserStats_DT', serviceName, parameters);
}
Thanks in Advance.