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.

Featured Replies

Hello all. 

 

I have a question that it's not clear in my mind on whats the most efficient way of doing this.

 

I have 2 tables:

 

1 - exercise Type ( id, name )

2 - exercises ( id, type, name )

 

So in a layout i have a portal that is pointing to the exercises table, in the same layout I have a checkbox field with a value list that points to the exercise types

 

For example:

--- Exercise Types

 

Bicep

Tricep

Plyos

Sprints

and so on...

 

--- Exercises

 

Bench Dips (belongs to Tricep)

Rope Pushdown (belongs to Tricep)

Broad Jumps (belongs to Plyos)

Squat Jumps (belongs to Plyos)

and so on...

 

What I need to accomplish basically is that every time an "exercise type" is checked the portal adds up and displays the exercises based on that type, so the found set on the portal will increment as more checkboxes are checked.

 

Thanks in advance.

 

Lucas

If your relationship is based on the type field in both tables, that's about all there is to it.

  • Author

Thanks for replaying

 

I attached a copy of the file so you can understand better my situation.

 

Regards.

db.fmp12.zip

What Fitch said: if you have a field formatted as value list, the field can act as multiline key.

 

But for that to work, you need to define your relationships, and your value lists correctly; in that case, a value list that is based on 1: field: primaryID, 2: a text field. Also, you're not matching the correct fields.

 

Last but not least, in your file the foreign key exerciseType in the Exercises table doesn't hold the primary key from the ExerciseTypes table, but the body part name. I corrected this in the attached file, but you need to make sure that you insert that primary key when setting the exercise type, i.e. change the procedure that's in place.

db_eosMOD.fmp12.zip

  • Author

Perfect, thank you very much for the explanation as well as the solution.

 

I checked the file and it made sense, I was not looking at the right data. I'm very appreciated for your help Eos.

 

Regard, Lucas

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.