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.

Preview mode show more then related record

Featured Replies

  • Newbies

Hi,

I'm new. I want to print an invoice type report. I go to the related record in browse mode. This is working fine. When I go in preview mode, it shows me all related record. I just want to print the related one. How can I do it ?

This is the script that I use :)

Go to Layout ["p_Invoice" (Invoice)]

Go to Related Record[show only related records; Match found set; From table : "Invoice" ; Using layout : "p_Invoice" (Invoice)]

Enter Preview Mode []

Pause/Resume Script[indefinitely]

Go to Layout [original layout]

Enter Browse Mode[]

Regards,

Riko

Edited by Guest

I don't understand your script. It gtrr from Invoice to Invoice matching found set?

An invoice usually has two tables, Invoices and Invoice Line Items. You would gtrr from Invoice to Invoice Line Items by Invoice ID match current and print. Then go to layout Invoice.

  • Author
  • Newbies

Hi,

Thanks for your response. This is the situation :)

I have a customer layout, I click on the Portal Item List of Invoice. This brings me to another Layout at the good invoice with all the good Invoice Items. I have created another Layout for printing the Invoice. I have made a button for printing the Invoice, the moment I click on that button, I put the Layout in Preview mode for printing, at that moment I do not have the good invoice. This is my problem.

I hope I am more clear.

Thanks,

Edited by Guest

The button for printing the invoice should go to the related Invoice Line Items, and using a layout based on invoice line items, print records browsed. Then it just goes back to Invoice layout (you'll still be on the proper Invoice record).

You are printing the Invoice using a layout based on your Invoice table. Do you have an InvoiceLineItems table? Preview will show the first Invoice in the found set, not the current invoice. To preview the invoice, it must be the only record in the found set.

However, all this is beyond the point. You need to print from the LineItems table.

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.