$rsnew value is false during multi-update page

hi,

i use phpmaker 2020.0.14

in all my tables, i have a flag field to manage the visibility of a record :
1 visible
0 hidden

I use the radio control in the edit page to manage it.
Once the user pass the falg from visible to hidden, i changed the record label like that in the script function Row_Updating :
if ($rsold[“edt_visible”]==1 && $rsnew[“edt_visible”]==0) $rsnew[“edt_lib”]=$rsnew[“edt_lib”]." (deleted!)";

in basic edit view, it runs fine and very well !

but in multi-update page, even when i do not check the field in the multi-update page, phpmaker put a 0 in the rsnew ! so the query from my script function Row_Updating is running and my field is rename while the rsnew did not change!
morever, even when i uncheck the visibility field from the listview (not display in multi update), it is appening.

if fact, i need this feature object : rsnew_and_selected insteadof just rsnew :

if ($rsold[“edt_visible”]==1 && $rsnew_and_selected[“edt_visible”]==0) $rsnew[“edt_lib”]=$rsnew[“edt_lib”]." (deleted!)";

If update page you need to check if the user has checked the field to update first, you may check, e.g.

if ($this->xxx->MultiUpdate != “1”) { // The field “xxx” is checked to update
// your code
}

hi again,


is there a $this->isMultiEdit() attribut to manage the problem ?
i could perform my update only in classic edit like :

function Row_Updating($rsold, &$rsnew) {
// Enter your code here
// To cancel, set return value to FALSE

if ($this->isEdit())
{
if ($rsold[“edt_visible”]==1 && $rsnew[“edt_visible”]==0) $rsnew[“edt_lib”]=$rsnew[“edt_lib”]." (deleted!)";
}

if ($this->isMultiEdit())
{
//do nothing
}

return TRUE;

The setting is per field, not table level.

Try:

$this->isUpdate()