Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Allowing user to choose what to print on report

Featured Replies

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!

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

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.