[FX.php List] [OFF] Saving a PDF file to a Server
Roger Moffat
rogerkiwi at mac.com
Tue Oct 7 22:37:20 MDT 2008
Hi Ernest
Thanks for that.
I "think" I have it running OK now. Using your hint of Get (Temporary
Path ) which showed me just exactly what the format of a path that
FileMaker was expecting to see looked like, I've got the Database now
writing out the file onto the FM Server machine into a folder there
(not the temp folder now) and then put an automator action onto that
folder to copy the file from there to the Mac with the Web Publishing
Engine and Apache server on it. This seems to work.
(Perhaps with more trial and error I could figure out how to write it
directly to the Apache server machine assuming it was mounted as an
afp volume on the FM Server machine) but it's very late now.
I tried the container field suggestion, and that worked too within the
database, but since I'm actually using BlackBelt for the web stuff I
couldn't figure out how to get that called as a link on a page to see
the PDF file.
From one Kiwi (in Michigan) to another
Thanks!!!!!!
Roger
On Oct 7, 2008, at 10:27 PM, Ernest Cunningham wrote:
> Ohh, the reason why i suggest this method as opposed to telling you
> how to create a correct path is it does not require any volumes to
> be mounted etc and not reliant on where the FileMaker Pro user is
> around the world.
>
>
> Kind regards,
>
> Ernest Cunningham
>
> __________________________________________________________
>
> FileMaker Database Developer
> Nelson, New Zealand
>
> Ernest Cunningham
> Mobile: +64-21-40 66 75
> __________________________________________________________
>
> On 8/10/2008, at 3:06 PM, Roger Moffat wrote:
>
>> Sorry for a post that's not really on the topic of FX.php, although
>> this database is web enabled for presentation of the data, but is
>> only edited through FileMaker Pro. I sent this post to the
>> FMWebTalk list some hours ago, but didn't get it back yet, nor have
>> there been any messages there in many weeks...
>>
>> I've got a database I've setup working pretty well. It allows users
>> to log in and make changes to the database which is hosted on FM
>> Server 9.0v3. There are some web pages which draw data from this
>> database for presentation online.
>>
>> I'd like for the remote users to be able to run a script after
>> they've updated records. The script does a find, sort and then
>> create a PDF file of the results, which I want people to be able to
>> download.
>>
>> But I can't figure out how to have the "Save Records as PDF" script
>> step save the file to a predetermined folder on a server.
>>
>> My configuration is 2 machine - one running the Web Publishing
>> Engine, and the web sites, the other running FM Server 9.0v3.
>>
>> I'd like the PDF file saved to the machine running the WPE, and
>> indeed this works if I log into the database from FM Pro on the WPE
>> machine. But if I log into the database from any other machine it
>> won't save the file.
>>
>> The error message says:
>>
>> "MGCDelegates.pdf" could not be created on this disk. Use a
>> different name, make more room on the disk, unlock it, or use a
>> different disk.
>>
>> I've given the folder it's writing into 777 permissions and that
>> didn't work. I've tried using the IP number/pathToFolder, I've
>> tried using afp://pathToFolder etc etc and nothing I try works.
>>
>> Or alternatively if I could figure out how to have it saved to a
>> folder on the FileMaker Server machine, from where I can move it
>> with a Folder Action script to the WPE machine I'm sure. But I
>> can't figure out how to do that either.
>>
>> I must confess to being not entirely sure what the various file:
>> file:/, filemac, filewin etc protocols are exactly about, but I've
>> tried a number of ways to get this to work, and just can't figure
>> it out.
>>
>> So - is what I'm trying to do possible even - to have a script that
>> is initiated from within FileMaker Pro save a PDF file to either of
>> the FileMaker Server machine or to the WPE machine? If so, how
>> exactly would I set this up?
>>
>> Thanks for any insights
>>
>> Cheers
>>
>> Roger
>>
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
More information about the FX.php_List
mailing list