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

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

Recommended Posts

Posted

Is it possible, and if so will someone help me write an open script that will send a user a specific layout based on thier account/privileges.

I am almost certain this can be done but I can't find the right area in script maker where I can insert a calculation to make this determination.

Basically:

On opening database,

If Account name = XXX goto layout YYY

If Account name = AAA goto layout BBB

etc.

Thanks in advance for any help.

steve

Posted

Hi,

There are two functions that you can use, one for privilege sets, one for account name... below:

Get(PrivilegeSetName)

Get(AccountName)

You can use these to conditionally go to the layout you prescribe based on the result of an IF[] calc.

HTH

Posted

Thanks! You guys (and gals) are the best.

The follwoing works for me and has the added benefit of showing only the records for the current user. A requirement of the client I am working for. Records created by other users are only visable to the admin account based on the custom privileges set in the define "accounts and privileges" custom privileges sub set.

Allow User Abourt [Off]

Set Error Capture [On]

Go to Layout ["Welcome Screen"]

Pause/Resume Script [Duration (Seconds0:3]

If [Get(AccountName)="admin"

Go to Layout ["Admin Privileges"]

Else If (Get(AccountName)= "Client_XYZ"

Go to Layout ["Client_XYZ_Privileges"]

End If

Enter Find Mode []

Insert Calculated Result [select;database_name::Record_Creator; Get(AccountName)

Perform Find []

Go to Record/Request/page[Last]

Thanks Again,

Steve

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