getCurrentItem( )

$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”
  • }
    */

Hello, can someone help me how to define itemObj in the program inorder to get a set of data from collection everytime I click a botton. what should I replace itemObj by.
Thanks

Please explain in more detail what you would like to do. What do you mean by “set of data”?

Also, next time, please make sure that the title of your post explains what you’re question is.