Passing dataset object to openlightbox function

Hi,

I can pass a string or similar objects to the function via data, but I can’t pass dataset object.

I have a repeater on the main page and lightbox is used to add data to it. But after data is added, repeater doesn’t show new item until page is reflected or data set is manually refreshed.
So my plan is to save item from the lightbox, and right after that perform refresh on the dataset. For this I need a reference to a dataset in the lightbox context…

So any ideas how to pass the dataset object? Or am I missing something with the repeater thingy?

Thanks!

Hi,

You can pass the current item object to the lightbox, then return it back to the page once done.
I used the following code and was able to see the item object inside the lightbox:

wixWindow.openLightbox("Test", $w('#dynamicDataset').getCurrentItem())

how to receive the passed data set in the lightbox code? I have places a dataset object in the lightbox and need it to be assigned to the dataset obtained from the page. How can I do that?