Working with getiingcurrentitems Where I declare and how Ideclare my item obj to get mycollection item upon clicking different button. thank

$w.onReady( () => {
$w(“#myDataset”).onReady( () => {
let itemObj = $w(“#myDataset”).getCurrentItem();

} );

} );

/* itemObj:
*

  • {
  • “_id”: “fcec780a-3e37-4b64-8a66-37c552c53f99”,
  • “_owner”: “f6c0f9c3-a62d-7e9f-g58d-943829af244d9”,
  • “_createdDate”: “2017-05-01T17:19:03.823Z”,
  • “_updatedDate”: “2017-05-01T17:19:10.477Z”,
  • “title”: "Dr. ",
  • “name”: “B”,
  • “link-dynamic-name”: “/myCollection/B”
  • }
    */