January 20, 201610 yr 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!
January 20, 201610 yr 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
Create an account or sign in to comment