# Basic read and save using dataset or wixdata

**URL:** <https://forum.wixstudio.com/t/basic-read-and-save-using-dataset-or-wixdata/5596>\
**Category:** Ask the community\
**Tags:** code, question\
**Created:** [January 14, 2021, 8:36pm UTC](https://forum.wixstudio.com/t/basic-read-and-save-using-dataset-or-wixdata/5596 "2021-01-14T20:36:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![changliu8888](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/changliu8888/32/19069_2.png) [@changliu8888](https://forum.wixstudio.com/u/changliu8888)\
**Post date:** [January 14, 2021, 8:36pm UTC](https://forum.wixstudio.com/t/basic-read-and-save-using-dataset-or-wixdata/5596/1 "2021-01-14T20:36:42Z")

</div>

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.😀

---

<div class="post-metadata">

**Author:** ![CODE-NINJA](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/code-ninja/32/110588_2.png) [@CODE-NINJA](https://forum.wixstudio.com/u/CODE-NINJA)\
**Post date:** [January 14, 2021, 10:35pm UTC](https://forum.wixstudio.com/t/basic-read-and-save-using-dataset-or-wixdata/5596/2 "2021-01-14T22:35:17Z")

</div>

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

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

* * *

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

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

Good luck and happy coding!😉

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

---

<div class="post-metadata">

**Author:** ![changliu8888](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/changliu8888/32/19069_2.png) [@changliu8888](https://forum.wixstudio.com/u/changliu8888)\
**Post date:** [January 15, 2021, 2:17am UTC](https://forum.wixstudio.com/t/basic-read-and-save-using-dataset-or-wixdata/5596/3 "2021-01-15T02:17:22Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![CODE-NINJA](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/code-ninja/32/110588_2.png) [@CODE-NINJA](https://forum.wixstudio.com/u/CODE-NINJA)\
**Post date:** [January 15, 2021, 6:43am UTC](https://forum.wixstudio.com/t/basic-read-and-save-using-dataset-or-wixdata/5596/4 "2021-01-15T06:43:53Z")

</div>

Take a look here…  
[https://russian-dima.wixsite.com/meinewebsite](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). 😉
