Count data on header

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

Count data on header

Post by ach8 »

How to display the amount of data above the table based on a search?

function Page_DataRendering(&$header) {
	$header = "Count : " . $this->RowCount; // NOT WORK ON Page_DataRendering
}

mobhar
User
Posts: 11660

Post by mobhar »

Try Page_DataRendered instead.


ach8
User
Posts: 174

Post by ach8 »

Yes it works, but how to display above the table?


mobhar
User
Posts: 11660

Post by mobhar »

You better use ExecuteScalar instead.

Or, you may use this code in Page_DataRendering event:

$this->setMessage($this->TotalRecords);


ach8
User
Posts: 174

Post by ach8 »

Thank u


Post Reply