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

conditional value list based on PrivilegeSetName


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

Recommended Posts

Posted

In an application that will run from Server8 Advanced, I have a table that is (among other things) used to populate a value list.

I want to restrict which values from the table appear in the list, based on the privilege set assigned to the current user. (Some users will see all values, some will see just one or two, others will see most but not all, etc.)

I've tried a couple of approaches, but then realized that they will fall apart as soon as there are two concurrent users.

The only solution that I've thought of that will work in multiple concurrent users is to have multiple versions of the list (for each privilege set)used on multiple versions of the layout.

I don't like that approach, and am therefore looking for suggestions from others.

Any ideas?

bkg

Posted

Add a field to the records that make up your value list that is a return-delimited list of the privilege sets that will see that record.

Then from the context in which you want to view the value list, define a global field that is set to the privilege set name upon login.

Use these two fields in your relationship do define your related value list.

Posted (edited)

Dan -

Your advice is what I was looking for. It does exactly what I want.

One thing that I'm not sure about, though...does each concurrent client maintain its own values for globals? I read a bit in the Help files that seems to hint that they do, but I'm not sure that I understood all that I read.

Edited by Guest
Posted

Yes, each user has their own set of globals. When one user changes a value of a global it's for his session only, it does not change the value for other users.

This topic is 6836 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.