Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6120 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

Posted

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"

Posted

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?

  • 2 weeks later...
Posted

If [PatternCount (Get ( PrivilegeSetName ); "UserPrivilegeSet") > 0

or

Position (Get ( ExtendedPrivileges ); "fmiwp";1;1) > 0]

Go To Layout ["Main"]

else

Go To Layout ["Menu"]

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.