B4J Question B4XTable - Search

LucaMs

Expert
Licensed User
Longtime User
javaw_QSPl8M7tAf.gif
javaw_dB3tzMmRQR.gif


1735228790973.png


All COLUMN_TYPE_NUMBERS, except the first column, COLUMN_TYPE_TEXT.
 
Last edited:

LucaMs

Expert
Licensed User
Longtime User
where is the example project that shows the behaivior?
Nothing special.
Creation of columns, usual way (with data types as wrote in the first post, all numeric except the first).
Creation of N arrays of type object added to a list passed to SetData.
The only thing different from usual, was setting the B4XFormatter of two columns, fifth and seventh, decimal.
B4X:
Private Sub CreateCustomFormat (xTableColumn As B4XTableColumn)
    Dim formatter As B4XFormatter
    formatter.Initialize
    xTableColumn.Formatter = formatter
    Dim NewFormatData As B4XFormatData = xTableColumn.Formatter.NewFormatData
    NewFormatData.DecimalPoint = ","
    NewFormatData.GroupingCharacter = "."
    NewFormatData.MaximumFractions = 2
    NewFormatData.MinimumFractions = 2
    xTableColumn.Formatter.AddFormatData(NewFormatData, formatter.MIN_VALUE, formatter.MAX_VALUE, True)
End Sub
 
Last edited:
Upvote 0
Top