in multiple record form app how can I count lines selected ??

Hello,

I would like to count how many lines ares selected by user in multiple record form app ??

Thanks
Nac

Nobody knows how to do that ??

Thanks

It depends WHEN you want to know it.
Let’s say you want to display a message how many records have been updated.

onLoad:
[counter] = 0;

onAfterUpdate:
[counter] ++;

onAfterUpdateAll:
$message = [counter]." Records have been updated!";
echo “<script>alert(’”.$message."’);</script>";

Same goes for deleting records.

If you want to know it BEFORE you do anything you have two choices.

  1. Dive into Javascript (quite complex in this case).
  2. Count the check marks you see on the screen. :smiley:

jsb

You’re right, jsb, my users can count on the screen :slight_smile:

By the way, suppose 10 lines display on this mutiple row form app and you want that your user delete just and only 2 lines !!!

Thanks