1 Reply Latest reply on Sep 3, 2013 5:09 AM by shilpas@metasyssoftware.com

    Creating PDF and Emailing

    bookalaka_1

      Title

      Creating PDF and Emailing

      Post

           Hello and good morning,

           I discovered this script  but have run into an error. "2013" could not be created on this disk use a different name or create more space? I don't know where on the ipad or filemaker where there is a folder that saves these?

           Ultimately I would like to send a report to my company from an Ipad daily using my layout design.

           Here is the script

           The file paths are different on a Mac and iPad/iPhone/iPod touch.  Therefore, you will have to modify your script.  Thanks to our Software Quality Assurance (Testing) department for providing the following sample script:

           Set Variable [ $FileName ; Value: "Test_" & Substitute ( Get ( CurrentDate ) ; "/" ; "-" ) & ".pdf" ]
           Save Records as PDF [ No dialog ; "$FileName" ; Records being browsed ]
           Set Variable [ $PDFPath ; Value: Get (DocumentsPath) & $FileName ]
           Send Mail [ Send via E-mail Client ; To: "user1@abc.com" ; Subject: "Invoice" ; Message: "Test" ; "$PDFPath" ]

            

           Also on the $FileName would I use my file name or this is just a global name useage?

            

           Thank you for help!

           Bookalaka

        • 1. Re: Creating PDF and Emailing
          shilpas@metasyssoftware.com

               Change the script as per following

               Set Variable [ $FileName ; Value: "Test_" & Substitute ( Get ( CurrentDate ) ; "/" ; "-" ) & ".pdf" ]
          Set Variable [ $PDFPath ; Value: Get (DocumentsPath) & $FileName ]
               Save Records as PDF [ No dialog ; "$PDFPath" ; Records being browsed ]
               Send Mail [ Send via E-mail Client ; To: "user1@abc.com" ; Subject: "Invoice" ; Message: "Test" ; "$PDFPath" ]

               The PDF is stored in same location where the fmp12 files are on iOS devices. It is the application file folder of FM Go, where we transfer/store the fmp12 files to accessed using FM Go.