Joseph31 Posted September 8, 2005 Posted September 8, 2005 Is there a way to make a script run auto everytime you open a layout... I know there is an easy way by putting the script on the script that opens tha layout... but there are so many different way to the same layout I thought there might be another way... Example: I have a script that will check certain boxes when a certain user has opened the layout... and when other users open the same layout nothing is checked. Need like a auto run of a script. Thank you, Joseph
VICH Posted September 8, 2005 Posted September 8, 2005 file/file options you can define a start up script and such there
Lee Smith Posted September 8, 2005 Posted September 8, 2005 I don't think that will do it. There isn't anyway to run a script using FileMaker's built in capabilities just because a user changes layouts via the Rolodex. The only way that I can think of is to script the movement from layout to layout via a button, or ScriptMaker's Dropped Down list (Key Combinations)). Perhaps one of the Event Plugins can do this, but I'm don't think so. HTH Lee
Joseph31 Posted September 8, 2005 Author Posted September 8, 2005 I agree... But the thing is there is about 20 different ways to go to this layout... Really do not know what to do.. All I want to do is hide a profit field from others but I can still see it... Maybe that is what I should have asked to began with. Thank you
Lee Smith Posted September 8, 2005 Posted September 8, 2005 You can limit what layouts they can't go to using Access Privileges.
Joseph31 Posted September 8, 2005 Author Posted September 8, 2005 MMM... I will try that also... But what happends when they need to go to the layout that has a field that I do not want them to see... My plan was to make a portal that sits over these fields and when the correct users goes to this page the portal disapears... I have done these kind of things before.. Is this the best way?
Lee Smith Posted September 8, 2005 Posted September 8, 2005 There are ways to control what user has access to based on their privileges. Do a search of Location: [color:orange]Main Index[color:blue] » Forum Index[color:blue] » Database Schema [color:blue] » Accounts & Privileges for limiting access. My father in law is about to pass away any minute now, so I can't really help you with the how to's or even the find to try right now. Others I'm sure will jump in to help with your questions if you have any more. Lee
IdealData Posted September 9, 2005 Posted September 9, 2005 In my application I removed access to all layouts from the "rolodex" and used my own scripts to perform ALL navigation steps. Call me a "control freak" if you want, but it works well.
anna f Posted September 9, 2005 Posted September 9, 2005 The best way to control field access is through Account setup, like Lee suggested. Go in, create a new priv. set and you will be able to customize access to tables, layouts, scripts, etc. If you choose to customize table access, you will be taken to an area where you can assign field-level access (or the lack there-of, as in your case.) Your other option would be to create multiple layouts and leave the "private" fields off of one and only allow certain users access to that layout (but again, done through Accounts). Your other users, who can see the fields, will go to the "full disclosure" layout. I'm sure there are other ways but FM7 has a good security system and I utilize it as much as possible. With field-level access controlled through Accounts, it doesn't matter how a user accesses the layout. Hope this helps.
Lee Smith Posted September 9, 2005 Posted September 9, 2005 :goodpost: Thanks for saying it clearer, and a lot better than I did. Lee
Joseph31 Posted September 14, 2005 Author Posted September 14, 2005 Thank you Guys.... I will have to keep reading on this subject... Joseph :
Recommended Posts
This topic is 7012 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 accountSign in
Already have an account? Sign in here.
Sign In Now