I have my dataset configured to show two items at a time based on the filter that I have set.
Filter : Sold is not true
I have set these filters through the dataset itself.
On the preview all is working fine, I can see no empty repeater items
However on the live site, I get this:
The only code I have on this page, is the following:
\\ This is for the UnderContract banner to appear when a boolean
in the database is selected \\
$w.onReady(() => {
$w("#dynamicDataset").onReady(() => {
$w("#repeater3").forEachItem(($w, itemData, index) => {
if($w("#text155").text === 'true') {
$w("#button6").show();
} else {
$w("#button6").hide();
}
});
});
});
\\This is simply to view more items when view more button selected \\
let numberOfItemsToDisplay = 2;
let increment = numberOfItemsToDisplay;
export function button4_click_1(event, $w) {
let count = $w("#dynamicDataset").getTotalCount ();
numberOfItemsToDisplay = numberOfItemsToDisplay + increment;
if (numberOfItemsToDisplay >= count) {
$w('#button4').hide();
}
};
I have made sure sync my database with the live site, the dataset permissions are read only & I have cleared my cache on my browser (I have no idea if that is relevant).
Any help would be greatly appreciated!! Pretty Pretty Please.
:)
hello Yisrael (Wix) please help me this is my site link https://www.catch-world.com/copy-of-example-5 is there any code for both filter option active simultaneously here is the code what i create, please correct it
import wixData from 'wix-data'; $w.onReady(function () { //1000;write your page releted code here... });
export function dropdown1_change_1(event) { let searchbrand = $w("#dropdown1").value; $w("#dataset1").setFilter(wixData.filter().contains("districts" , searchbrand)); } export function dropdown2_change(event) { let searchbrand = $w("#dropdown2").value; $w("#dataset1").setFilter(wixData.filter().contains("services" , searchbrand)); }
i am facing a similar problem, i have a repeater showing images of only first row in a mobile view and from second row till the end, no image there only text reflects, however in the desktop view it all works fine, i have checked blank rows in live data or any other discrepancy, but found all compliant as per above recommendations
Yes I found blank entries in my collection but I am still testing and these happened by itself since I am now working on a copy of my site. So nobody interact with the site
Hi,
I have been using my code for sometime now and suddently I get additional blank lines in my Collection and it creates blank lines on my repeaters.
I checked every steps of my code and also tried to reproduce the problem without any luck.
Seems that something has changed that creates this could be my code but I had this code working for sometimes without any issue.
Thought I reported it too.
Pierre Lacasse
Hello everyone, I have the same problem about Repeater : in Preview mode, it's fine, but in live Site the Repeater doesn't appear... I've tried to sync my database again, to add new Repeater, to copy a repeater that works good on the other page, etc, but I couldn't find a problem. Please note that in the repeater that doesn't work, there are: button linked to pdf file, 2 texts linked to texts, and the containter to image file (optional).
I wanted to leave container in one color and not connected to database, but I read your comments so I connected as well to image file. The page where the Repeater doesn't work: https://raidsglobetrotter.wixsite.com/raids-globe-trotter/reportages (connected to the database "REPORTAGES" The page where the Repeater works good: https://raidsglobetrotter.wixsite.com/raids-globe-trotter/albums-photo (connected to the database "GALERIES-PHOTOS" I'm still waiting to transfer my domain... :) Thank you in advance for your help!! Best regards, Irhad
THANK YOU! It didn't occur to me that I had to go to "Edit Live" to delete it. Saved me hours of fretting.
Alright, good to know! Thank you so much!
I suspect that it is syncing correctly. The "sync from sandbox to live" copies all records from sandbox to Live that do not already exisit in Live. It does not overwrite or delete entries in the Live database.
Hello again,
Thanks for checking - how come it doesn't sync correctly? Should I pick another option than the top one (copy to...)
In the Live database, row 2 is empty:
This would cause a blank repeater item.
Thank you!
It's http://borders-territories.space
The concerned page is 'Team'.
Please post the URL of your site. Only authorized Wix personnel can get access to your site in the editor.
Hi Yisrael,
Thank you! However, syncing doesn't do the trick... Any other ideas? :)
Helena
Hi Helena,
The sandbox (preview) database is not the same as the Live database. You can sync your sandbox to the Live database and you'll then get the same results in Live as in Preview.
Hello!
I have a similar issue, without any blank fields in the data collection!
Everything looks good in the preview (img 1), but then on the live site there is a blank item at the top of the repeater (img 2)... Any suggestions? Also pasting the code for the page.
Thank you!
import wixData from 'wix-data'; $w.onReady(function () { $w("#biobutton").onClick(async (event, $w) => { const bio = await wixData.get('Team', event.context.itemId) $w('#textgroup').show(); } ); } ) export function closebutton_click(event, $w) { $w("#textgroup").hide(); }
You definitely get all the sugar !!
Ahh thank you so so much!
It was literally that simple of a fix & here I was racking my brain for what seemed like hours hehe!
I was syncing my database to the live however I was only copying not overwriting so the blank space must have been hiding there for a little while hehe
Thank you once again !!
Hey Hannah,
Seriously? "Pretty Pretty Please", but what about "with sugar on it"?
Welcome to the Wix Code forums. I was able to read the site's URL and I took a peek inside. I see that in your Live Resale database collection, you have a blank line:
Is it possible that the blank line is causing the second repeater item to be empty?
Thanks,
Yisrael