In the main function I can load the data in datatabl1, but only there, I can not do it in another function.
I need to be changing the data as required by the user.
How can I do it?
function Main()
DataTable_language(DataTable1)
updateTable()
'work
End function
funciton updateTable()
columns1 =
[{title:"Nombre"},{title:"Salario"}]
data1 = [["Oscar", "$22"]]
DataTable1.settings.columns = columns1
DataTable1.settings.data = data1
DataTable1.build()
end funciton
Function
Button1_onclick()
' It does not work to change
the data in click event
updateTable()
end Function
Function Button2_onclick()
'
This way it does not work for me either
columns1 =
[{title:"1-Nombre"},{title:"2-Salario"}]
data1 = [["1-Oscar", "2-$22"]]
DataTable1.settings.columns = columns1
DataTable1.settings.data = data1
DataTable1.build()
end Function
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (1) |
Do you have a minimal app you can send me showing this?
George Henne
NS BASIC Corporation
http://www.nsbasic.com