mickeyfinn Posted February 14, 2008 Posted February 14, 2008 Is there a way to have a start-up script with different behaviors depending on Privilege Set name work with IWP? I have made a script that does the following: If Get(PrivilegeSetName) = UserPrivilegeSet Go To Layout "Main" Else Go To Layout "Menu" When accessing via FM Network (I'm using FM Server 7 Advanced) this works fine, however, as soon as I access through IWP the script moves to my Else step. Any ideas? As usual, thanks in advance to all who reply.
Breezer Posted February 14, 2008 Posted February 14, 2008 If Get(PrivilegeSetName) = UserPrivilegeSet Go To Layout "Main" Else Go To Layout "Menu" If (Position (Get ( ExtendedPrivileges ); "fmiwp";1;1) > 0) Go To Layout "Main" Else Go To Layout "Menu"
mickeyfinn Posted February 14, 2008 Author Posted February 14, 2008 In my script, the item UserPrivilegeSet is a field that contains the name I have given to the set for that user. In the one you give as an example, would I be right to assume it just allows for anyone accessing via the web. I will need to have different sets users access via the web and have them run different parts of the startup script. Is there a way to match the privilege set name in an if script step which works on IWP as well as Filemaker Network?
Breezer Posted February 23, 2008 Posted February 23, 2008 If [PatternCount (Get ( PrivilegeSetName ); "UserPrivilegeSet") > 0 or Position (Get ( ExtendedPrivileges ); "fmiwp";1;1) > 0] Go To Layout ["Main"] else Go To Layout ["Menu"]
Recommended Posts
This topic is 6120 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