Hi,
I had this code that was working fine on my pages, and now, its seems not getting any data since the update WIX did.
// For full API documentation, including code examples, visit https://wix.to/94BuAAs
import {session} from 'wix-storage';
let Gender = session.getItem('itmGender');
$w.onReady(function () {
let donCategorie = $w('#dynamicDataset').getCurrentItem();
console.log(donCategorie);
if (Gender === "Couples") {
$w('#text7').text = donCategorie.prenomfille + " " + donCategorie.nomfille;
$w('#text8').text = donCategorie.prenomgarcon + " " + donCategorie.nomgarcon;
$w('#text9').text = donCategorie.cpafille + " / " + donCategorie.cpagarcon;
} else {
$w('#text7').text = donCategorie.prenom;
$w('#text8').text = donCategorie.nom;
$w('#text9').text = donCategorie.cpa;
}
});
Please Help me, all site is not working anymore because of those changes made by WIX and I have a lot of traffic currently on my page.
Realized that you have to do an onReady on the dataset from now on: // For full API documentation, including code examples, visit https://wix.to/94BuAAs import {session} from 'wix-storage'; let Gender = session.getItem('itmGender'); //$w.onReady(function () { $w.onReady(() => { $w('#dynamicDataset').onReady(() => { let donCategorie = $w('#dynamicDataset').getCurrentItem(); console.log(donCategorie); if (Gender === "Couples") { $w('#text7').text = donCategorie.prenomfille + " " + donCategorie.nomfille; $w('#text8').text = donCategorie.prenomgarcon + " " + donCategorie.nomgarcon; $w('#text9').text = donCategorie.cpafille + " / " + donCategorie.cpagarcon; } else { $w('#text7').text = donCategorie.prenom; $w('#text8').text = donCategorie.nom; $w('#text9').text = donCategorie.cpa; } }); });