Using Repeater Dynamic Label to Filter/Search with Results shown on a Dynamic Page

Can anyone PLEASE help me with the using repeater dynamic label from collection to pass results to another dynamic page with results from another collection (over a 100 tries) ? This is what I have from my amateur reading of the APIs and it is not working. It works but it is only sending (setItem) the Static Label of the repeater. I want the fetched Dynamic Label (getItem). Thanks.

import {local} from ‘wix-storage’;
import wixLocation from ‘wix-location’;
import wixData from ‘wix-data’;

$w.onReady( function () {
let itemObj = $w(“#dataset2”).getCurrentItem();
$w(“#button1”).onClick( (event) => {
$w(“#button1”).label = itemObj
let word = $w(“#button1”).label;
local.setItem(“searchWord”,word);
wixLocation.to(/page/resultpage);

}); 

});

SOLVED! Using Repeater Dynamic Label to Filter/Search with Results shown on a Dynamic Page

After 9 days of over 100 attempts I resolved this issue by luck from trying. Here it is shared and open to a better way if anyone knows :

$w.onReady( function () {
let itemObj = $w(“#dataset2”).getCurrentItem();
$w(“#button1”).label = itemObj;
$w(“#button1”).onClick((event, $w) => {
let word = (“title”, $w(“#button1”).label);
local.setItem(“searchWord”,word);
wixLocation.to(/page/resultpage);
});
});