R2D2 Posted April 4, 2009 Posted April 4, 2009 Hi ! I just cannot figure out why this doesn't work: I Have 2 PrivilegeSets: User and Admin. The script goes like this: If[Get(PrivilegeSetName)="User"] Go to Layout["FrontPage_User"] Else Go to Layout["FrontPage_Admin"] End If In DataViewer Get(PrivilegeSetName) returns "User" and also in a control field "User" is shown. But still this directs User to the "FrontPage_Admin" -layout. With ScriptDebugger it just jumps over the first choice. I just cannot understand...
Vaughan Posted April 4, 2009 Posted April 4, 2009 Is the script set to run with full access privileges? Here is a good test: just before the IF in your script, put in a custom dialog with Get( PrivilegeSetName ) as the message. Then you can see exactly what the script is seeing.
comment Posted April 4, 2009 Posted April 4, 2009 I believe you will find the answer here: http://fmforums.com/forum/showtopic.php?tid/202478/
R2D2 Posted April 4, 2009 Author Posted April 4, 2009 Uh oh... Yes it WAS with full access privileges. Now it works. Sometimes I feel so stupid... Thank you very much again !
Søren Dyhr Posted April 4, 2009 Posted April 4, 2009 It's a good question, perhaps have you made the Go To Layout[ utilise the feature by the number of a calc ... and here are you getting jiffy logic when attempting to fill in text strings due to typecasts. But the number feature makes good sense in another way say you have the two layouts adjacent in logical number, then could the calc look like this: 1+Exact ( Get ( PrivilegeSetName ) ; "user" ) Where admin are ushered to layout #1 and users the following - I attach a template showing this: Admin have the pass 1234 --sd Untitled.zip
Recommended Posts
This topic is 5713 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 accountSign in
Already have an account? Sign in here.
Sign In Now