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.

printing script only works part of the time

Featured Replies

I have a printing script that I wrote that only works part of the time. Basically, whenever I open the file and print one of the records, it prints fine. If i hit print again on that record or any other record it only prints the FIRST record. If i quit out of the program and go back in, then it will do the same thing (print correctly and then not print correctly). I am using OSX.2 and FM6. Here is the script which is place on a button for the current record:

Set Field ["gID", "Status(CurrentRecordNumber)"]

Allow User Abort [Off]

Omit Record

Show Omitted

Go to layout ["Print"]

Enter Preview Mode []

Page Setup [Restore]

Print[]

Enter Browse Mode[]

Go to Layout [Original Layout]

Go to Record/Request/Page ["gID"]

Show All Records

Perform Script [sub-scripts, "Screensize"]

Any suggestions? Also, FM only returns to the current record on the first print every other print it goes to the first record.

Thanks,

Shana

Status(CurrentRecordNumber) gives the record number in relation to the current found set. You are changing your found set with the omit, show omitted steps.

If I'm reading what you want to do correctly, try:-

Allow User Abort [Off]

Show all records

Omit Record

Show Omitted

Go to layout ["Print"]

Page Setup [Restore]

Print[]

Go to Layout [Original Layout]

Perform Script [sub-scripts, "Screensize"]

  • Author

That seems to have worked so far!!! Thanks.

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.