Hi, All
I have faced the same problem like here: https://www.b4x.com/android/forum/t...ion-working-properly-on-abmtable-footer.76449
The previous and next buttons of ABMPagination view do not work, OldPage is always = 0.
Any suggestion ?
What does SetActivePage do ?
I have faced the same problem like here: https://www.b4x.com/android/forum/t...ion-working-properly-on-abmtable-footer.76449
B4X:
Sub pagNames_PageChanged(OldPage As Int, NewPage As Int)
Log("pagNames = " & OldPage & " - " & NewPage)
Dim total As Long = Refresh_tableNAMES((NewPage - 1) * TABLE_STEP)
Dim Current_TotalNumberOfPages As Long = Ceil(total/TABLE_STEP)
Log("Current_TotalNumberOfPages = " & Current_TotalNumberOfPages)
If Current_TotalNumberOfPages <> pagNames.GetTotalNumberOfPages Then
pagNames.SetTotalNumberOfPages(Current_TotalNumberOfPages)
NewPage = 0
End If
pagNames.SetActivePage(NewPage)
pagNames.Refresh
End Sub
The previous and next buttons of ABMPagination view do not work, OldPage is always = 0.
Any suggestion ?
What does SetActivePage do ?