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.

Duplicate Record with script

Featured Replies

  • Newbies

Hello all,

I want to start out by saying thank you to everyone that takes time to answer questions on this forum... I've learned a great deal from Forum questions and problems posted by others and have been answered by the great folks in this FM Forums community!

Cheers!

My Question - 

Current Script is an If statement that changes my Maintenance_Task::status from "SCHEDULED" to "SERVICE DUE" when conditions are met in the Hours Field. Also an optional Checkbox to be used when task is completed. See script below:

If (TASK COMPLETED = "TASK COMPLETED"; "COMPLETED"; If (Engineering Machinery::HOURS ≥ NEXT SERVICE; "SERVICE DUE"; "SCHEDULED"))

I would like to have the "SCHEDULED" task be duplicated, and the duplicates status field be changed to "SERVICE DUE". Leaving the original record unaltered, and the new duplicate record to eventually make its way to a "COMPLETED" task and logged as so for records.

Can anyone tell me if this is possible...  If so how can i incorporate it into my current script? 

Thank you for your time

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.