Page 1 of 1
Alternate version for printing letters
Posted:
Tue Sep 11, 2007 2:39 pm
by sanjosecsz
Hi John,
I've pretty much got everything working now!
I'm trying to use the Alternate Version for Printing Letters, but after I modified the script per the documentation to the alternate version, I get a missing script parameter notice that says I'm missing parameters for operation, output, and found.
What did I screw up?
Posted:
Fri Sep 14, 2007 7:54 am
by John Sindelar
Hi. The layout "Select Letter" includes these parameters in the layout's "Continue" button. Depending on how you get to this layout you may need to change the way these parameters are sent. They are currently set to be local variables so if you're in a paused script and have already set the variables $found and $output you should be all set. If you haven't set them yet, you can hard code them into the continue button get the information in there another way. The script wants to receive something like:
"Operation = Continue ; Found = Many ; Output = PDF"
Posted:
Tue Sep 25, 2007 10:09 pm
by sanjosecsz
Unfortunately I can't get to the "Select Letter" layout when I attempt the alternate version. In fact, the only way I can get to it is to go into layout mode and scroll down. When I click on the "print letter" button I keep getting the script parameter error. I've tried everything I can think of.
Please help!
Posted:
Wed Sep 26, 2007 3:45 am
by Court Bowman
Greetings,
It sounds like you are close, if you have FileMaker Advanced, you can try running the scrip with script debugger on and seeing where the process is failing. You can also open the data viewer and make sure the parameters are getting passed or the variables are properly set.
I am not sure what is actually causing your error, perhaps if you can send us the file to
[email protected] we can take a look at it and see if we can see what is amiss.
Posted:
Wed Sep 26, 2007 8:02 am
by sanjosecsz
Thanks, Court
I'll send the file over, thanks!
Posted:
Mon Oct 01, 2007 8:14 am
by sanjosecsz
Did you receive the file I sent over?
Thanks,
Jeff
email
Posted:
Mon Oct 01, 2007 6:39 pm
by Court Bowman
Jeff,
I did not receive it, please resend it if you would.
Posted:
Mon Oct 01, 2007 9:05 pm
by sanjosecsz
Hi Court,
I just resent the file. Subject is "Alternate Version for Printing Letters"
It's a zip file about 5 megs.....let me know if you get it!
Thanks,
Jeff
Posted:
Tue Oct 02, 2007 6:05 am
by Court Bowman
Jeff,
This one came through, I will try to take a look at it today and see what I can discover.
Posted:
Thu Dec 20, 2007 3:16 pm
by macfreq
Court, did you find out what the problem is with the Print Contact Letter - Alternate Version script?
I'm having the same problems with the script. I have FMP Advanced and in script debugger I can see that no Operation parameter is getting passed to the script. This is why I keep getting the missing parameter error.
What should the Operation parameter be set to? Continue?
Thanks,
Tom
Posted:
Thu Dec 20, 2007 7:31 pm
by John Sindelar
Hey there.
The script is supposed to be called from the "Select Letter" layout which has the correct parameters. Normally you'd bring that up in a new window and then call the script.
However, I've since rewritten the whole thing as a new script which might be easier. You can find it
here.
Call this with the parameter "Operation = Begin" to get started. Then edit the buttons on the "Select Letter" layout so Continue calls this same script with the parameter "Operation = Continue" and Cancel calls it as "Operation = Cancel". Both buttons should be set to exit the current script.
Of course if you're using SeedCode Complete, we have a new version with this in it and I can send you that file. Just email me directly (john at seedcode.com)
Hope that helps.