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.

getting subsummary data into one text field

Featured Replies

I'm going to apologize in advance for the extremely long post, but I'm really stuck here and I'm hoping someone can help me out.

I have created a report that breaks down sales by account number, and contains subsummary parts broken out by different customers who use the same account. I'm pretty sure that the only way to get the subsummary values into fields that can be used in calculations and scripts is to export the data to another file and reimport the data into a file that contains the scripts and calculations that you want to use. (Can anyone tell me if there is another way?)

I'm sure everyone is familiar with how the subsummary data is formatted in the export.fp5 file, but I've attached my example file here anyway. My file has a script that consolidates all of the subsummary data into one text field in each "parent" record. (If anyone knows a way to set this up using self-joins and a single calculation field, I'm all ears... I can't see a way to do it) The way I do it in the script follows:

(Basically the script has a couple of loops that navigate to the records that contain the subsummary data and uses copy and paste to consolidate that information into the proper parent record.)

Freeze Window

Go to Record/Request/Page

[ First ]

Loop

If [ not IsEmpty(Budget Number) ]

Set Field [ all_info_summary, budget_quan_charge ]

Insert Calculated Result [ all_info_summary, "

export.fp5.zip

Hello Dana,

I believe it would be worth your while to investigate the GetSummary( ) function.

Check in the FileMaker help file for a description of how to use it. You will find that you can set up your script to write the sub-summary values using GetSummary( ), or alternatively, incorporate them directly into your calculations without using a scripta at all (though you will still have to sort the db by the 'break field' in order for the sub-summary values to calculate). wink.gif

  • Author

thanks again! This forum is really a great place to get help. Hopefully I'll be able to post some helpful info here one of these days.

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.