November 2, 200619 yr 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.
November 2, 200619 yr Make sure you do not have the option "Run script with full access privileges" checked in the bottom of the script window.
November 2, 200619 yr 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
November 2, 200619 yr 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.
November 2, 200619 yr 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
November 2, 200619 yr 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.
November 2, 200619 yr 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.
November 8, 200619 yr 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