April 4, 200916 yr 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...
April 4, 200916 yr 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.
April 4, 200916 yr I believe you will find the answer here: http://fmforums.com/forum/showtopic.php?tid/202478/
April 4, 200916 yr Author Uh oh... Yes it WAS with full access privileges. Now it works. Sometimes I feel so stupid... Thank you very much again !
April 4, 200916 yr 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
Create an account or sign in to comment