hello, bubblers
I have a issue about display some photos with repeating group.
I want to display some photos from the List of images in the database on a page, how can I do that? The way I tried it was with a repeating group, but it only displayed one photo.
Hello @shota
- Create a data-type with field type image
- Create a few entries in the dB
- Set the repeating group to search for that data type
- Add an image visual element to the row of the RG and set it to current cells thing image value
- Preview your app
Are there actually any photos stored in the database?
Try this:
This is because you set pics to be a list. The above expresion will show the first uploaded pic.
If it were a single pic field then current cells photo’s pic would do.
thank you for your advice.
There are three photos in the database and I want to display all of them to the repeating group.
how can I do that?
Sure no problem
Please follow these precise suggestions:
- Datatype with one image field
- Create several entries in the dB
- Setup the RG
- Preview your page
The RG is not styled that is why you only see the four pics and no lines.
Hope this is clear now
thank you for the answer but I’d like to use “list of images” in RG
I see. I guess you want to show the several pics within a cell of a photo. If so then you can achieve this using a nested repeating group inside the main repeating group.
Best of luck with your app
This topic was automatically closed after 70 days. New replies are no longer allowed.