@tony-brunsman Thanks again bud. I just can’t seem to figure out the syntax here.
I’ve changed it around a few times but nothing seems to work. Here is some of the console log.
This is my current code inside my onready function. Also, Should the repeater be connected to the collection? In my other code it had to not be connected.
$w ( "#filter" ). onClick (( event ) => {
$w ( "#filter" ). onClick (( event ) => {
**const from** = $w ( '#fromDate' ). value ;
const to = $w ( '#toDate' ). value ;
const filter = wixData . filter (). between ( "_createdDate" , from , to );
wixData . aggregate ( 'tutorial_logs' )
. filter ( filter )
. group ( "name" )
. count ()
. run ()
. then (( results ) => {
$w ( '#repeater' ). onItemReady (( $item , itemData , index ) => {
$w ( "#repeater" ). data = results . items ;
$w ( "#repeater" ). show ();
});
console . log ( "results" , results );
});
})
})
