PDF thru FM Server

General Information about upcoming products, upgrades, etc.
Posts: 68
Joined: Tue Jan 25, 2005 1:45 pm
PostPosted: Tue Jun 19, 2007 11:58 am
I have a script, which works fine if you are working direct, but does not completely work when using server 8.

The script allows users to create pdf of record, name the pdf, save to a specific folder and attach to an email.

Through server, the pdf is saved in Program/FileMaker. and does not attach to the email.

Help is appreciated.

thanks
Jim
JIMBO
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Tue Jun 19, 2007 1:04 pm
Hmmm. Is this failing on the same machine that works when you open the file without server? Can you paste the script steps in here so we can see what's happening?
John Sindelar
SeedCode
Posts: 68
Joined: Tue Jan 25, 2005 1:45 pm
PostPosted: Tue Jun 19, 2007 2:32 pm
Here is the script.


Send Quote PDF

If [ Order::AZ = "YES" and Order::AZ Set Up Charge A < 10 ]

Show Custom Dialog [ Message: "You selected Yes to AZ and have not entered AZ Set-Up Charges. Please check your enteries.", “Thank Youâ€
JIMBO
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Tue Jun 19, 2007 2:43 pm
Hi Jimbo,

Seems like all that $platform and $path stuff is more complicated than it needs to be. I'd do something like this for the $FulPath:

"file:" & Get ( DesktopPath ) & Order::Quote# & ".pdf"

You can also use Get ( FileMakerPath ) if you don't want the file to end up on the desktop, but these Get() functions give you a way to put the file in the same "relative" place regardless of the setup of the user's machine.

Hope that helps.
Last edited by John Sindelar on Tue Jun 19, 2007 9:46 pm, edited 1 time in total.
John Sindelar
SeedCode
Posts: 68
Joined: Tue Jan 25, 2005 1:45 pm
PostPosted: Tue Jun 19, 2007 7:34 pm
Is the location some how preventing the file being attached to the email?
JIMBO
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Tue Jun 19, 2007 9:47 pm
Its the way you're describing the location in $FullPath (I think). Let me know if the "file:..." thing works.
John Sindelar
SeedCode
Posts: 68
Joined: Tue Jan 25, 2005 1:45 pm
PostPosted: Thu Jun 21, 2007 11:40 am
Super that works. Now how can I put it in a specific folder instead of the desktop? Will Get (FilePath) work?

thanks,
JIMBO
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Thu Jun 21, 2007 1:24 pm
jim shelton wrote:Super that works. Now how can I put it in a specific folder instead of the desktop? Will Get (FilePath) work?

thanks,


Great!

You can put it anywhere you can base on Get ( DesktopPath ) or Get ( FileMakerPath ).
John Sindelar
SeedCode
Posts: 68
Joined: Tue Jan 25, 2005 1:45 pm
PostPosted: Fri Jun 22, 2007 7:44 am
I am not quite following you. Would it look like

Get (DesktopPath), "Proofs"

If I had a folder named proof on each desktop.

Jim
JIMBO
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Fri Jun 22, 2007 7:54 am
No, then your path would look like this:

"file:" & Get ( DesktopPath ) & "Proofs/" & Order::Quote# & ".pdf"

Remember, though, that this won't make a new folder for you; the folder has to be there.
John Sindelar
SeedCode
Posts: 68
Joined: Tue Jan 25, 2005 1:45 pm
PostPosted: Fri Jun 22, 2007 8:13 am
Perfect. Thanks,

Jim
JIMBO

Return to FileMaker Products (General)

Who is online

Users browsing this forum: No registered users and 1 guest

cron
(855) SEEDCODE
[email protected]
Follow us: