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.

Saving field changes -help

Featured Replies

Hi guys, I'm a new FM user and just signed in the forum, hope to be posting in the right section (please move the topic if not).

This is the problem I got:

I have 3 fields named euro - usd - chf , set as currency values. Whenever I enter a value in any of those fields a script triggers and it calculates the currency value, i.e. if I type a value into "euro" I get the equivalent in usd and chf.

I have a "Manufacturing" table which contains theese currency fields.

For example:

ManufacturingID = M001

Cost:

Euro = 32

Usd = 42

Chf = 38

Sometimes it could happen that I need to change this manufacturing cost and I want the old cost to be saved in "Manufacturing Cost History" table. I tried to set up a script to do so and also tried to create lookup fields in "Manuf. cost history" but it didn't seem to work. Can anyone help?

Hope everything is clear, thanks in advance!

  • Author

I created 3 fields in "manufacturing cost history" table named:

"euroHistory"

"usdHistory"

"chfHistory"

The script I tried to set up is this:

"Update price":

GotoLayout [manufacturing cost history]

NewRecord[]

setField[manufacturing cost history::euroHistory;Manufacturing::euro]

setField[manufacturing cost history::usdHistory;Manufacturing::usd]

setField[manufacturing cost history::chfHistory;Manufacturing::chf]

GotoLayout[Manifacturing]

//erase euro-usd-chf

but it doesn't work..can't understand why.

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.