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.

Calculation Field in a portal not working properly

Featured Replies

I'm working on a simple Invoicing database with a line items table and an Invoices table. In the line items table I have a Calculation field called "formatted_time" that formats the time spent on a job. For example, if I spend 69 minutes on a job the "formatted_time" field shows "1 hour 9 mins". This works as expected in the line items table.

However, when I put a portal in the Invoice table the calculated "formatted_time" field doesn't work properly. If there is only one line item in the portal - the formatted time works as expected. But if there are two line items the "formatted_time" doesn't show properly. Each "formatted_time" field shows "1" - no matter how many hours or minutes were worked.

Seems a strange one to me. Anyone any ideas where I'm going wrong? I know for print-outs I should be working from the line items table - but that's another day's work.

Regards

Andrew

Try keeping the field "formatted_time" inside the portal tool. I have faced a similar problem where the calculation result shows "1" but when I kept the field inside the portal tool in a portal row, it worked fine.

Problem may be caused because of sellecting field from different relation, not same as portal's relation.

Adam Djuby

  • Author

Ok, I've made a little bit of progress. The problem is to do with the relationships between the tables. I have two instances of the line items table in the relationship graph. If I base the portal on line items 1, the formatted_time comes out correctly, but the description and price are the same for every row. If I base the portal on line items 2, the formatted_time is the same for every row, but the description and price is correct.

I've obviously got problems in my relationship graph that I'm going to try and sort out.

Thanks for your help.

Andrew

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

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.