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.

Featured Replies

This is a new area in FM for me even if it is, I believe, one of the most basic in db.

I try to make total field that only gives the total based upon present year, so when the next year come the total shows only total based upon invoices from that new year. I have seen db examples in the FM extras folder where you make reports with scripts to give totals. That is not an option. What I'm thinking about is if it was possible to use the formulas to achieve this?

Thanks!

Hi Snekkis,

You might consider isolating your summaries by using a relationship.

Left Key global (year) or unstored calc with Year(Status(CurrentDate))

Right Key calculation (index ON) = Year(InvoiceDateField)

Then base your summaries on the new relationship. If you use a global, you can populate it with Year(Status(CurrentDate)) upon db Startup or allow Users to enter a year during your report script process smile.gif

LaRetta

  • Author

I got it! But not as I hoped for. I did what I understood and made a startup script.

Thanks for helping me to think!

For others convenience, or for those who want to polish my solution, here is what I did and what worked for me:

Go to Layout["FindLayout"]

Enter Find Mode [Restore]

Perform Find/Replace[No dialog, "InvoiceYear", "","Find Next"]

Perform Find[Restore, Replace Found Set]

Set Field["GlobalTotal", "Get record summary"]

Show All Record

Go to Layout [Refresh window, "Main"]

Feels good!

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.