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.

Aggregating fields across multiple related records.

Featured Replies

Long story short is I'm having a printing layout issue that I'm not sure how to solve.  I have a fire dept file that has an EventReport table and each event gets one record.  Related to the EventReport records is a Narrative table.  Officers from an incident can enter multiple timestamped narrative dialogs for a given event.  I have a layout on the EventReport table for printing an event report and I had listed the Narrative dialog records within a portal.  However i'm just having layout issues between windows and mac when printing and the portal records wouldn't line up with the page breaks and if I put a second portal on page 2 and it was empty I couldn't get that page to be skipped if the portal record was empty.   

I'm wondering if there is a way to just aggregate all the data in the related Narrative table records into one field that I can more easily work into a layout for printing from the EventReports layout?  

I hope I didn't leave out any important information.  I really value everyone time and don't want to waste anyones time, I just have no idea which direction to go with this.  

Thanks, 

Chris

How are the TO'S in question related?  Usually you print a layout based on the last related table-child, grandchild, etc.

Another way may be to just loop thru everything and put it into one temporary field using either the append technique or virtual list technique.  

Some screenshots or a sample file would help.  

  • Author

Thanks Steve.  The Narrative records are related to the Event records using the Primary Key of the Event.  

Here are some screen shots of what the users see.  The report in RED is the event report.  The ones in WHITE are the print layout of that same report.   My issue is that if a narrative is very short the print layout has a lot of empty space in that portal field until it gets to the next page which is actually another portal that starts are related record #2 and goes to related record #5. 

 

Screen Shot 2020-05-02 at 10.18.25 PM.png

Screen Shot 2020-05-02 at 10.19.04 PM.png

Screen Shot 2020-05-02 at 10.19.20 PM.png

Does every EventReport record have at least one related Narrative record? If yes, you can print your report from the Narrative table, grouped by EventReport (assuming you want to print more than one EventReport at a time).

If not (and even if yes), you can use a calculation field in the EventReport table to list the related narratives using the (you guessed it) List function. You may want to add another calculation field in the Narrative table to combine several fields together (e.g. who, when and what) for the List function to operate on.

 

Edited by comment

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.