loading url from database
Posted: Sun Apr 24, 2016 11:31 pm
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?
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
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?
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