I try to modify the data in Recordset_Selected Event BEFORE anything is happen to the data. For this, I use the following code:
// Recordset Selected event
function Recordset_Selected(&$rs) {
while (!$rs->EOF) {
if ($rs->fields['color'] == 1)
$rs->fields['name'] = "red";
else
$rs->fields['name'] = "green";
$rs->MoveNext();
}
}
If I use var_dump($rs), I can see the raw data and that my changes are working well. But in Listpage the changes have no affect.
Is it not possible to change the data in this event? And if so, for what is this event good?