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.

Do I need relationship, script or both?

Featured Replies

I'm brand spanking new at FM and working on my first app which is to track my budget and expenses.

My db has two tables: Budget and Transactions.

In the Budget table I have the following fields:

Account Name; Account Type; Budgeted Amount; Current Balance; Difference; Budget Month

In the Transactions table I have the following fields:

Date; Description; Comment; Check Number; Amount; From Account; From Account Type; To Account; To Account Type

What I want to do is increment or decrement the Budget::Current Balance field for given Accounts when I enter a transaction.

In other words, I'll enter a transaction, say for 15 dollars, from the Cash account to the Eating Out account. In the Budget table, I want the current balance for Cash decremented by 15 dollars and the current balance for Eating Out incremented by 15 dollars.

I guess I need to do this by a script, but I'm not sure. And if so, would I need to build some relationships between the two tables?

Currently, the tables are related as follows:

Budget::Account Name -> Transactions::From Account

Budget 2::Account Name -> Transactions::To Account

I do this so that I can automatically enter From Account Type and To Account Type in the transactions table. I use these for various reports.

I hope I've made this clear. I'm not too sure about the terminology yet.

Any help would be greatly appreciated.

Thanks!

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.