1 Reply Latest reply on Jun 14, 2015 7:10 PM by philmodjunk

    How to do a "Select All" button



      How to do a "Select All" button


      Hi -

      I'm on FM Adv 14.0.  And I'm looking for a technique where I can select all records on a list view layout with a single checkbox.  I've seen it used before but I can't recall where or when.

      I've got my found set; let's say it contains 15 records of 300.  I've got my "found set" layout with a field that serves as the source for the "selection" checkbox on each row so I can go down the list and select this one or that one depending.  But I know there's a technique out there where I can install a "Select All" checkbox either at the top of the body or in the header part that, once checked selects all records on the layout.  Makes it easier for the user instead of individually clicking each row before moving to the next step (either eMailing or printing the list and so forth)

      Can anyone share the basics of this procedure, please?  Is it a script trigger like "OnObjectModify"?  If so, how do you pass that checkbox is On value to the individ selection boxes on each row.  It must be simple but I can't get my head around it...

      Thanks all.


        • 1. Re: How to do a "Select All" button

          A button can perform a Replace FIeld Contents operation to select all the records in the found set. But be advised that this can be a source of trouble if your database has multiple users selecting from the same set of records at the same time. There is an alternative method with a looping script that "selects" your records just for the current user and does not interfere with selections made at the same time by a different user.