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.

Summarizing repeating fields?

Featured Replies

I have an invoice layout that contains repeating fields for quantity, style number and color. What I would like to do is summarize the quantities for each product (by style number) so we can obtain the quantities for the top purchased products in the past six months, and therefore know which products (and in which color) we should bulk purchase.

The trick is (at least to me), since we use repeating fields, the lines vary, and the products are often listed on different lines from record to record. I am unsure of how to create fields on a new layout to summarize by product.

I'm sure there is a simple solution to this problem, I just do not know FM very well.

Thanks in advance!

-Courtney

cpatubo said:

I'm sure there is a simple solution to this problem, I just do not know FM very well.

Not really Courtney. Since you use repeating fields, this would be a *big* pain in the....

I've lost much of my "repeating fields" knowledge, but IMO, this would be done by investigating each repetition, in each invoice, using a Loop script.

Once you've buil it, go take a cup of coffee and wait for processing...and while you drink it, think of implementing some relationship principles, which would make your life *really* easy.

Ugo is right, you should really migrate to Invoice--LineItems structure instead on Invoice+RepatedFields

To achieve this simply export data (invoiceID + all repeated fields regarding products)from your current Invoice db to new database with option export each repetition in new record enabled.

BTW, Ugo, I'm struggling to find the "any" key on my keyboard, maybe I should by the french version... crazy.gif

Dj

  • Author

Ugo DI LUCA said:

Once you've buil it, go take a cup of coffee and wait for processing...and while you drink it, think of implementing some relationship principles, which would make your life *really* easy.

LOL... the coffee part sounds splendid.

I'd rant about my client here, but that is a whole new topic/headache. I created their DB to spec (it was efficient when it was first created), then they decide to change their minds every week... mad.gif

I am all about efficiency, and wish I had a clear idea of what their goals were in the first place...

  • Author

djgogi said:

Ugo is right, you should really migrate to Invoice--LineItems structure instead on Invoice+RepatedFields

Understood. I guess I did it the old fashioned way. blush.gif

BTW, Ugo, I'm struggling to find the "any" key on my keyboard, maybe I should by the french version...

I've tried...

any-key.jpg

Nice one !

Dj, have you tried Ctrl+Alt+Esc tongue.gif

I should have wrote "hit any key", but then I wish I knew that girl called Annie K.

What a hell her life must be...

grin.gif

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.