3 Replies Latest reply on May 10, 2010 5:42 AM by ninja

    Select All



      Select All



      If I am doing  a check box field where I select by checks eah option I want - But then I want to have a select all so that all boxes get checked at once - Is this a script and if so can you tell me how to do it



        • 1. Re: Select All

          Howdy Dinora,


          Unless they built it in in later editions (I'm on 8) it isn't an option.

          The data is stored as return separated entries, so you could set the "select all" button you create to enter these entries and achieve your goal


          Say your checkboxes are: Red, Blue, Yellow, Black


          Have your select all button perform the single step script:

          SetField[ YourField ; "Red" & ¶ & "Blue" & ¶ & "Yellow" & ¶ & "Black" ]

          • 2. Re: Select All

            Ninja's method works well, but here's a more flexible approach:


            Set Field [ Yourtable::Yourfield ; ValueListItems ( Get ( filename ) ; "YourValueListName" ) ]


            With that approach, you don't have to modify your script if you later update the list of values in your value list.

            • 3. Re: Select All

              Good deal.  Thanks Phil.