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

Forcing A global to recalculate?

Featured Replies

On My "Sales Order" layout I decided to put the number of orders that had not been printed so that the people who were taking orders remembered to print them.

I did this by creating a new TO based on the "Sales Orders" Table called "Pending Orders" joined by a universal (X) Relationship. I then have two fields

PrintStatus = If ( IsEmpty ( SalesOrders PrintLog::Sales Order ID); "Not Printed"; "") // sets the print status to "Not Printed" if there are no entries for that order in the print log

and

CountNotPrinted = Count(Pending Orders::Print Status)

This works fine except the database performance has taken a big hit. I tried to make CountNotPrinted a global field. That improved the database performance but it only recalculates each time the file is reopened which in our case is only once per day. Is there a way to leave the field as a global but force it to be recalculated more often?

Thanks in advance

Your on the right track to create a separate table with records for tasks you want to accomplish, a global is only available to each user and the globals of the last user in are the only one stored.

when you create a task you simply create a record in another table with a time stamp and a status, and also the part its assigned to. You can display this data in a portal on in your solution where it makes sense and once items are complete you could via a multi predicate relationship have them disappear from the portal, instead of a "X" or Cartesian relationship, then its just a matter of counting the items in the portal.

  • Author

once items are complete you could via a multi predicate relationship have them disappear from the portal,

Could you explain this a little more? namely how do I get FM to display in my portal only those records which have a certain "Status"

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.