Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
Hello Community, So i start my experience and fetch the model from thingworx and then jump to new view and there i have this below code to show the sequences in the list but unfortunately it works perfectly fine in browser but not in view app. The view app is unable to show the list of sequences to select.. Can someone please see that what is a problem in the below code? or how can i resolve this issue. As you guys can see binding also in the below from model to show the sequences. The modelLoaded function is not getting executed and that is an issue.
@RolandRaytchev may be you have an idea...?
angular.element(document).ready(function () {
$timeout(function () {
$scope.setWidgetProp('model-1','src',$scope.app.params.modelPVZFile);
$scope.$applyAsync();
$rootScope.$on('modelLoaded', function() {
$scope.view.wdg["spinner-1"].visible = false;
console.log("Model and Sequence both are loaded!");
});
}, 100);
})
Solved! Go to Solution.
sorry i forgot to add Model Target or Spatial Target. Thats why it was not working. this is solution
sorry i forgot to add Model Target or Spatial Target. Thats why it was not working. this is solution
Hi @MA8731174, that is a good point. The preview should simulate the experience behavior in Studio UI is not consitent enough so that but its allow to preview the project when it does not have any targets definition. No errors or warning. The most functionality is working. That may lead sometimes not to detect that targets defintions is missed.
yes you are right! Thank you for supporting actively.