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

need help on get(PrivilegeSetName)

Featured Replies

Hello. I'm trying to use this function to determine which layout a user goes to when they open the file. I would think that is possible using this function but i'm somehow not able to do it.

In the file option, i've set it to run the script when opening file. In this script, it goes something like this.

If(Get(PrivilegeSetName)="DataEntry")

Go to layout "Data Entry Page"

Else

Go to layout "View Page"

End if

This doesn't work and I can't figure out whats wrong. I hope someone is able to show me the light. Thanks in advance.

Make sure you do not have the option "Run script with full access privileges" checked in the bottom of the script window.

  • Author

Hmm..tried that advice but still doesn't work.

I've put my test file up. Maybe someone could show me how it's done?

For privilege set Data Entry Only

Username:data

pass:data

Full access

Username:admin

pass:

login.zip

Andrew,

Ender hit the nail on the head. When you are editing your script look near the lower left corner of the window. There you will find a checkbox that when checked switches ALL users over to FULL ACCESS for the duration of the script.

Andrew, Ender--

I just checked the help file for Get(PrivilegeSetName) and it doesn't mention this at all--at least in the help file for FM7. How/where did you guys learn about this?

David

It is discussed in the help file under:

Creating and editing scripts using Script Maker.

I guess I picked up on it when it first appeared in version 7. There were quite a few posts on this board and others from users scratching-their-heads.

If it's important that the script run with Full Access, you can either capture the privilege set in a global or variable prior to entering that script, or use a subscript that's not running with Full Access privileges to do the test.

  • Author

thanks so much for the tips and answers. I have managed to get it sorted out. I think my mistake was that the privilege set names were case sensitive.

Create an account or sign in to comment

Important Information

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

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.