Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Portal with Privileges not showing on server


This topic is 7312 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

Posted

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

This topic is 7312 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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