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.

autoenter based on relationship failing

Featured Replies

I have a FM7 file(&table) "tableChooser" and file(table) "software".

The user logs into "tableChooser", his/her name is set in a field "login", then s/he selects (check boxes) one or more files(tables) to open, clicks a button that then opens whatever file(s)(table(s)) are chosen.

"tableChooser" has a global storage number field "gConstant" set to "1", which is related to (=) "software::gConstant" (with the same settings as in "tableChooser::gConstant"). I don't think there is anything in this relationship causing problems; just mentioning it.

In "software", I have a field set up this way:

software::created_by

Text

Auto-Enter

Calculated value = tableChooser::login

Do not evaluate if all referenced fields are empty UNCHECKED

Do not replace existing value of field (if any) UNCHECKED

Validation:

Validate ... Only during data entry

Allow user to override during data entry CHECKED

No requirements.

When I create a new record, software::created_by is not populated, however when I run a duplication script, this record properly populates the field:

Set Field [software::created_by; tableChooser::login]

I realize the mechanism is different; just showing this so that the relationship can be shown as working. Ideas? Thanks.

Ken

"..."tableChooser" has a global storage number field "gConstant" set to "1", which is related to (=) "software::gConstant"..."

The right hand side of the relationship needs to be a stored indexed field. It cannot be a global.

Try changing the operator to x.

  • Author

Outstanding, that worked great! At this point, should I even bother with changing the storage type, since "x" works? Thanks.

On a related note, I have another file/table (hardware) related to the file/table "tableChooser" in the same way, and the created_by field works in this case. More digging to do there I suppose....

Ken

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.