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.

Trouble with a Calculation

Featured Replies

The problem is you cannot reference non-global fields from an unrelated table.

I want to calculate, whenever used, the current day of the year. Every reference number in my system uses the last 2 digits of the year, plus the day of the year "dash" serial ID.

My calc field for 3 digit days of year.....

Right ( Year ( Get(CurrentDate) ) ; 2 ) & Globals::DayOfYearCalc &"-" & ( RightValues ( SalesOrders::SO_ID ; 3 ))

The DayOfYearCalc is ...

If (DayOfYear (Get(CurrentDate)) < 100; 0 & DayOfYear (Get(CurrentDate)); DayOfYear (Get(CurrentDate)))

The global DayOfYearCalc calculation field does not calculate if it is set as a global (Dataviewer shows the field as blank, unless I change it to unstored). If it is set as unstored, it cannot be referenced, as an unrelated table.

I have taken to putting this calculation into every table occurrence, but it seems grossly redundant.

Edited by Guest

The global calc will NOT recalc as such. You need to reference a field that will make it retrigger. Either reference another global field in the same table with the current date ( set it with opening script ) or you can just simply have your opening script set it to the the value that you want from the get go.

If nothing retriggers the global calc, it will take the value of what it calculated at the time it was served, much like any other global.

Why do you need this in every table occurrence?

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.