how to hide a row in a list table depending on one value?

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

how to hide a row in a list table depending on one value?

Post by nyukuri »

I have the following problem.
In my user table Ihave one entry that should not show up in the table. I can do that by using the table filter. The problem is only, that when trying to login with that username, PHPMaker is applying the filter so I cannot login. I had to remove the filter and now can log in with that user, but he is visible in the table.

So how can I hide this one entry in the table? Something like "if row['id'] = 1 .... hide


mobhar
User
Posts: 11709

Post by mobhar »

You may simply use "Row_Rendered" server event, for example:

if ($this->id->CurrentValue == "1") {
$this->RowAttrs["style"] = "display: none";
}


Post Reply