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.

Portal with Privileges not showing on server

Featured Replies

Using MacOS X, FMServer Adv 7.0v2, connecting with FMDev 7.0v3 on MacOS X(different machine).

I have a Name table and a Gift table. On my Name table's main layout I have a portal to Gifts. I want it so that the user does not see their own gifts. So I have the View privileges set to

GetAccount(Name) != Name in the Name table (with the proper "doesn't equal" symbol)

and I have

GetAccount(Name) != NameTable::Name and IsValid(NameTable::Name) in the Gift table.

If I view a layout from the Gift table, it works fine. The user sees all of the records except his own. But if I look at the Name table's layout, the portals are blank for every record.

Here's the weird part: If I take the file off the server and open it locally, the portals display the data where they should.

Also, if I remove the restrictions from the Gift table (i.e. set them to all viewable), the portals work, but of course, the user can see his own gifts too.

So, why would this work locally, but not on the server?

Thanks.

Instead of setting this in the view privileges, you could build it into the relationship defenition.

Make a relationship with 2 criteria:

- one for the gift match (=)

- one (<>) from the stored accountname to NameTable::name

  • Author

Thanks, that's not a bad idea. I'll try that. But I still wonder why the database works correctly locally, but not on the server.

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.