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

NO Access auto - go back?


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

Recommended Posts

Posted

I made all this work fine, users get this message "NO ACCESS" on a layout.Is it possible to make it so that they automatically go back to the main menu when the no access is written?

Thank you?

Posted

Hi tunin

If your "NO ACCESS" are referring to records, you can actually omit those records so users won't even have a chance to see "NO ACCESS".

You can take a look at this..

http://fmforums.com/forum/showtopic.php?tid/172494/post/187768/hl//#187768

Cheers,

Kelvin

Posted

Hi, Thank you for the reply,

I was thinking of the NO access when you have privileges set for some users not to see a layout.

I have a button on all layouts to go to that layout that only some users have access to. So when other users that are not allowed to go there get this message NO ACCESS. The most ideal solution would be that the buttons disappear when a user with the restricted privileges opens the DB?

Another solution is to loop back from that NO ACCESS screen to another layout.

Thank you.

Posted

Helo

I am not sure whether the button can be make disappear.

But maybe you can do sometihng like this by checking for user layoutaccess,

if (Get(layoutaccess) = 0)

go to error layout

end if

Cheers,

kelvin

Posted

Is navigation to the layout already controlled by script or do users use the status bar for navigation? If it's by script, wouldn't it be even better to control their access by checking to see if their privilege set allows them to go to the layout, and if it doesn't, not let the script go there in the first place?

That makes for a more polished interface, imho.

Posted

I have buttons set to "go to layout" could I implement a script there to check for user privileges and how am I to do this please?

Thank you.

HERE IS THE FILE. the last layout is the one that is to be hidden. ADMIN no password user with access mika and password mika and user withno access ivana password ivana

Posted

Just write a script and assign it to the button. You may want to pass a script parameter at that point, maybe with the layout name in it, then do something like:

If [ Get (ScriptParameter ) = "TheLayoutName" and Get (PrivilegeSet ) = "ivana" ]

Show Custom Dialog ["Access denied" ; "Access denied to these records] [color:blue](or something like this, and then have the script halt or exit when the user clicks "OK").

Else [Go To Layout ; Get (ScriptParameter) ]

This is pretty rough but it gives the idea and a foundation upon which to build and refine.

Hope this helps!

Posted (edited)

I suggest you try the portal trick to hide or show buttons. Having an error pop-up when a user clicks a button is bad design IMO. If they can't use the button it should be hidden or disabled. Unfortunately Filemaker does not make showing/hiding a button easy... but it is possible.

Attached is a sample showing how to hide a button using a portal.

Admin, no password has full access and can see see/use LayoutX button.

Guest has Read Only Access and can not see/use the LayoutX button

go to http://www.databasepros.com/resources.html and do a search for 'visibility' to learn more.

Buttons.zip

Edited by Guest
Posted

Hidden portal is definitely the approach for a more polished interface. I was just suggesting a technique that a beginner could readily grasp.

Hmmm, I wonder how many bad UI designers I've created with my advice? ;) Seriously, tunin, if you can follow the technique that sbg2 suggests, you'll end up with a much more professional looking interface.

Posted (edited)

I'm not a Windows user, but I believe you Hold down the Shift Key when you open the file.

This will produce a dialog box for "Account Name" and "Password" (I was under the impression you were letting it, the Account Name, default to "Guest".

Just enter "Admin" in that box instead, and leave the "Password", blank.

Lee

OpenDialog.jpg

Edited by Guest
add jpeg
Posted

Hidden portal is definitely the approach for a more polished interface. I was just suggesting a technique that a beginner could readily grasp.

Hmmm, I wonder how many bad UI designers I've created with my advice? ;)

You haven't created any bad UI designers with this advice, the problem IMO is that FMP does not make it easy to show/hide an object. It took me about 30 minutes of fumbling around before I was able to acheive the effect. This is what happens when you use a "trick" once in a blue moon, you forget how to do the trick by the time you use it again.

Posted

Hey sbg2,

I was just poking some fun at myself, but...you did give me reason to question my suggestion to tunin.

On one hand I don't want to overwhelm a beginner, but on the other hand I should probably have suggested something that's easily comprehendible and still produces a good UI experience. It's kind of a fine line sometimes.

Regardless, thanks for your input. Your point is well taken and will make me think about my suggestions on the forums a bit more thoroughly.

Cheers! ;)

Posted

I am not sure is this private but my name is in there as well. I just wanted to say that I am enjoying this conversation. Thank you all for all of your help.

Greetings from Medjugorje.

Posted

I am not sure is this private but my name is in there as well. I just wanted to say that I am enjoying this conversation. Thank you all for all of your help.

It's certainly not private and I'm glad you're enjoying it!

So, tunin, I'm curious to hear how you've decided to address the issue of your original post.

Posted

Since this was a bit complicated for me as a beginner and this other option I had in mind worked better for some other reasons. What I did is I somehow got this to work, it is a re-login action and if I log in as a user that can access that part it let's you in otherwise it goes back to the prev. layout. If you ask me how I did it, I don't know. I just know it asks for a password again if you click the button to go to that layout.

Posted

Glad to hear you came up with a solution. If it does what you want and you're content with it, consider it a success! :waytogo:

This topic is 6900 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.