@code-queen Still error: TypeError: Cannot read property ‘comments’ of undefined
let current = $w("#dynamicDataset").getCurrentItem.comments();
if (!current) {
$w("#button1").disable();
$w('#text29').text='No file to download. Button disabled!';
}
else {
$w("#button1").enable();
$w('#text29').text='Button functional! Proceed with download';
}