Hello,
I have added the same dataset to both of my pages.
On the first page I update the dataset based on the user input:
// The dataset already start with the elements and we only update them
let count = $w("#memberDataset").getTotalCount(); $w("#memberDataset").getItems(0, count) .then( (result) => {
let items = result.items;
if ($w('#codingSwitch').checked === true) {
items[0].passionParam = $w('#codingPassionRank').selectedIndex + 1;
items[0].expertiseParam = $w('#codingExpertiseRank').selectedIndex + 1;
} else {
items[0].passionParam = 0;
items[0].expertiseParam = 0;
}
})
// Saving the changes $w("#memberDataset").save() .then( (item) => { } ) .catch( (err) => { let errMsg = err; } );
After moving to the second page, when I try to go over the dataset, it is gone, not even the initial parameters that were stored there:
let count = $w("#memberDataset").getTotalCount(); $w("#memberDataset").getItems(0, count) .then( (result) => { let items = result.items; console.log(result); if (items.length > 0 && items[0].passionParam === 0 && items[0].expertiseParam === 0) { $w("#codingIncomeptence").show(); } })
However, if I go directly to the second page the stored parameters can be found.
So I guess somehow my update deleted all of it.
Thank you for any kind of help