Hey,
I am using the following code to Query a Dataset to another Database and then getting the values
export async function dataset1_ready() {
$w("#repeater1").forEachItem( ($w) => {
wixData.query("ArrivalsDatabase")
.eq('fileNumber', $w("#file").text)
.find()
.then((results) => {
let item = results.items[0];
$w("#repeater1").forEachItem( () => {{
$w("#email").text = item.email;
$w("#arep").text = item.airportRep;
$w("#hrep").text = item.hotelRep;
$w("#lang").text = item.clientLanguage;
}
});
});
});
}
I would now like to update the original Database with these new values
How should I go about it ?