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
PDF thru FM Server
11 posts
• Page 1 of 1
Posts: 68
Joined: Tue Jan 25, 2005 1:45 pm |
JIMBO
|
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am |
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 |
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
|
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am |
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 |
Is the location some how preventing the file being attached to the email?
JIMBO
|
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am |
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 |
Super that works. Now how can I put it in a specific folder instead of the desktop? Will Get (FilePath) work?
thanks, JIMBO
|
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am |
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 |
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
|
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 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 |
Perfect. Thanks,
Jim JIMBO
|
11 posts
• Page 1 of 1
Return to FileMaker Products (General)
Who is online
Users browsing this forum: No registered users and 3 guests