4 Replies Latest reply on May 21, 2014 10:29 AM by BillPlunkett

    Perform Find without the tool bar or menu bar

    BillPlunkett

      Title

      Perform Find without the tool bar or menu bar

      Post

           Because I am a control freak, I want to hide the tool bar when my app runs.

           I have a button on the layout that enters find mode just as if the user had used the tool bar.  I also have an Execute Find and a Cancel Find button.  The cancel just goes back to browse mode and works perfectly.

           What do I do (via my execute find button) to find the records selected by the criteria the user puts into the fields on the layout - in other words emulate the "Perform Find" button on the tool bar.  If I just execute a Perform Find script step, the found set still has all the records.  What do I need to do.

           thanks guys, always get good help here...

        • 1. Re: Perform Find without the tool bar or menu bar
          philmodjunk

               Perform Find[] should be all that is needed to get the results you want. I cannot tell from here why that would leave you with a found set of all records. Are you sure you have it set to do a Perform FInd and not some other step?

               Could there be a script trigger set up that is interfering? (The actions of one script can trip other script triggers which then interrupt the original script, returning control to the original script only when done and only if a Halt Script step doesn't halt all such pending scripts.)

               You might also be interested in the scripted find examples in this thread: Scripted Find Examples

          • 2. Re: Perform Find without the tool bar or menu bar
            BillPlunkett

                 Ok, here's the test I ran.

                 3 buttons on the layout.  1 "Enter Find Mode" (no script, just the step in button setup),  2. "Perform Find" (no script, just the Perform Find/Replace script step in button setup) and 3 "Run Script" runs a script with 2 steps: first Perform Find/Replace same as button 2 and second Enter Browse Mode.

                 Button 1 obviously works fine.

                 Button 2 Also works and limits the found set to the search string but it is left in Find Mode.

                 Button 3 is a problem.  using the script debugged, after the perform find, the found set is properly limited but as soon as it returns to browse mode the entire table is in the found set.

                 There are no triggers.

                 thanks

            • 3. Re: Perform Find without the tool bar or menu bar
              philmodjunk
                   

                        2. "Perform Find" (no script, just the Perform Find/Replace script step in button setup)

                   Peform Find/Replace is the wrong script step.

                   There's a different step and it will look exactly like this:

                   Perform Find []

              • 4. Re: Perform Find without the tool bar or menu bar
                BillPlunkett

                     Perfect!

                     thanks Phil