{Solved} Changing the Value Of Database From Repeater

Are you trying to send data to your lightbox and it does not work, or what is the problem ?

Here an little example, how it can be done, to send data to lightbox, by using “wix-storage”

https://russian-dima.wixsite.com/meinewebsite/lightbox

The lightbox don’t open
and I don’t know if the data is send or not

Thanks,
Ajith

@russian-dima Can you point out the mistake or if there is no way, I will use wix storage. But I think it don’t have much storage

Hai Russian Dima

This Code Works Now !!!

Page –

$w('#dataset2').onReady( () => {
     $w('#repeater1').forEachItem( ($item, index) => {
       $item('#button4').onClick((event) => {

 let clickedItemData = $item("#dataset2").getCurrentItem().status;
 let clickedItemData1 = $item("#dataset2").getCurrentItem().image;
 let clickedItemData2 = $item("#dataset2").getCurrentItem().fullName;

   console.log(clickedItemData);
   console.log(clickedItemData1);
   console.log(clickedItemData2);
 
 let lightboxdata = {
 "status": clickedItemData,
 "image" : clickedItemData1,
 "fullName" : clickedItemData2,
 
    }
 
     wixWindow.openLightbox('EditStatus', lightboxdata);
    })
    })
     } )
 

Lightbox –

import wixWindow from 'wix-window';

$w.onReady( function () {

 let received = wixWindow.lightbox.getContext();

 $w('#textBox1').placeholder = received.status;
$w('#image3').src = received.image;
 

} );

Well done my friend😁 i hope you could learn something.
And do not forget to like it, if you really liked it :wink:.
Good luck with your further project.

@russian-dima Check On My New Post – Link – https://www.wix.com/corvid/forum/community-discussion/linking-a-button-to-dynamic-page-through-code?origin=member_posts_page

@ajithkrr
Ajit i am exausted because of you xD🤣

@russian-dima :grinning:
This (kindly) https://www.wix.com/corvid/forum/community-discussion/linking-a-button-to-dynamic-page-through-code?origin=member_posts_page

also (kindly) https://www.wix.com/corvid/forum/community-discussion/repeater-item-onclick-function