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.

Degree of Participation

Featured Replies

Does FMP allow for a degree of participation? For instance, if I have a db with Agents table and Clients table (w/appropriate keys), how can I limit the agents to no more than four clients. In ERD this is often written as (1,4).*

*(Witht the presumption that an agent must have at least one client. Could also be written as (0,4) if the agent need not have any clients, etc.

Thanks.

dan

If you run your solution as client/server either with a Filemaker Server or with a filemaker client as a host, you can create a startup script, which check for current user count. ( Get(CurrentUserCount) )

With this, you can quit the client number 5 (or whatever number)

There is nothing in FMP that specifically enforces this constraint. You can get close through the validation mechanism using the calculation option.

To enforce the maximum create a self-relationship for the "Client" table using the foreign key for the "Agent" as the self-join key. This will link a client to all other clients of a particular agent. Then create a validation by calculation that counts the number of related records. Example:

"Count ( relatedClients::agentID ) <= 4"

For the minimum constraint you can place a validation calculation on a field in the "Agent" table to ensure there is at least one client. Example:

"Count ( Clients::agentID ) >= 1"

You may need to implement additional constraints within the privilege sets to avoid users getting around the constraint (for example getting around the minimum by creating a dummy client and then deleting it). You will also need to ensure your record creation process allows users to satisfy the constraints, otherwise they will get warning and error dialogs about which they can do little or nothing.

  • Author

Thanks for the work around solutions.

-dan

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.