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.

Automatic record creation by calculation

Featured Replies

  • Newbies

Good morning Team,

This is my first post, so I hope to explain my problem quite well.

Right now im designing a db to keep tracking on a corrective and preventive maintenance tasks, so i already have the tables and i'm working on the reports and charts I expected to fm gives me, but I wanna say to fm, that creates me a new record according to a certain logical criteria, let say:

I wanna keep track on all the injection molds my toolshop has and evaluate if they need preventive or corrective task,so I have a field to enter the number of shots that every mold gives me after a running, let say 13000 shots, after I input the number of shots, I wanna fm tells me that this mold needs preventive maintenance due a criteria on the number of shots, actually I'm planning to use 3 criteria let say 250000, 50000, 900000 shots, so I need fm creates me a new record with the preventive task, to programming it.

Sorry I wasn't clear.

Best regards

Pablo Ulloa

I don't think you need a new record (and it isn't clear in which table you think you need a new record). My impression is you need a flag field on a "mold" record that looks at the number of shots and if over your #, then equates to 1.

flag_NeedsPrevMain = if ( totalShots > prevMaintQuota; 1; "")

You'd also need a way to "reset" the totalShots after a maintenance.

What is your data model?

  • Author
  • Newbies

Thanks for your reply, but could u explain me what's the meaning of flag field, and how can I make a reset as u say?

Thanks for your support

I really appreciate it!

As soon as you answer my question, "What is your data model?" This is a fairly sophisticated setup. I see the need for a table of molds, a table that records the shots (maybe each run?). A table of preventive measures. Can you offer a paragraph describing the work flow?

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.