Gosse Westra
Posts: 0
Joined: Tue Jun 16, 2015 8:05 pm

loading url from database

Hello again.

I have created a database collection where i store urls of pictures. How do i load a random url in an image component?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

loading url from database

Hello,

You can use parameter "skip" for that: https://devcenter.appery.io/documenta...
Just set there a random number, which you are able to get with Math.random() function: https://developer.mozilla.org/en/docs...

set min value=0, max=amount of items in you DB

Return to “Issues”