Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7146 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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

Posted

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.

Posted

Ah! Thats your problem, try this instead:

Show All Records

Omit Record

Show Omitted

Print

--sd

This topic is 7146 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.