Getting the id of the database table from dynamic page to update the record.

Hello, I am trying to get the id of the database table row to update the record. I have created a dynamic page which is connected to the database. Everything is working fine but now I want the id of that specific record shown on the dynamic page so that if the user clicks a button on that page the record’s specific field updates. So is there any way to get the id through the javascript or something?


getCurrentItem gives you the record and the _id gives you the id.