Determine if last data row of list page in ListOptions_Rendering

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
stephen21345
User
Posts: 44

Determine if last data row of list page in ListOptions_Rendering

Post by stephen21345 »

Hi,
I want to make some custom changes to the options for just the last entry of a list page.
How do i determine if it is the last row?

As I understand,
$this->RowType==1 // is a data row
$this->RowCount // is the count of the Data Row for this page
$this->TotalRecords // is the total number of records in the recordset (not the number on the page)

Is $this->DisplayRecords the max number of rows to be displayed?
What is $this->RowIndex?
So say I have 33 records, and I display 20 per page, when I am on the second page how can I determine I am on the last row?
How do i determine if it is the 1st "page" or the 2nd so I know how to calculate if I am on the last data row?

Basically, how do I determine if I am on the last data row on the current list page inside ListOptions_Rendering?


arbei
User
Posts: 9384

Post by arbei »

You may try if ($this->RecordCount == $this->StopRecord).


Post Reply