How are you! I've wasted a while looking for legs to the matter.
The thing is, as suggested, I started a new mini-project where I create a B4X table that reads data from a List, all good.
Surprisingly, for me, the search engine works without any problem.
The only big difference is that my production software reads the data from a row that loads data from a SQLite database.
Sub bringFromDB
Dim cs As Cursor
cs = managerSql.ExecQuery("SELECT * FROM database")
Dim result As List
result.Initialize
If cs = Null Then
Log("Error: Storage empty")
Else
'Log("Notice: Bringing records...")
For row = 0 To cs.RowCount - 1
cs.Position = row
tmpList.Initialize
tmpList.Add(cs.GetString2(0))
tmpList.Add(cs.GetString2(1))
tmpList.Add(cs.GetString2(2))
tmpList.Add(cs.GetString2(3))
result.Add(tmpList)
Next
cs.Close
End If
Return result
End Sub
Sub printData(bringFromDB As List)
data.Initialize
For i = 0 To bringFromDB.Size - 1
tempX = bringFromDB.Get(i)
' Dim idX As String = tempX.Get(0)
Dim costoX As Int = tempX.Get(1)
Dim commentX As String = tempX.Get(2)
Dim dateX As String = tempX.Get(3)
' Agrega colxcol a data list
data.Add(Array( commentX, costoFormatx, dateX ))
' Setear Data en tabla
tableB4x.SetData(data)
Next
End Sub
I have verified that my data does not save Nulls, the table is listed perfectly and the search filter works but as I mentioned at the beginning of the post, it ends up hanging the application.
In any case, is there a listener that can listen to the search event of the searcher?
Thank you!