Allright, then i will give you an example-code for this.
You will have to modify this code, to get it to work…
Here it comes…
export function table1_rowSelect(event) {
setTimeout (()=>{
$w('#dataset1').onReady( () => {
let currentRowIndex = event.rowIndex
console.log(currentRowIndex)
let URL = $w('#dataset1').getCurrentItem().url
console.log(URL)
console.log($w('#dataset1').getCurrentItem().title)
console.log($w('#dataset1').getCurrentItem().tutorial)
console.log($w('#dataset1').getCurrentItem().index)
let myURL = $w('#dataset1').getCurrentItem()["link-tutorials-title"]
let contentLink1 = $w('#dataset1').getCurrentItem()["link-tutorials-title"]
console.log(myURL)
$w('#BTNgo').link = myURL
} );
},5)
}
If all the console-logs making you crazy, just delete them first, to have a better overview of the code.
export function table1_rowSelect(event) {
setTimeout (()=>{
$w('#dataset1').onReady( () => {
let currentRowIndex = event.rowIndex
let URL = $w('#dataset1').getCurrentItem().url
let myURL = $w('#dataset1').getCurrentItem()["link-tutorials-title"]
let contentLink1 = $w('#dataset1').getCurrentItem()["link-tutorials-title"]
$w('#BTNgo').link = myURL
} );
},5)
}
All starts here… (with a click on the table)
exportfunction table1_rowSelect(event) { }
Why setTimeout is needed you can test it by deleting it later when your code is running (not recommended
)
Here you figure out the current selectec ROW-INDEX…
let currentRowIndex = event.rowIndex
Here you get/set you URL from your database (Reference-ID in this case = “url”)
let URL = $w('#dataset1').getCurrentItem().url
And with this example here, you can get/set a dynamic URL from database, in my case in this example -----> “[“link-tutorials-title”]”
let myURL = $w('#dataset1').getCurrentItem()["link-tutorials-title"]
Here you give a button a link…
$w('#BTNgo').link = myURL
How all this works in live, you can see here…
https://russian-dima.wixsite.com/meinewebsite
You will surely find the “GO”-button and the table with all the functions, which were described here in my post 
GOOD-LUCK!