Working Field key for database(Title,ID) field

Hello - I have a database collection called ‘newPageData’, I need to access the dynamic page Url under the NewPageData(Title,ID) field and assign the link to a button for example. The actual Field Key is:
‘link-newPageData-title-_id’ . Here are code examples of what works and does not:

let itemObj = $w(“#dataset2”).getCurrentItem();
$w(‘#video1’).videoUrl = itemObj.videoUrl;//videoUrl field key works
$w(‘#input1’).value = itemObj.title;//title field key works
$w(‘#myButton’).link = itemObj.link-newPageData-title-_id;//field key not recognized

What did I do wrong? what field key would work or how else can the code access that Url field?
Any help is appreciated. Thanks! Bill

Hello

Try this way out to use: [‘field key’] instead of .flieldKey

  $w('#myButton').link = itemObj['link-newPageData-title-_id'] 

Best
Massa