2 Replies Latest reply on Jan 12, 2012 3:15 AM by databuzz

    Exporting jogs from container

    mcrostie

      Any tips to export a container (image jpg file) and have it rename with a field name from the same record and repeat this for all the found records

        • 1. Re: Exporting jogs from container
          rbairstow

          You could could use a simple Loop like this

           

          Loop

          Set Variable ($file ; "filewin:/c:/" & FieldName & ".jpg")

          Export Field Contents(ContainerField ; $file)

          Go To Record Request Next(Exit After Last)

          End Loop

          • 2. Re: Exporting jogs from container
            databuzz

            Hi,

             

            Assuming you have a found set of records that you wish to perform this action on you will need to create a looping script that starts from the first record and then places the export file path into a variable that includes a field from the current record, then proceeds to the next record and repeats until it gets to the last record.

             

            Here's a simple version that should point you in the right direction - it's exporting the container field to the desktop using the Name field as the file name. You would probably change the location of the export and also the field you are including:

             

            script_example.png

             

            As I say it's a simple example that you can hopefully work from - I'm not doing any error checking etc.

             

            HTH,

            Andrew

             

            FileMaker 8/9/10/11 Certified Developer

            Databuzz

            - - - - - - - - - - - - - - - - -

            Phone: +61 2 9484 6565

            Mobile: +61 418 468 103

            Email: andrew@databuzz.com.au

            Web: www.databuzz.com.au

            1 of 1 people found this helpful