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.

Another auto-enter calculation conundrum

Featured Replies

I have a field that I want to be filled in as "Archived" if another field (with a calculation specified to equal a field on another table, as referencing the other table did not work either) is not blank; otherwise, I want the first field to be editable, preferably via something like a drop down list of other choices ("Discarded", "Repurified", Edit...). I know that calculated fields can not be edited nor have drop down lists, so I actually set up the field type as text with an auto-enter calculation.

All I really want is a particular entry to auto-enter for one condition and a choice of entries if that condition is not met. I was able to do this for another pair of fields in the same table, with the same set up conditions:

----

Field Type: Text

Options: Auto-Enter Calculated Value, Case ( test1; result1; result 2), replaces existing value

Field Control Style: Display as Drop-down List

-----

If anyone could let me know why my first field is not behaving the same way and how to fix it, I'd be most grateful. Thank you!

Are the tables related? If so, place the field you are referring to on the current layout. If you don't want it to show you can make it transparent and only 1 pixel wide and high. The calculation will still get the data.

hth

  • Author

Hi aldipalo,

Yes, the tables are related. I've tried two ways of placing using the reference field in the targeted layout--by inserting the field from the other table (a "Display data from" :P: relationship) or by creating a new calculation field on my layout table that evaluates the field from the related table to equal the reference field (lists it as Unstored in the Manage Database window). Neither way of placing the field in my target layout allows the auto-entry calculation for the other field. Is there another way of placing the field in the current layout that you think may work?

Thanks!

Can you post a clone of your file with a few bogus records for us to look at?

  • Author

Here's a downsized version to review. Thanks again for your help.

The ExtractionFate field is set up in the ExtractTable layout to be a drop down list; in Manage Database, I want this field to auto-enter "Archived" if the StorageLocation field has an entered value (comes from related table Storage field "StorageLocation"). Otherwise, I want the user to be able to select an option from the All Extract Fates value list. (The ExtractConcentration and ExtractionConcPass fields are set up similarly and are functional.)

Test_fusaro.fp7.zip

It's asking for a UID and password.

Edited by Guest

  • Author

I neglected to mention that I had given the Guest Account login full access (no password). That should work.

Hmmm, if I make ExtractionFate a calculation it works, but AutoEnter does not. Perhaps someone else can take a stab at it. I "think" the problem is the way you are updating/entering the data doesn't allow the AutoEnter calculation to work. From what I can see of your script you are going to several different layouts to create an entry. Also, your calculation should be:

Case ( Not IsEmpty(ExtractionStorage); "Archived" ) Rather than Case (ExtractionStorage > 0; "Archived" )

Sorry I couldn't be of more assistance.

Auto-enter calcs do not update when a related field is modified.

Hi John:

So what could he do for a work around?

I thought perhaps a calc field under the ExtractionFate field?

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.