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.

field Calculating after I click off the record?

Featured Replies

Hi I have a calculation field in my Invoices file which I use for my relationship.

The calculation field is called jobnolink and contains an If statement. The Exact code is

If(Sum(INVOICE_SelfJoin::LocationID)>1 and INVOICE_SelfJoin::InvoiceNu = InvoiceNu;

JobNum;JobNum & "_" & InvoiceNu;JobNum)

The calculation, seems to kick into place when I click off the record, is there anyway I can make it calculate immediately without having to click a refresh button or go off the record.

By the way the Invoice_SelfJoin relationship is based on a field called JobNo and the LocationID is a Number field which has 1

No. FMP recalculates only after the user has finished editing. It knows they have finished when they have exited the record.

Jalz said:

The Exact code is

If(Sum(INVOICE_SelfJoin::LocationID)>1 and INVOICE_SelfJoin::InvoiceNu = InvoiceNu;

JobNum;JobNum & "_" & InvoiceNu;JobNum)

Something is wrong anyway in your calc.

On the other side, from my reading, as LocationID is an autoentered value of 1, you're making sure that there's only one record, by checking either If Sum of 1 =1 and If the first record in the Invoice File is this InvoiceNumber.

Then, why not have something like

JobNum& Case(Max(::INVOICE_SelfJoin::InvoiceNu) = InvoiceNu;"_"&InvoiceNu)

The calculation, seems to kick into place when I click off the record, is there anyway I can make it calculate immediately without having to click a refresh button or go off the record.

As Vaughan said, you need to exit the record. If this calc gets calculated at creation of the Invoice, then you could include a "Exit Record" step in a script "Create Incoice".

HTH

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.