In this the getMyUserData.data.test MySQL query, each column has an ID. Users can select IDs which then get added to array.
Is it possible to make it so the repeat only creates itself where there is the ID in the array?
Using something like <li dmx-repeat:repeattest="getMyUserData.data.test" dmx-show="(projectID == **myArrayHere**)"> works, but only for the first ID in the array, and not the rest.
I know I could use filters on the query, but the same serverconnect is used in multiple places for different things, so it wouldn’t be feasible, my only other option is to create similar serverconnects where I need them, but I’d rather do it this way since its much more clean (and less of the same queries)
I’ve just managed to fix it the minute you sent that.
The problem seems to be that I was setting the array contents when the serverconnect that gets the data for the repeat loads (Success Dynamic Event), so when the repeat was getting its data the array was actually empty, as it only updated afterwards. I guess this doesn’t automatically update.
I moved some things around, and now it works correctly.