Fill data table on button press

Hello everybody,

I am working on a project in which I would like the value of the distance between two actors to be stored in a data table, on button press. I get the distances, but I am unable to store them in a table. Is there a way to accomplish that? Thank you very much.