So I already know how to search the WIX database and show the results in a table or display the results in a repeater on the same page as the search fields. However i want to display the search results on a totally different page, Is that possible? Can ya’ll help me out please.
This is the code used to search and display the results in a Repeater on the same page as the search boxes. I want to modify this code to display the results in another Repeater on another page.
import wixData from ‘wix-data’;
$w.onReady( function () {
//TODO: write your page related code here…
});
export function buttonSearch_click(event, $w) {
wixData.query(“Sales”)
.contains(“bedroom”, $w(“#dropdownBed”).value)
.contains(“bathroom”, $w(“#dropdownBath”).value)
.contains(“location”, $w(“#dropdownMap”).value)
.contains(“type”, (“sale”))
.contains(“pricePoint”, $w(“#dropdownPrice”).value)
.find()
.then(res => {
$w(‘#repeaterMain’).data = res.items;
});
}
Hi Rhodney!
Try and read about our Wix-Storage API .
Using this method you can implant data in the user local storage and use it in another page.
Hope it helps.
Best of luck!
Doron.
Hi Rhodney did you get a solution