Hello Guys!
I had it already 2 times but I do something which makes it unworkable.
I want to get the element from the array by items[i] … but its throwing out the Object is undefined.
It should be a category system with tags.
Please if you can help me
function setTags ( way ) {
let items = [];
if ( way === true ) {
console . log ( “debug 1” );
$w ( “#categories” ). getItems ( 0 , 300 ). then (( result ) => {
result . items . forEach (( tI ) => { items . push ( tI . title ); });
console . log ( items );
});
**for** ( **var** i = 0 ; i <= 6 ; i ++) {
**var** i2 = parseInt ( local . getItem ( "lastShownSelectionTag" ));
$w ( '#selectionTag' + ` ${ i }`). label = items [ i ];
local . setItem ( "lastShownSelectionTag" , parseInt ( i2 + 1 ));
}
}