![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I've been trying to implement a script that runs when a file is opened, which will navigate to different layouts depending on the privilege set of the user. I can't get it to work, FM doesn't seem to recognize my use of the get(PrivilegeSetName) function as a boolean condition. What am I doing wrong? or is there another way to branch a script depending on privilege set... (Data viewer shows that the privilege set is updating correctly, it's just not being recognized in the script, I guess?) thanks Lanse FM8 Advanced, Mac |
#3
| |||
| |||
|
|
I've been trying to implement a script that runs when a file is opened, which will navigate to different layouts depending on the privilege set of the user. I can't get it to work, FM doesn't seem to recognize my use of the get(PrivilegeSetName) function as a boolean condition. What am I doing wrong? |
#4
| |||
| |||
|
|
On 03/26/2007 12:00:01 "lansingoogle" <filema... (AT) jillo (DOT) com> wrote: I've been trying to implement a script that runs when a file is opened, which will navigate to different layouts depending on the privilege set of the user. I can't get it to work, FM doesn't seem to recognize my use of the get(PrivilegeSetName) function as a boolean condition. What am I doing wrong? Just one thing. Well, maybe two. 1. Get ( PrivilegeSetName ) is the actual name of the Privilege Set, not a Boolean 1 or 0. 2. Note in the Data Viewer that the name of the set is encased in square brackets, as below. The process works fine for me. Create as many evaluations as necessary, and you should achieve your goal. Brute force method : If [ Get ( PrivilegeSetName ) = "[Full Access]" Go To Layout [ Whatever ] End If or, a bit more elegantly: Go To Layout [ either name or number based on calculation ] in which you could then create a calc using a single Case statement to handle branching instead of multiple Ifs. Matt |
![]() |
| Thread Tools | |
| Display Modes | |
| |