B4J Question tableview

Discussion in 'B4J Questions' started by Kahapdos, Jan 18, 2015.

  1. Kahapdos

    Kahapdos Member Licensed User

    B4J
    I need help please
    how connect mysql with tableview.

    I have the connextion

    MainForm = Form1
    MainForm.RootPane.LoadLayout("1")
    MainForm.Show

    sql1.Initialize ("com.mysql.jdbc.Driver","jdbc:mysql://localhost/")

    but how load 1 table to tableview
    thanks
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You can use DBUtils.ExecuteMemoryTable to get a list with the results and then go over the results and add them to the TableView:

    Code:
    Dim rows As List = DBUtils.ExecuteMemoryTable(...)
    TableView1.Items = rows
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice