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.

Newbie with relationships (or scripting?) problem

Featured Replies

  • Newbies

Hi there-

Although I've used FM for several years, I've never progressed beyond the pre-scripting (and other bad*** stuff) level. I've tried searching for the resolution to my problem, but part of my problem is I'm not sure what the term is for what I want to do. I'm not sure if this is a relationship issue or something that can/has to be done via scripting.

In a nutshell, I'm looking to have certain fields (containing a static menu list of options) "auto-input" based on the manual selection of another field (also containing a static menu list of options). So basically:

Menu A:

Foo

Lorem

Menu B:

Bar

Fubar

Menu C:

Ipsum

Dolor

So basically what I want to happen that if I selected something from Menu B ("Bar" or "Fubar"), Menu A auto-selects "Foo"; similarly, selecting "Ipsum" from Menu C will automatically set Menu A to "Lorem".

I know this sounds like a pretty silly thing; I'm willing to admit that maybe I didn't design this database as well as I could have (in which case, I'd be happy to give a better idea of what it needs to do in the attempt to do a more effecient design). I'm looking to ease/speed the data entry phase; the different menu selections are there for different reports that are run on the data (and reports that haven't been even thought of could work off the existing data).

I skimmed over the manual on the relationship chapter, but from what I can tell, that's more for "mirroring" existing data, not enabling a more intelligent & faster data entry method.

Any help would be VERY MUCH appreciated!

Thanks in advance!

Brian

How about when defining your fields, create an Auto-Enter for MenuA based upon contents of MenuB or MenuC. You could do a simple: case ( MenuB = "Bar" or MenuB = "Fubar", "Foo", MenuC = "lpsum", "Lorem") in your example.

This of is a very simplistic example. If you needed to change the autoenter options for MenuA, it would require redefining MenuA. If you will have many other options, or if the options change, you would want to make this happen with a lookup table.

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.