Hi, Steve,
your example is awesome, but i still have a problem. I followed all the steps and 100% copy your original code, when i previewed, it said " Wix code SDK error: The text parameter that is passed to the text method cannot be set to the value 7. It must be of type string ", refer to $w(‘#itemCount’).text = results.totalCount;
// When we apply a filter (see updateRepeaterFilter()) this gets called to reload the drop downs
$w(‘#servicesDataset’).getItems(0,$w(‘#servicesDataset’).getTotalCount())
.then((results) => {
// Update our dropdown object with the new data record list
dropDownRecords.updateRecordList(results.items);
// Update the counter on screen
$w(‘#itemCount’).text = results.totalCount;
// Load/Reload dropdown data sets from our dropdown list data object
$w(‘#serviceList’).options = dropDownRecords.servicesList();
$w(‘#inverterTypeList’).options = dropDownRecords.invertersList();
$w(‘#supplierList’).options = dropDownRecords.suppliersList();
});
I try to use toString() to fix it, but didn’t work. Would you please help on it?