B4A Library [B4X] B4XTable - Cross platform, sortable, searchable, customizable table - Erel    Feb 08, 2024   (58 reactions) When you call SetData the an in-memory db is created with the data.
CellClick event
Sub B4XTable1_CellClicked (ColumnId As String, RowId As Long)
Dim RowData As Map = B4XTable1.GetRow(RowId)
Dim cell As String = RowData.Get(ColumnId)
Log(cell)
End Sub
B4XTable.GetRow returns a Map with B4A Question B4XTable sorting problem - hazaal (first post)    Aug 30, 2023 Sort(prjtable,prjtable.GetColumn("Nro")," DESC")
Sub Sort (Table As B4XTable, Column As B4XTableColumn, SortMode As String)
For Each c As B4XTableColumn In Table.Columns
If c = Column Then
c.InternalSortMode = SortMode
Else
c.InternalSortMode = ""
B4A Question sort B4XTable - Erel (first post)    Mar 03, 2019   (2 reactions) Yes:
B4XTable1.AddColumn("Name", B4XTable1.COLUMN_TYPE_TEXT).InternalSortMode = "DESC" 'or "ASC"
'or
Dim c As B4XTableColum = B4XTable.AddColumn(...)
c.InternalSortMode = "ASC"
Set the internal sort mode field before you set the data. B4A Question B4XTable Exclude Column from Search - PaulMeuris (first post)    Oct 22, 2022   (2 reactions) In this code snippet you can see how to set a B4XTable column sort-able and/or searchable: If tablename = "category" Then Dim column As B4XTableColumn = B4XTbl1.GetColumn("") column.Searchable = False column.Sortable = False End If The if-statement is there in case y B4J Question [B4XTable] How To Sort Multiple Columns - Erel (first post)    Dec 13, 2021   (1 reaction) Your code doesn't do anything. The query results will not have any effect on the table.
Make all columns unsortable and:
Sub B4XTable1_HeaderClicked (ColumnId As String)
Dim col As B4XTableColumn = B4XTable1.GetColumn(ColumnId)
B4XTable1.CreateDataView($"1=1 ORDER BY ${col.SQLID}, c0"$)
En B4A Tutorial [B4X] B4XTable with custom cells layout - Erel    Feb 06, 2019   (17 reactions) https://www.b4x.com/basic4android/images/SS-2019-02-06_11.52.16.png
Requires B4XTable v1.01+: https://www.b4x.com/android/forum/threads/b4x-b4xtable-cross-platform-sortable-searchable-customizable-table.102322/#content
This example demonstrates the steps required to create cells with custom layout B4A Question Sorting a B4XTable on a column number - DALB    Mar 19, 2023 Hello,
I'm trying to sort a B4XTable by a column with numbers.
I have define this column which name is "amount' like this:
B4XTable1.COLUMN_TYPE_NUMBERS
I try to sort the table on this column descending like this:
Dim coln As B4XTableColumn = B4XTable1.GetColumn("amount")
coln.InternalSortMode= "D B4J Question B4XTable - A Property Bag Use Case - A couple of questions - Mahares (first post)    Sep 30, 2023   (1 reaction) After you define the columns:
Sleep(0)
B4XTable1.lblFirst.Parent.Visible =False
For Each c As B4XTableColumn In B4XTable1.Columns
c.Sortable = False 'you can also remove the sort on individual columns
Next
Too many questions for one thread. I did not have time to look at all questio B4J Question How to emulate B4XTable column title click to sort its content ascending or descending using code? [Solved] - JGParamo (first post)    Mar 17, 2021   (1 reaction) Thanks on this Laurent, B4XTable has a Sort method similar with that for lists that I may have to explore. Cheers.. B4A Question B4x table add row after current selected row - Mahares (first post)    Sep 24, 2022   (2 reactions) You can't simply insert a record below the selected record because the B4XTable data displayed is stored in a SQLite in-memory database and the record goes to the end of the table. But what you can do is add an internal sort to the column in question say in this case it is called: 'Make'. When you Page: 1   2   3   4   5   6   7   Powered by ColBERT |