PDF in WebDirectby JanSTP
This module uses my ‘Perform script on other client’ method to generate a PDF in WebDirect.
The technique I use is fully FileMaker native. In fact it is just the ‘onRecordLoad’ script trigger…
I have a layout especially for the robot with a script on the ‘OnRecordLoad’ script trigger. The robot is just viewing this layout.
Now you have two options:
1. You delete all the records in the table first and let the robot wait without any records loaded. The moment a record is made, the script will run on the robot. The creation of the record can be done from everywhere: another client, WD, by the server, FMGo, …
2. The second option is that you let the robot ‘sit’ on a particular record. When you delete that particular record from another session, the ‘OnRecordLoad’ script trigger will also be fired at the robot…
Once the robot is triggered you will need of course a sort of session table to let the robot know what he has to do.
At the end of the task, the robot can then trigger the client to say: ‘Hello I’m ready!’
Great!? Isn’t it?
See the links below for more information about the technique:
– ClickWorks blog article
– YouTube video from FileMaker Pro Gurus about the technique
The robot can be on the server machine itself ( best on another user ). This keeps the technique reliable and fast.
Some of the advantages:
– on click
– no plugins
Click on the following link for the module with example: PDFinWD_20170420.fmp12
( updated on 2017.04.20: refresh window added + double suffix ‘.pdf’ problem fixed )