December 28, 200520 yr 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?
December 29, 200520 yr 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
December 29, 200520 yr Author 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.
December 30, 200520 yr 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
December 30, 200520 yr 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.
December 30, 200520 yr Author 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
December 30, 200520 yr 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!
December 30, 200520 yr 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 December 30, 200520 yr by Guest
December 30, 200520 yr 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.
December 31, 200520 yr Author Thank you guys/girlz. I will work with this and see what happens. HAPPY NEW YEAR TO ALL. saluti di Medjugorje
January 1, 200620 yr Hi It logged in as guest when i opened the file, it does not prompt me. How to change it to admin? I can't find it.. Thanks Kelvin~
January 3, 200620 yr erm hi.. sorry where can i do this to change the account name = Admin, i can't find it.. Thanks Kelvin
January 3, 200620 yr 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 Edited January 3, 200620 yr by Guest add jpeg
January 3, 200620 yr 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.
January 3, 200620 yr 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! ;)
January 3, 200620 yr Author 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.
January 3, 200620 yr 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.
January 3, 200620 yr Author 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.
January 3, 200620 yr 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:
January 3, 200620 yr Author I sitll wan't to lear the way you suggested and others on here... I am just slow. :violin:
Create an account or sign in to comment