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 from specified portal rows

Featured Replies

I am a teacher in the process of creating a database for staff use. The database contains a number of portals. In one portal, I have included a print button which shows in every portal row. I had hoped that the print button would use the field data in that portal row and use it in a letter to be printed out. Alas, it is not working as it appears that only data from the first portal row is being used.

Simply, how do I ensure that, if I click the print button in the 4th portal row, the field data in that row gets used in the letter, and not the field data in the first portal row?

Many thanks!

Frank

You are going to need to provide a lot more information about what you are doing.

  • Author

The portal has a number of fields. I would like the contents of those fields to be included in a letter. By including a print button in each portal row, I was hoping to use the field data in that portal row in a letter that would be printed after I click the print button connected to that portal row. At the moment, regardless of what portal row print button I click, only the field contents of the first portal row are used - not what I want (unless I want to print from that row).

Hope this helps.

This is the print script attached to the portal row buttons

If [ IsEmpty ( Zero Award::Date ) ]

Show Custom Dialog [ Title: "Reminder"; Message: "There are no details for a Zero Award Letter to be printed out"; Buttons: "OK" ]

Exit Script

End If

New Window [ Name: "LetterZeroAward"; Height: 800; Width: 675 ]

Go to Related Record [ From table: "Zero Award"; Using layout: "Zero_AT0N Letter" (Zero Award) ] [ Show only related records ]

Perform Script [ "PreviewPrint" ]

Close Window [ Current Window ]

Adjust Window [ Maximize ]

Enter Browse Mode

This is the PreviewPrint script

Allow User Abort [ Off ]

Set Error Capture [ On ]

Print Setup [ Orientation: Portrait; Paper size: 8.26" x 11.69" ] [ Restore; No dialog ]

Enter Preview Mode [ Pause ]

Print [ ]

Enter Browse Mode

Frank

Make sure that the GTRR step is based on the same relationship as that on which the portal is based.

Your new window step is the problem. You've lost focus on the portal row at that point. Instead, you should be using the the GTRR with show in new window turned on.

  • Author

Thanks to all who helped with my query. What I did was to put New Window line after the GTRR line (as recommended by BruceR - and it worked!

Thanks from DownUnder!

Frank

  • Author

Sorry - my previous posting was incorrect! I misread BruceR's previous answer! I went again and did what BruceR specifically said - and it worked! Thanks BruceR (and transpower).

Frank

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.