OMG what horrible conflicts. Peoples… Stop with the telling us to go and read something because, #metoo, I am a coder from way back and some of this stuff INCLUDING your tutorials are absent some pretty vital information. I know you guys are trying to help but look how much your first asker went through. Look and listen to him and us and give us the right answers the first time.
for example what is a function declaration line? cant you just paste the code here for us to use and be done with it?
Well I had to abondone trying to delete a row - the above help was so confusing- but if anyone can help me achieve this i would be very grateful

What i dont understand is why all the top stuff shown here exists in the first place if one has to remove it all as instructed such that the import line becomes the top first item of the code list? I too am struggling with this concept and frankly am about ready to hang it up and hire a code guy for about 5 minutes to fix my little issues and be done with it so we get to the end result which is a functioning website enhancement. This is a LONG way from my BASIC days and I am grateful, but FRUSTRATED when a known relatively simple function doesnt work, or, that the module itself isn’t already a selectable item in the Wix button or table portfolio to select from.
I’ll keep working on this and come back with more questions and sampling, and hope our helpers will look at our stuff to help us get it right, because once we get it right we bother you, less.
art are you in UK? What is your skype? lets help each other. I am in Chicago area.
Ok anyone who’s reading please comment: In my application,I was going to say my table works differently in preview than actual live use. However, it has become apparent THAT IS NOT TRUE >>>>>>>>>>> there is a long delay <<<<<< before change becomes reality from editor to actual website.
my application DOES work in actual website use BUT, now I see that my changes to the table below (btw it is one table split in half; both tables are reading the same collection different fields), are NOT BEING PASSED to the collection db when I click the submit button. Please help me determine why that is happening.
When I go to look at the collection to see if the new line item info has been passed, it is NOT in the collection, nor the Live view from the editor, nor after a page REFRESH in Chrome. The data just… woosh is gone.
Click on a row, items in table are reflected in user input boxes below table; but this actual use was not seen until minutes after publishing from the editor.
Update
All this above is true for clicking on ANY ONE line item in the table then changing the data shown in any of the user input boxes e.g. name. The table updates before submit is pressed, immediately on screen.
WITHOUT submit button being pressed.
HOWEVER… then moving to select the next or any row, the user input boxes stop populating.
Clicking submit does nothing;
it does not change the table,
it does not show a confirmation,
and it does not update the Collection db in the editor, so the data that is being changed is not being saved.
Any comments at all???
Just downloading Skype
live:artformwebservice skype name
I need to get this working can anyone help via skype
sorry I cant find you in skype are you in the UK?
im not even sure my dataset setups are correct, or if they should be set to write, or read and write. The instructions are fuzzy and as I said before the tutorials are almost right though I wish there were MANY more of them especially on this topic… you would think it would be so easy for someone who knows this to write it up or do a video. ONe things for sure when we get this figured out Im making videos on how my experience with Wix has made so much difference in my online website.
Make sure to include
$w(‘#dataset3’).refresh();
or else the table will refresh with the same data, eventhough it was removed from the collection.
SO:
import wixData from ‘wix-data’;
export function table1_rowSelect(event, $w)
{ //get the index of the row which was clicked by the user
const index = event.rowIndex;
//get the _id attribute of the relevant record
const idToDelete = event.target.rows[index]._id;
//remove the record from the collection
wixData.remove(“collectionName”, idToDelete)
.then(() =>
{ //refresh the table with the updated info
$w(‘#dataset3’).refresh();
$w(‘#table1’).refresh(); })
.catch((err) =>
{ let errorMsg = err; }); }
