Sari Posted May 4, 2005 Posted May 4, 2005 Hi, I've got a layout(15) that has purchase orders entered into it. When the user has completed it, they may send it to print onto headed paper (layout 15a) or PDF it where the headed paper is included on a layout (15b). The user selects either a button labelled PDF or Print to select the option they want. This works beautifully the first time I run the script when I initially create a new record but if I want to go back to the Purchase Orders later and print or PDF I get an error message that tells me that there are no valid criteria in this request. I've included the script as an attachment. POPrint.pdf
Søren Dyhr Posted May 4, 2005 Posted May 4, 2005 Shouldn't it be "Paste" in Find mode??? Eventhough I hardly ever endorse Copy/Paste when scriptparameters are around. There are a flaw in the reasoning as well, why search for the same record as the located one in a new layout ...you flip between several layouts but stays in the same record, so the need to search is redundant! --sd
Sari Posted May 4, 2005 Author Posted May 4, 2005 Thanks - I have to play around to get what I want because I'm a bit of a novice! The reason I perform a find is so that I end up with only one record because otherwise we end up printing/PDFing all the records! I'm not sure what you mean about scriptparameters but would love to know if you have the time.
Søren Dyhr Posted May 4, 2005 Posted May 4, 2005 Ah! Thats your problem, try this instead: Show All Records Omit Record Show Omitted Print --sd
Recommended Posts
This topic is 7490 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now