I've been able to put my ABMPagination component at the footer of my ABMTable. I would however like to get this working properly and being responsive to the commands. The other buttons work properly, its the previous and next buttons that are not behaving as should, perhaps its my code..
Thanks...
B4X:
'Update the paginating component
[CODE]Dim pager As ABMPagination
pager.Initialize(page, "TimeSheetsPager", 10, True, True, "")
If (NumRecords Mod MaxRows > 0) Or (NumRecords = 0) Then
NumRecords = NumRecords/MaxRows + 1
Else
NumRecords = NumRecords/MaxRows
End If
pager.SetTotalNumberOfPages(NumRecords)
pager.SetActivePage(fromPage)
pager.Refresh
tblTimesheet.SetFooter(pager, 12, "bg")
tblTimesheet.Refresh
The code above places the pager in the footer. I'd like to make the previous and next buttons to work properly as they seem to only jump to the first page.
Also how do I get the pager component from the footer of the table? Id like to get the active page from there to rerun the loadinging script of my page.
Last edited: