Basic read and save using dataset or wixdata

Hi,
I am building a first page that is not derived from dynamic page (let’s say it is a dynamic quiz game). It reads seven fields, display them, and then write updates. However, I am very confused now!

I can read wixuser.id and wixuser email. I want to save the wixuser.id as a field value for the database, let’s called it member_test.

I am doing this now, is there anything wrong?

  1. I am not using dataset, just wixdata

  2. I try to read the values using the user.id to find the record, and then at the end, click a “save” button to update it.
    However, I have had enough struggle with this. All the ones I have done before is dynamic page (#dynamicdataset). This is first time I am using pure #dataset, wixdata, and wixuser.

I would appreciate any general advice and hand holding. It seems to be pretty basic.
Thanks.:grinning:

Basic read: (without dataset) —> wixdata
https://www.wix.com/velo/reference/wix-data/query

Basic write: (without dataset) —> wixdata
https://www.wix.com/velo/reference/wix-data/insert
or…
https://www.wix.com/velo/reference/wix-data/update
or…
https://www.wix.com/velo/reference/wix-data/save


Basic read (using DATASETs):
https://www.wix.com/velo/reference/wix-dataset/dataset/getcurrentitem
or…
https://www.wix.com/velo/reference/wix-dataset/dataset/getcurrentitemindex
or…
https://www.wix.com/velo/reference/wix-dataset/dataset/getitems

Basic write (using DATASETs):
https://www.wix.com/velo/reference/wix-dataset/dataset/setfieldvalue
or…
https://www.wix.com/velo/reference/wix-dataset/dataset/setfieldvalues

Good luck and happy coding!:wink:

Using a predifined tool in future … (comming soon) :grin:
https://www.media-junkie.com/pflegeservice

Overall, rather frustrating. I think I am just trying to do the very basic - read and write. But there are so man variables …
Really wish there is someone to talk with.

I am not sure how the code can read and write from the front end - starting to get a bit confused. Should the read and write be backend tasks for security?

Take a look here…
https://russian-dima.wixsite.com/meinewebsite

There you will find a lot of examples. Also how to work with DATABASES (READ / WRITE).

And there you also will find someeone to talk to (by using the chat). :wink: