I’ m try to make series of data in database and want to copy and paste to another database when the clicked event happen. So I’m thinking that I should use the hook or other functions. But I don’t know how to use the parameters of function.
So What i want to know is, how to get the specific paratmeters(item, context) of a cell in database.
To get the field value for the dataset item that you want to use in the code, then simply check the field in your dataset.
To learn more about dataset hooks, have a read of these:
Other posts about moving data from dataset to dataset:
Hey Guys,
I have this code adding repeater items to another database.
export async function checkout_click(event, $w) {
let user = wixUsers.currentUser;
let userId = user.id;
let count = $w("#dataset1").getTotalCount();
...
Or if you are wanting to carry on with info and move straight onto another page or lightbox with that data, then have a look at the following links:
https://www.wix.com/code/home/forum/community-discussion/sending-data-to-a-form-inside-a-lightbox
https://www.wix.com/code/home/forum/community-discussion/dynamic-page-lightboxes
https://www.wix.com/code/home/forum/community-discussion/auto-populate-lightbox-with-wix-code
https://www.wix.com/code/home/forum/community-discussion/how-to-pass-a-variable-value-from-a-page-to-a-lightbox
Code Examples are shown in both of these Wix Code API listings:
https://www.wix.com/code/reference/wix-window.html#openLightbox
https://www.wix.com/code/reference/wix-window.lightbox.html#close
Wow Really thanks to you about information that you gave. THANK YOU!!!