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.
Juggernaut

status fields not evaluating all related line items

Featured Replies

I am making a solution for creating and tracking estimates and work orders. I would like to make a layout that shows the status of the work orders in each dept. that may be working on them. I have this set up in a list view that shows the different depts. with a calculation field for each that describes the status. This layout is based on the work order table. Each work order has a line item portal which is based on the line items table (the portal, that is). The problem I'm having is that each caculation field describes only the first line item for each work order instead of evaluating the status of every line item. If every related line item had status of "done" then I would like the calc field to indicate "done". If, however, only one of the related line items had status "done" then I would like the calc field to indicate "open". Sorry if this sounds confusing. I'm a noob and might have bitten off more than I can chew.

Edited by Guest

In the line items table, define a calculation field cDone (result is Number) =

Status = "Done"

In the work order table, define a calculation field (result is Text) =

Case ( Count ( LineItems::ItemID ) = Sum ( LineItems::cDone ) ; "Done" ; "Open" )

Note:

ItemID is an auto-entered serial number. You can count any field that is certain to never be empty.

  • Author

Thank you very much Comment. That makes complete sense and better than than, it works! I understand the concept now and can see where this could be used in different ways.

Again thanks for the quick response.

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.