February 14, 200818 yr 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.
February 14, 200818 yr 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"
February 14, 200818 yr Author 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?
February 23, 200817 yr If [PatternCount (Get ( PrivilegeSetName ); "UserPrivilegeSet") > 0 or Position (Get ( ExtendedPrivileges ); "fmiwp";1;1) > 0] Go To Layout ["Main"] else Go To Layout ["Menu"]
Create an account or sign in to comment