Row_Rendering only in LIST only

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

Row_Rendering only in LIST only

Post by konfuzion »

I only want a function to modify a value while in LIST mode, but don't modify in VIEW/EDIT

How do I do:

If ($this->isListview())
{
$this->myfield->CurrentValue = myconvert($this->myfield->CurrentValue);
}

and when I go to VIEW/EDIT it will show the original $this->myfield->CurrentValue without conversion?


mobhar
User
Posts: 11660

Post by mobhar »

Try:

if (CurrentPageID() == "list") {
   $this->myfield->ViewValue = myconvert($this->myfield->CurrentValue);
}

In addition, try Row_Rendered instead of Row_Rendering server event.


konfuzion
User
Posts: 378

Post by konfuzion »

Tks, working in Row_Rendering server event


Post Reply