R RushilD Member Licensed User Apr 13, 2023 #1 Hello , I have a question and need a help. I have some data coming from Bluetooth in a for loop 0-100 After parsing the raw data I am left with the following name and Value Question: Can I display the Name , value in a b4xTable . As soon as a new raw data comes it is shown on the next row. I would later like to export the table in an excel. if yes then can someone show an example ? Of how to display on the b4xTable ? I tried the example from b4xTable and unfortunately the table is blank. thank you
Hello , I have a question and need a help. I have some data coming from Bluetooth in a for loop 0-100 After parsing the raw data I am left with the following name and Value Question: Can I display the Name , value in a b4xTable . As soon as a new raw data comes it is shown on the next row. I would later like to export the table in an excel. if yes then can someone show an example ? Of how to display on the b4xTable ? I tried the example from b4xTable and unfortunately the table is blank. thank you
M Mahares Expert Licensed User Longtime User Apr 13, 2023 #2 RushilD said: As soon as a new raw data comes it is shown on the next row Click to expand... RushilD said: how to display on the b4xTable ? Click to expand... Code: Copy Private Sub Button1_Click 'assuming your table has 2 cols B4XTable1.sql1.ExecNonQuery2($"INSERT INTO data VALUES( ?,?)"$, Array As Object("B4Xrocks", 673.3)) B4XTable1.Refresh End Sub Upvote 0
RushilD said: As soon as a new raw data comes it is shown on the next row Click to expand... RushilD said: how to display on the b4xTable ? Click to expand... Code: Copy Private Sub Button1_Click 'assuming your table has 2 cols B4XTable1.sql1.ExecNonQuery2($"INSERT INTO data VALUES( ?,?)"$, Array As Object("B4Xrocks", 673.3)) B4XTable1.Refresh End Sub
aeric Expert Licensed User Longtime User Apr 13, 2023 #3 Go through the tutorial: [B4X] B4XTable - Cross platform, sortable, searchable, customizable table B4XTable is a paged based table. The UI is made of a horizontal xCLV. The data is stored in an in-memory SQLite database. How to use? 1. Add a B4XTable with the designer. 2. Add the columns: B4XTable1.AddColumn("US County", B4XTable1.COLUMN_TYPE_NUMBERS) B4XTable1.AddColumn("Name"... www.b4x.com RushilD said: Can I display the Name , value in a b4xTable Click to expand... Yes. If you follow the tutorial, you need to add 2 columns using B4XTable1.AddColumn. Then add your data as List using B4XTable1.SetData(data). RushilD said: As soon as a new raw data comes it is shown on the next row. Click to expand... Update the list and then use SetData each time. RushilD said: I would later like to export the table in an excel. Click to expand... https://www.b4x.com/android/forum/threads/xlutils-jpoi-5-read-and-write-ms-excel-workbooks.129969/ Upvote 0
Go through the tutorial: [B4X] B4XTable - Cross platform, sortable, searchable, customizable table B4XTable is a paged based table. The UI is made of a horizontal xCLV. The data is stored in an in-memory SQLite database. How to use? 1. Add a B4XTable with the designer. 2. Add the columns: B4XTable1.AddColumn("US County", B4XTable1.COLUMN_TYPE_NUMBERS) B4XTable1.AddColumn("Name"... www.b4x.com RushilD said: Can I display the Name , value in a b4xTable Click to expand... Yes. If you follow the tutorial, you need to add 2 columns using B4XTable1.AddColumn. Then add your data as List using B4XTable1.SetData(data). RushilD said: As soon as a new raw data comes it is shown on the next row. Click to expand... Update the list and then use SetData each time. RushilD said: I would later like to export the table in an excel. Click to expand... https://www.b4x.com/android/forum/threads/xlutils-jpoi-5-read-and-write-ms-excel-workbooks.129969/