{Solved} Changing the Value Of Database From Repeater

Hai Russian-Dima,

Glad you have helped here !

But there is more !!!

This a part of my code of the page -

export function button4_click(event) {
 let currentItem = $w("#dataset2").getCurrentItem();
    wixWindow.openLightbox('Edit Status', currentItem)
}

Lightbox code -

export function button2_click(event) {
 let receivedData = wixWindow.lightbox.getContext();
    console.log(receivedData);

 if (receivedData) {
 let toUpdate = {
 //update data
      };      



        wixData.update("UserStatuses", receivedData._id)
            .then((results) => {
                console.log("item was removed");
                wixWindow.lightbox.close('ok');
                wixLocation.to(`/statuses-page`);

            })
            .catch((err) => {
                console.log("error: " + err);
                wixWindow.lightbox.close('error');
            });
    }
 else{
        console.log('item was not sent');
    }
}  
  1. How can I update the two values received from the page ???

Thanks ,
Ajith