May 15, 200817 yr I'm trying to set up a script to save a record as pdf with a specified name. The database is hosted on a server, and I cannot seem to get the file path correct for the client. here is my script: Set Variable ["filemac:Desktop/"&"PO" & Purchase Orders::Number &".pdf"] Save Records as PDF ["$filename"] My goal is to have the pdf saved to the desktop folder of the user's home directory. When I run,as is, I get an error that the file cannot be created on this disk. I think it's trying to save to the server or my file path is wrong and doesn't exist? Thanks.
May 15, 200817 yr Try: Set Variable $docPath = "filemac:" & Get (DesktopPath) & "PO" & Purchase Orders::Number & ".pdf" Save Records as PDF [$docPath]
Create an account or sign in to comment