vuforia studio service calling method approach
Hey Community, So I have this service and it has four parameters and one of them is intervalCount, which i have given here 150 but now i want to give an additional interval which would be 50 so i want to run this service twice with 150 and 50 but on success both will give me results. I am confused a bit. what can be the best approach here should i change the service architecture on the thingworx side? to accept as an array or should i do something on experience side to make it run. any ideas are welcome. this service runs everytime i start the expereince and what this service is doing that it takes interval count and divide by total entries to give me modus and if its 0 then i know its 150 product so that i do something on exp side
thanks
$scope.every50thEntryCounter = function () {
twx.app.fn.triggerDataService("QControl.Data.Helper", "intervalCountForProductCategory",
{
// Hand over variables to the service
lineName: $scope.app.params['lineName'],
Location: $scope.app.params['lineLocation'],
productCategory: $scope.app.params['productCategory'],
intervalCount: 150,
}
);
$scope.$root.$on("intervalCountForProductCategory-complete", function (evt, arg) {
let result = $scope.app.mdl["QControl.Data.Helper"].svc["intervalCountForProductCategory"].data;

