Skip 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.

Open Script that goes to Layout based on Account Name/Privileges

Featured Replies

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

Look at the Get(AccountName) function in the help file.

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

  • Author

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

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.