Android Question b4xTable Select All Row in multiple rows selection ?

Discussion in 'Android Questions' started by ian2410, Jul 3, 2019.

  1. ian2410

    ian2410 Member Licensed User

    Can we create a button to select all row in b4xtable ?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Worth posting a link to the relevant thread: https://www.b4x.com/android/forum/threads/102364

    Code:
    Sub Button1_Click
       
    Dim res As ResultSet = B4XTable1.sql1.ExecQuery("SELECT rowid FROM data")
       
    Do While res.NextRow
           SelectedRows.Add(res.GetLong(
    "rowid"))
       
    Loop
       res.Close
       B4XTable1.Refresh
    End Sub
     
  3. ian2410

    ian2410 Member Licensed User

    i'm loading data to the b4xtable from mysql using jrdc2.
    is there any way to Loop entire row in the table ?
     
  4. DonManfred

    DonManfred Expert Licensed User

  5. ian2410

    ian2410 Member Licensed User

    Thanks Erel, DonManfred. It works.
     
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