Hi everyone! I don't know if it is possible ... When the Activity initializes I need my BXTable "goes to" the last Row. I know you'll say "Hey change the sql sentence ex. "ordeb by Id desc". but I'd like avoiding that since when I have to edit by clicking on the table the RowIds make a mess...
Hi everyone! I don't know if it is possible ... When the Activity initializes I need my BXTable "goes to" the last Row. I know you'll say "Hey change the sql sentence ex. "ordeb by Id desc". but I'd like avoiding that since when I have to edit by clicking on the table the RowIds make a mess...
Thank you very much @Mahares !!!
It works like this:
B4X:
B4XTable1.SetData(aRegistros) 'Aquí cargo los datos en la tablaSleep(100)
'Para posesionarse en la ultima Pagina de la consultaIf B4XTable1.mCurrentCount > 0ThenDim NumberOfPages As Int = Ceil(B4XTable1.mCurrentCount / B4XTable1.VisibleRowIds.Size)
Log("Nro.De Paginas: "&NumberOfPages)
B4XTable1.CurrentPage = NumberOfPages - 0EndIf
B4XTable1.Refresh
I was waiting for Sergio to answer you. But It is probably a minor oversight in part of the OP. It is not necessary. In fact, the following line is not necessary either: B4XTable1.Refresh
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.