Page 1 of 1

Record Count for Master/Detail-View/Add

Posted: Thu Nov 12, 2015 11:01 pm
by digitalphotoworld

Please add a feature to enable the Record Count for Master-Detail on view and add-pages. In list pages the record count is displayed on the tabs for detail pages, but not in view and add.


Re: Record Count for Master/Detail-View/Add

Posted: Thu Feb 01, 2018 9:44 pm
by rrezende

Try this.

//Page Data Rendering event view master page
function Page_DataRendering(&$header) {
// get tables separated by comma and explode in vector
$details = explode(',',$_GET['showdetail']);

for($i = 0; $i < count($details); ++$i) {
		// name of the method that searches the number of records per table detail "cvfisicoquimico" "_ Count" name of the method cvfisicoquimico_Count
		$method= $details[$i].'_Count';
		// mount caption with table name and number of records
		$caption = Language()->TablePhrase($details[$i], "TblCaption").' <span class="label label-info ewDetailCount0">'.$this->$method.'</span>';
		//set new caption
		Language()->setTablePhrase($details[$i], "TblCaption", $caption);
}

}


Re: Record Count for Master/Detail-View/Add

Posted: Sat Jul 28, 2018 9:04 am
by Webmaster

Implemented in v2019. (For Master/Detail-View.)