This topic is locked

own function to work on multiple records in version 4.1

7/27/2007 2:48:11 AM
PHPRunner General questions
Pfeiffer author

Hello,
I want to install an own function to increase the price of special marked products.

  1. First I mark the records (in the checkbox) in the list view.
  2. I call my function which loops to the marked records using the array mdelete
    PHPR uses the array for marked records for deletion too.

    if (@$_REQUEST["mdelete"]) ...
    How can I do that and prevent that the marked records are deleted too ?
    best regards

    Uwe Pfeiffer

Sergey Kornilov admin 7/28/2007

Uwe,
if you use BeforeDelete event return false to prevent a record from being deleted.