List of all Views in array
Hello everyone,
I have programmed an app, that checks the code, that is scanned and looks for a view that complies to that. Right now, I write a list of the views by hand, but it would be nice to have them in an automaticly generated array. Does anyone know how to get that?
//first create an app parameter (e.g. ScannedCode) and bind the scanned value to it.
var ScannedVal = $scope.app.params.ScannedCode;
var arr = ['Home', 'help','about','users']; //this should be generated automaticly
var arroutcome = arr.includes(ScannedVal); //checks if ScannedVal is part of the array
if (ScannedVal!=undefined && arroutcome==true){
twx.app.fn.navigate(ScannedVal);
}
else....
Thanks and greetings
whity

