6 Replies Latest reply on Jan 1, 2013 1:15 PM by philmodjunk

    Custom Path for PDF

    MartijnDeVré

      Title

      Custom Path for PDF

      Post

           I made a button to save the record (invoice) as a PDF. Filemaker places the PDF on the desktop. This works fine.

           But now i want filemaker to save the PDF into a custom folder. Somehow i dont manage to create a custom path for the PDF

           Does somebody know where to find a good tutorial for this?

            

           Kind regards Martijn

        • 1. Re: Custom Path for PDF
          davidanders

          http://www.filemaker.com/help/html/create_db.8.32.html
          Home > Designing and creating databases > Creating a database > Creating file paths
          Examples of single file paths

                                                                                                                                                                                                                                                                                                                                                                                                                     
                     
                              
          Type of path
                         
                              
          Example
                         
                              
                                   Relative
                         
                              
          file:MyDocuments/test.xls
                         
                              
                                   Full local (Mac OS)
                         
                              
          filemac:/MacintoshHD/Users/JohnSmith/Documents/test.xls
                         
                              
                                   Full local (Windows XP)
                         
                              
          filewin:/C:/Documents and Settings/j_doe/My Documents/test.xls
                         
                              
                                   Full local (Windows Vista)
                         
                              
          filewin:/C:/Users/j_doe/Documents/test.xls
                         
                              
                                   Full remote (Windows)
                         
                              
          filewin://SalesComputer/SharedVolume/ExcelFiles/test.xls
                         
                              
                                   FileMaker Network
                         
                              
          fmnet:/192.168.10.10/database.fp7
                         


          http://www.filemakertoday.com/com/showthread.php/22066-patient-database-for-lab-and-radiology-data?p=89559#post89559
          Guide to a cross-platform container field with reference to stored document

          http://www.goya.com.au/blog/guide-filemaker-import-paths
          A guide to FileMaker import paths

          Getting File Path from Containers
          Title:  Getting File Path from Containers

          Google "define paths site:forums.filemaker.com"
          https://www.google.com/search?q=define+paths+site%3Aforums.filemaker.com

                

          • 2. Re: Custom Path for PDF
            MartijnDeVré

                 Thanks David!!!! Big Help. I am not a filemaker expert but little by little.

                  

                 This is very clear. It works!

                 But now i dont manage to let FM create a custom filename for the PDF. The custom filename is the invoice number. 

                 Happy New Year!

            • 3. Re: Custom Path for PDF
              MartijnDeVré

                   I made a Variable file path. To create a custom file name and to get the file path. But this little script i found uses the GET(desktoppath).

                   Sorry this is dutch :

                    

                   Get ( BureaubladPad )&"Factuur"&Factuur::Factuurnummer & ".PDF"

                   Do you know  witch GET function i have to use to create a custom path? Not the desktop path?

              • 4. Re: Custom Path for PDF
                philmodjunk

                     You can't use a get function except for "standard" locations such as temporary items, documents and the desktop. Other locations have to fully spelled out in the text expression.

                • 5. Re: Custom Path for PDF
                  MartijnDeVré

                       Thanks PhilModJunk!

                       But do you know a site where i can find some examples? I am not a expert in text expressions?

                  • 6. Re: Custom Path for PDF
                    philmodjunk

                         There are examples spelled out directly in the specify file dialog where you enter the name of the Path variable.

                         The exact form depends on your operating systems. The file path will start with a drive letter in windows systems and a volume name in Macs.