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.

Summarize just the shown contents of a portal.

Featured Replies

I have a print form set up to print multiple pages. It uses several tabs, showing the related records in a portal with a finite number of rows on each (1-25, then 25-50, etc.), and the print script switches tabs as needed for the count of related items.

I now need to place a quantity total below on each tab, summarizing just the quantity field from related records of the portal range shown on that one tab.

So I need to a field to calc sum(quantity) from related records 1-25, and another for 25-50.

Trying to find something more graceful than a written out Get Nth, given I am recursive-challenged.

No sort on the portal, this is just based on count 'range' of related records as entered order.

This is real just about summarizing the records by range, and the portal itself is irrelevant.

Of note, it's a preprinted triplicate form on a roll fed strike printer, and requires precise graphic alignment, so would prefer to maintain the tabbed pagination rather than redo and face alignment issues to utilize summary breaks just for this one new addition.

Of course, this would be a lot easier if you simply printed from a list layout of the child table. Still, have a look at the attached.

SumRange.fp7.zip

  • Author

Of course, this would be a lot easier if you simply printed from a list layout of the child table.

RUNNING total! Beautiful, many thanks!

Yes, a child report would be a no brainer (except for pesky alignment issues), but this will make the user very happy.

  • Author

Refined so it doesn't mind a partial filled portal, and my hard coding for the portals.

Let( [

CountTotal = Count(parent::children);

StartN = 1;

EndN= 25;

RunTot = children::Quantity_srun];

GetNthRecord ( RunTot ;

If (CountTotal < EndN; CountTotal; EndN) ) -

Case ( StartN > 2 ; GetNthRecord ( RunTot; StartN - 1 ) )

)

Thanks again!

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.