Hi, I have a database called ppocc_gallery (dataset1Gallery) that is connected to ppocc_members (dynamicDatasetMembers). Each time I have a member add images to the media gallery field, when it is displayed only the last entry of images they made is displayed. Is there some corvid coding I can add so that all the images in all the media gallery fields that they have created is displayed? Thanks in advance!
Here is the code I am using to display the gallery:
import wixData from ‘wix-data’;
$w.onReady(() => {
$w(‘#dynamicDatasetMembers’).onReady(() => {
var studioNameId = $w(“#dynamicDatasetMembers”).getCurrentItem()._id;
$w(‘#dataset1Gallery’).setFilter(
wixData.filter()
.eq(‘studioNameId’, studioNameId));
});
});
Here is a photo of the ppocc_gallery showing the multiple records of the same member and the images in each mediagallery field
