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

Allowing user to choose what to print on report


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

Recommended Posts

Posted

Hi everyone

I've created a window that opens when the user chooses to print a report. I would like to give them options on how to generate this report (or which layout to go to depending on their selected options). The client is very picky about choosing what information they want available when they print certain reports. Of course, I want to allow them a few options to choose from so they can provide more/less info should they choose. A few of the options I've provided as checkboxes in a global field:

- Show line amounts
- Show line comments
- Include order disclaimer
- Show system order notes

etc...

I know a script using IF statements could direct FileMaker to the correct layout to print, but I feel this could be a very hefty script and quite hard to keep track of when using "show line amounts" and "show line comments" as the results. Perhaps there's a way to calculate the correct layout using a numerical result?

Thanks!

Posted

I'd use a master script, well commented, that then directs to sub-scripts to produce the results... 

# Master Script for Reporting
# Created madman411 - 2016-01-20
Allow User Abort [Off]
Set Error Capture [On]
# Master branching script
Set Variable [$report; Reports:Global_Report_value]
If [$report = "Some Value"]
 Perform Script ["Some value Report"
ElseIf [$report = "Another value"]
etc etc

 

  • Like 1

This topic is 3231 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.