Has the model a sequence?
Hello,
I want to specifiy if the model has selected a sequence.
For example: If yes > show button A, if no > show button B.
I tried different ways, yet without success.
Thank you!
Hello,
I want to specifiy if the model has selected a sequence.
For example: If yes > show button A, if no > show button B.
I tried different ways, yet without success.
Thank you!
Hello Lily,
I solved it today. Function decide base on model widget parameter steps which is undefined when model has not a sequence (otherwise parameter is a number).
$scope.selectButton=function(){
var pom = $scope.view.wdg['model-1']['steps'];
var ButtonA = false;
var ButtonB = false;
console.log(pom);
if (Number.isInteger(pom)){
ButtonB = true;
}
else{
ButtonA = true;
}
$scope.view.wdg['visibility']['visible']= ButtonA;
$scope.view.wdg['sequence']['visible']= ButtonB;
}
The function is started when thingmak is tracked.

Best Regards,
Tomas
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.