Hi Everybody
This is a peculiar problem. If I pass values to subb and locc then the table populates without issue. However, if my 2 random() pass values then the table refuses to populate even though those values being passed through are valid.
Anyone know the solution?
Thanks
B
export function table(subb, locc) {
let loc = locc;
let sub = subb;
$w('#dataset1').setFilter(wixData.filter()
.and(wixData.filter()
.eq("tlocId", loc)
.and(wixData.filter()
.eq("subId", sub)
)
)
).then(() => {
**let** count = $w('#dataset1').getTotalCount();
})
. **catch** ((err) => {
console.log("ERR : " + err);
});