Adding row on a memory tag type dataset

Hi !
I made a dataset memory tag with 4 col in it.
im trying script a button that will grab the value of 4 text field and add them into a row that memory tag.
i know how to get the value from the 4 text field but i dont know how ill add them as a row on that tag ?

anyone can help plz :slight_smile: thanks

ignition 8 btw

I think the system.dataset.addRow method is what you are looking for. It takes in the original dataset (in your case by reading the dataset memory tag) and then a list of the new values. Do note that this returns a new dataset, so you will have to take this new dataset and write its value back to the memory tag.