Jump to content

Script conditions based on priviliges


nandito
 Share

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

Recommended Posts

Hi Gang,

Sorry this might be a newbie question. I want to have two sets of priviledges. One full, one limited. When loading my application, I want to determine which layout to go to depending on the user privileges. Can someone please point me in the right direction as to how I would script this? I know about setting up the startup script, I just don't know how to start scripting.

Many thanks,

Nando

Link to comment
Share on other sites

Use the Get(PrivilegeSetName) function in an IF script step to test for the privilege set. It might look like this:

If [Get(PrivilegeSetName) = "[Full Access]}]

Go to Layout ["All Fields" (MYTABLE)]

Else

Go to Layout ["Less Fields" (MYTABLE)]

End If

You can add Else If steps if you want to check for more than 2 privilege sets.

Link to comment
Share on other sites

  • 2 weeks later...

This topic is 5669 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
 Share

×
×
  • Create New...

Important Information

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