[nsb-appstudio] Change data in datatable1(bootstrap) dynamically

5 views
Skip to first unread message

oscarquiroscoto@yahoo.com [nsbasic-app]

unread,
Apr 10, 2017, 10:30:21 AM4/10/17
to nsbas...@yahoogroups.com
 

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)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


.

__,_._,___

'George Henne' gh@nsbasic.com [nsbasic-app]

unread,
Apr 10, 2017, 1:09:55 PM4/10/17
to Nsbasic App
 

Do you have a minimal app you can send me showing this?

George Henne
NS BASIC Corporation
http://www.nsbasic.com

__._,_.___

Posted by: "George Henne" <g...@nsbasic.com>

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


.

__,_._,___
Reply all
Reply to author
Forward
0 new messages