How do I refresh my repeater content on the page after a new record is submitted? I used the following code but the repeater is not refreshing with the new item. What am I doing wrong?
export function appcreateButton_click(event) { $w('#newappBox').hide(); $w('#newappButton2').show(); $w("#dataset1").refresh() .then( () => { console.log("Done refreshing the dataset"); } );
Anyone?
Hello @Eric, are you connecting your repeater manually (through elements) or by code? Because if it is manually connected, it should refresh the repeater as soon as the dataset is refreshed.
Otherwise, you should assign a new data to the repeater using the data property, like so:
$w("#myRepeater").data = newData
Let me know!