Page 1 of 1
Row_Rendering only in LIST only
Posted: Mon Oct 03, 2022 11:02 pm
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?
Re: Row_Rendering only in LIST only
Posted: Tue Oct 04, 2022 8:10 am
by mobhar
Try:
if (CurrentPageID() == "list") {
$this->myfield->ViewValue = myconvert($this->myfield->CurrentValue);
}
In addition, try Row_Rendered instead of Row_Rendering server event.
Re: Row_Rendering only in LIST only
Posted: Tue Oct 04, 2022 10:23 am
by konfuzion
Tks, working in Row_Rendering server event