Hi, I'm trying to apply a number of filters to a dataset at the same time, e.g. prior to calling the statement below I've created a superQuery array which filters $w('#dataset1') to show the records that match the superQuery ... then I'm trying to apply a second filter the records that match the .hasSome statement with an additional parameter stored in (newFilter)
Is this possible, as when I run the code it applies the .hasSome but not the newFilter?
$w('#dataset1').setFilter(wixData.filter(newFilter) .hasSome("clusterCodes", superQuery))
Hi,
Did you try or method?
https://www.wix.com/code/reference/wix-data.WixDataQuery.html#or
Roi.
I’m trying to run both filters at the same time ... wix.api seems to suggest this should be possible
use if statement's to determine which filter to run