Jump to content

mail record as PDF with calculated name?


This topic is 2300 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

I have found ways to do this from Filemaker in OSX but I can't seem to apply this to FMGo.

I want to mail the current record as a PDF and to have the PDF name be derived from the value of a field (in this cas, the name of the client)

 

Below is the script as it stands. Is this a possibility in FMGo?

 

1. Go to Layout [ layout name ]

2. Set Variable [$name ; Value: Patients::LastName ]

3. Save Records as PDF [ Restore ; No dialog ; "$name.pdf" ; Crerate email ; Current record ]

4. Go to Layout [ original layout ]

 

THoughts?

Link to comment
Share on other sites

You need a path, and I don't see why you're changing layouts. In fact, that might change your record.

User is on Contact form. Clicks "Mail PDF of Record"

1. set var $filename; patients::lastname & ".pdf" ( I might also add id)

2. set var $path ; get (temporarypath)

3. set var $fullpath; $path & $filename

4. Save as PDF; create email, current record only $fullpath

  • Like 1
Link to comment
Share on other sites

This topic is 2300 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

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