6 Replies Latest reply on Mar 5, 2015 12:29 AM by intex

    Continuing a script in preview mode without the status toolbar?

    MSNThomas

      I have a print script that takes a user to a layout for printing, and when they hit continue asks them if they would like to print.  They can hit Ok or Cancel, and then it will either print and return to the original layout, or not print and return to the original layout.

       

      I'd like to do the same thing, but without having the status toolbar exposed. Keystroke script triggers don't work in preview mode.  A custom menu could sort of do the trick, but my users are better with buttons.

       

      I REALLY wish the keystroke script triggers worked, because then I could set flipping through pages to the left and right arrows, and leave scrolling as the up and down, and just continue the script with the space bar. 

        • 1. Re: Continuing a script in preview mode without the status toolbar?
          intex

          We work with a second window as a printing toolbar from which you can zoom, scroll, and print - or abort the printing.

           

          printtoolbar.PNG

          • 2. Re: Continuing a script in preview mode without the status toolbar?
            jgalt

            I was trying to come up with an elegant solution to this problem a few weeks ago. There were two problems that I was trying to resolve. The first one is the one that you mentioned, eliminating the pause button. The second problem was that our dreaded Windows users were being taken out of full screen mode when the preview window opened.

             

            Instead of taking the user to a preview window I ended up writing a script that would create a PDF and stick it into a global container field... and then display the PDF in a global popover window. What is cool about this technique is that I you can put buttons in the popover that trigger whatever scripts you want. My users also seem to like viewing their Invoices, Quotes, etc., as PDF better than viewing them in the preview window.

             

            I am running the solution on a server and it's creating the PDF files and putting them into the container is a split second.

            • 3. Re: Continuing a script in preview mode without the status toolbar?
              BruceHerbach

              Hi,

              Actually OnLayoutKeyStroke script triggers do work in preview mode.  Below is a script I use that looks at the character types and the does what is asked for. Print, page next, previous, last and so on.

               

               

              HTH

              • 4. Re: Continuing a script in preview mode without the status toolbar?
                siplus

                I do have this situation here and there; if on a mac I use the print with "open pdf in preview" option, which leaves Filemaker as it is and transfers the burden to Preview; Preview shows the page(s) and sports the "cancel" and "print "buttons at bottom right of the window. Control goes to the user, he can cancel and reselect the FM window.

                 

                Check it out, it might fit your needs.

                • 5. Re: Continuing a script in preview mode without the status toolbar?
                  intex

                  We used this technique prior to the new windows script commands which allowed us to have a palette like window.

                   

                  Downside of the keyboard shortcut approach is the user friendliness and intuition. People are confronted with a preview and no hint about what to do now.

                   

                  We even had a special preview menu set offering menu commands for going forward, backward, printing or aborting, but people didn´t see it or find it.

                   

                  Worst case were people thinking, that the app crashed, since they managed only to hit keys which didn´t have a function. They force quit the app.

                   

                  So at least you need good documentation for this approach and users who can read ...

                  • 6. Re: Continuing a script in preview mode without the status toolbar?
                    intex

                    Nice approach.

                     

                    Only it doesn´t work with runtimes at least on Windows, since you can´t programmatically create a PDF.

                     

                    And I sometimes saw problems on Windows machines where a prior written PDF couldn´t be overwritten. But using a new name for every printed PDF isn´t a solution either, if you don´t want to fill the user´s harddisk quickly.