Sign in to follow this  
Followers 0
madman411

Allowing user to choose what to print on report

2 posts in this topic

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!

Share this post


Link to post
Share on other sites

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

 

1 person likes this

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0