gridadd - no rows appearing

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

gridadd - no rows appearing

Post by sticcino »

either as administrator or regular user

on a grid add page, no rows are being displayed when you click the + to add a grid-row, nothing happens... just me ?


sticcino
User
Posts: 1043

Post by sticcino »

just found the issue....

on the listview we needed to hide accounts where account_status == 0

in ListOptions_Rendered() had

	if(_getClientInfo("account_status", $this->Account_Id->CurrentValue)== 0)
		$this->RowAttrs["style"] = "display: none";                        

which was hiding any clients that cancelled.... which was also applying to the grid-add option -- hence all the rows were being hidden due to that query.

modified as

if($this->PageID == "list" && ($this->CurrentAction == "gridadd" || $this->CurrentAction == "gridedit)") {
	$this->m_Year->ReadOnly = true;    
	$this->policy_number->ReadOnly = true;
}            
else
	if(_getClientInfo("account_status", $this->Account_Id->CurrentValue)== 0)
		$this->RowAttrs["style"] = "display: none";                        

thanks


Post Reply