How to retrieve dataset value

I have a dataset and how do i access the value of a particular column? I tried using
filter of latest record and getCurrentItem but it returns the whole Json resultset. I want to retrieve a particular column value of the dataset.

Any help appreciated.

Once you have the current item, you can then access a field using the Field key :

let item = $w("#dataset1").getCurrentItem();
let val = item.name;

Where name is the field key of the column called Name.

3 Likes

Thanks.

1 Like