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.

Filter Records

Featured Replies

  • Newbies

I have a FM file with Students and Classes, each record has a unique ID and are connected via a join table.  Each student can have more than one class. Students can not change their classes, only the Admin. I want each student to be able to see the student data of those who have at least one of the same classes. Any suggestions on how to set this up?

One way you could set this up is to have the startup script navigate to the user's record and populate a global variable with a list of the related classes IDs. Then allow the users to view records in the Students table when:

AccountName = Get ( AccountName )
or
not IsEmpty ( FilterValues ( $$myClassesIDs ; List ( Classes::ClassID ) ) )

 

  • Author
  • Newbies

I don't understand where the above allow statement goes, in a perform find?

No, it goes into the definition of the students' privilege set. Maybe you need to better explain what you mean by:

23 hours ago, YellowBird said:

I want each student to be able to see the student data of those who have at least one of the same classes.

I  understood it as "deny access to records of students that do not have any class in common with the current student user" -  but your response suggests you may have meant something else.

If you want to create a found set of all students that share at least one class with the current student, you could do:

Go to Related Record [ Show only related records ; From table: “Courses” ]
Go to Related Record [ Show only related records ; Match found set ; From table: “Students” ]

 

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

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.