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.

Value List from join table

Featured Replies

Any help on this would be great, I'm stuck. I have a project table that connects to a location table with a join table. Locations can belong to multi projects. I then have a media table that connects to the project table with a join table. A single media file can belong to many projects. I have portals viewing and creating all these records...works fine. Now I want to be able to assign the media to locations based on the list of locations that correspond to the projects assigned to the media. I can use a global field to give me a drop down showing only the active project locations. But if I assign two or three projects to a single media entry (via Portals), I would like the drop down list of locations to be driven by the corresponding records created in the location/project join table. Meaning if media record "45" has projects 1,4,5 assigned, I only want to see locations assoc. with those projects. whew... help!

Am I misunderstanding something?

it seems as if it works for me. Try this sample and let me know if this is what you were looking for.

media.zip

  • Author

Thanks for that. here is a stripped down version of what I've got so far. Go in as a guest and select any project. Then click the button to the media asset page and I've written my issues out there. navigation and many things are messed up but this part is working. I may have a structural problem with the tables... please give it a look. I know enough to be dangerous but I've probably missed an easier way.

mediajoinsample.zip

For the problem on hand, make your value list look like this image.

Also, you may want to clean up this database. It seem as though it may become messy. Also there are data mismatches in some locations. In one calc under the MediaAsset Main table, you have it resulting as a number when if it fails your conditional statement it will result with the text "null". In addition, I would suggest using the Case statement instead of this nested If.

Try this

// Cleaned up formula

Let ( ma = MAType ; 

                    Case ( ma = "Video Tape"; 1;

                           ma = "Digital Video File"; 2;

                           ma = "Graphic"; 3;

                           ma = "Audio File"; 4;

                           ma = "Still Image"; 5;

                           ma = "Other"; 6;

                           0      // Either change the result data type to be text if you want the word "null" or use 0

                         )

    )



.

value_list_screenshot.jpg

  • Author

Thank you so much for your input. I'll dig into this and see where I get. And yeah, I have lots of cleanup to do. Cheers.

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.