Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

PDF's by Sort critria

Featured Replies

Hi

I need to be able to run a script that can search for a representatives work that is still unpaid

and then sort these records by customer. This then needs to export pdf's showing individual customers outstanding work that I can email out to each customer.

I have a script that can find all the work but it does not separate the PDF's into individual customers.

Any Ideas

Make a script with a LOOP. In each occurance within the loop you do a 'Create PDF'. Set the 'Create PDF' to have a fixed location and create a dynamically set name for each PDF.

  • Author

Hi Don

Thanks for that, but I have a couple of questions.

How do I get FM to save a PDF for each customer and how do I create a dynamically set name.

Do you have any sample files how this could work.

Plucky

Let me make one for you... Will upload asap.

Here you go... Script with a loop statement. Will create individual PDF files for each company that has invoices marked "NOT PAID".

PDF files are simply named a number (starting with 1, going up). You can make this the company name also, but that takes a little more effort...

Let me know.

loop.fp7.zip

  • Author

Hi Dom

That's exactly what I needed, Thanks

Is it complicated to have the customers name appear as the title of each PDF.

Plucky

I thought it wasn't, but it apparently is. Not impossible of coarse. I made a variable ' $file_name ' which was ' customer::customer_name & ".pdf" '. This worked only in part, as all files were named like the first record. I did not further inspect why this was, I will look into this later.

Got it, really nice ;-). PDF file names auto generated from the customer name.

File attached.

Let me know.

loop.fp7.zip

  • Author

Hi Don

Excellent.. That's just what I wanted.

You have no idea how long I have been racking my brain to solve this.

Thanks again.

Plucky

No problem... I liked the challenge.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.