How to reposition "record pointer" or equivalent?

I have a dataset that I am using entirely manually. It contains a unique column. When the user clicks a button, I want to find the row in the recordset that has a certain value in that unique column and then, using ds.getCurrentItem() be able to retrieve that row so that I can access its fields. How do I “find” that row, reposition the “record pointer”, or however it’s done in wix code?

Thank you

https://www.wix.com/corvid/reference/$w.TableRowEvent.html

OK, thanks for the reply, but I need to do this in code. The event info you sent me assumes someone is clicking on the desired row. I need to know how I select a row based on a key valu–in code. No user interaction for this process.

so, something like this:

dataset.find(key field, key value),… i don’t know how it’s done, I’m just making this up as an example.