@anthonyb Hey anthony, could you help me with something? I have the same count code you mentioned already working. Im usying it for counting items form a form submission dataset.
This form works via "submit button" seted with an user input basic text. User wirite dawn order and dataset is collecting it. a second dataset then display this order text and displays it in a repeater.
My submition button is already 'coded' to then() refresh the two used datasets afterclick, so the repeater shows the last submission text right away, and this is working well.
However the count number is not refreshing. Since the count code is geting info from the same dataset that display in the repeaters, and the button refreshs it, shouldn't the counter be refreshing too?
Is there a way to force this number to refresh?
Here is the submission button refreshing code I used:
export function button16_click(event) {
///refresh the datasets
return $w("#dataset1").save()
.then(() => {
$w("#dataset1").refresh();
$w("#dataset2").refresh();
})
.catch( (err) => {
let errorMsg = err;
console.log(errorMsg);
});
}
Thank you verry much for any help! (and sorry for any mistakes, my english is not all perfect yet)