Hi @AlexK ,
so far I know this list is a static list . During the Vuforia View session you can not add any files to the Vuforia Studio Project folder(loaded already in the view app) So that when you have a list in Vuforia Studio it will not change during the view session
I have a similar issue , and solve this issue by creating a list as text file (I think better will be a json file) and then loading it when opening the project. something like this:
my list "folderList.txt" in the upload folder
1.6,sonne1.mp4
2.3,ForBiggerJoyrides.mp4
5.6,20201103_173339_HoloLens.mp4
and used then such code like this:
$scope.app.files=[]
const directory = "app/resources/Uploaded/"
const file="folderList.txt"
//=====================================================
$scope.$on("$ionicView.afterEnter", function (event) {
$scope.app.getListObj();
})
//=======================================================================
function List_items(display,value,type,size) {
this.display = display;
this.value = value;
this.type=type;
this.size=size;
return this;
}
//////=========================================================
$scope.app.getListObj=function(){
var resp = null
const fullFile=directory+file
function reqListener() {
// console.log(this.responseText);
const result = this.responseText.split(/\r?\n/);
result.forEach(element => { console.log(element );
let size = parseFloat(element.split(",")[0]);
let fname =element.split(",")[1];
try{
$scope.app.files.push(new List_items(fname,directory+fname,fname.split('.').pop(),size))
} catch(e){ console.error(e); console.warn(element)}
});//for elem
$timeout(()=>{
$scope.setWidgetProp('select-1','list' $scope.app.files )
$scope.setWidgetProp('select-1','value', $scope.app.files[0].label)
},250)
}
const req = new XMLHttpRequest();
req.addEventListener("load", reqListener);
req.open("GET", fullFile);
req.send();
}//end of getListObje
//=====================================================
In my case I used this list for some automatic play in the background and not to display it. But I think the same approach could be used also to display the list e.g. in select widget. This was my workflow but possibly there could be a better solution and somebody could share it here. Thanks