February 21, 201213 yr Hi all, This doesn't seem like the most difficult of problems - after all there is a simple script step to do it, but for some reason my script that looks like this at the beginning: Enter Browse Mode [] If [Get ( PrivilegeSetName ) = "[Full Access]" Show/Hide Status Area [show] Else Show/Hide Status Area [Lock; Hide] End If Refresh Window simply does not do what I think it should. Everyone sees the status area, regardless of their privilege set. Can anyone think of a reason why this does not work? I want to use IWP to publish the database, but this script does not do what it is supposed to do either on a server or run directly on a client. Thanks in advance for any help, Dave
February 21, 201213 yr Are you running this script with the checkbox in the lower corner checked (Run with Full Access)? FM11 introduced Get ( AccountPrivilegeSetName) and that is what you should be using. It ignores the checkbox (which, when selected returns "Full Access" for the duration of the script) and allows you to check the login account's priv set.
February 21, 201213 yr Author Hi bcooney, Thanks for the help. This has sorted me out. In fact, I am running FM 10 for development purposes on my laptop, but the server I host on is running FM 11. I have got round it by splitting the startup script into two, as the rest of the script required the "Run with full access". So now it runs the bit of the script I pasted earlier without full access privileges and then calls a second script which does use full access privileges. I could have used the alternative Get (AccountPrivilegeSetName) parameter, but then any development I do using FM 10 would not recognise it. Thanks for the help, Dave
March 18, 201213 yr Newbies Hi David Can u explain me a little bit what to do? I did the same script, but bar is still able to be opened for normal users( non full access)...i dont know how to proceed. I really appreciate your help. Gabriel Sorry, I forgot to say it is not working in IWP...clients are working perfect and bar is locked for non full access users, but IWP little bar is still able to be opened for them... Gabriel
Create an account or sign in to comment