Jump 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.

Newbie question... layouts and printing

Featured Replies

Hi,

I am trying to automate the printing process. I have a form where I need to make a button that will allow you to perform a find first, and then take those results and print a report. I'm not really used to the layout system yet (coming over from MS Access). I make my printing layout so it looks right, but it looks goofy as a form view... only having showing one record. I don't want to confuse the user, so how can I make it so a certain layout (the final printing one) is ONLY in list view? I would like to do that and have a button to perform the search, then take those results and send them to the LIST ONLY layout... is this possible?

Thanks

Vandy

For my reports, I typically use a find layout and different report layouts that are all separate from the data entry and view layouts. A button would execute a report script.

The report script might look something like this:


Go to Layout [ Report Find ] //my find layout for reports

Enter Find Mode []

Set Field [ Status ; "Active" ] //example of setting predefined report criteria

Go to Field [ Name ] //put the user in a field they might use to limit the report

Pause/Resume Script [ Indefinately ]

Set Error Capture [ On ]

Perform Find []

If [ Get(LastError) > 0 ]

  Show Custom Dialog [ "No records found." ]

  Go to Layout [ original layout ]

  Show All Records

  Halt Script

End If

Sort [ Restore ] //Sort by my predefined sort criteria

Go to Layout [ Report - Address List ] //my report layout for this script

Enter Preview Mode []

Show Custom Dialog [ "Do you want to print?" ]

If [ Get(MessageChoice) = 1 ]

  Print [] 

End If

Go to Layout [ original layout ]

Enter Browse Mode []

 

Create an account or sign in to comment

Important Information

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

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.