Dr. Evil Posted July 12, 2024 Posted July 12, 2024 Hi Friends!.. looking for help on modifying my "Login" script. My loginScript navigates to login layout where User can login as different user, or quit the particular solution. Would like to close all windows that are not the login window. User may often have multiple solutions running, so i need to be careful not to close all of them, only the solution they are logging in/out/off of. Some of the web searchings on this topic I found are 10+ years old, and also use a loop. Not scared of loops, but wanted to check here for any tips/tricks before implementing so maybe i can avoid endless loops issues, etc... start out on the right foot before entering the weeds, lol. Thank you all kindly!
comment Posted July 13, 2024 Posted July 13, 2024 3 hours ago, Dr. Evil said: User may often have multiple solutions running, so i need to be careful not to close all of them, only the solution they are logging in/out/off of. I am not sure I understand this correctly. What exactly is a "solution" in this context? The WindowNames() function can give you a list of open windows that belong to a specific file. If a "solution" can consist of several files, and the user has more than one such solution open, then I don't think Filemaker has a built-in way to isolate the files (and subsequently windows) of a specific "solution".
Dr. Evil Posted July 13, 2024 Author Posted July 13, 2024 (edited) oh sorry... not sure where i picked that term up, but i'm referring to the database. For example, i may have a database "aka solution" for Recipes, and I may have a database for Invoicing which are in no shape or form related to each other... separate database solutions. 😝 The database is a single file. So sounds like the WindowNames() function will work for the specific file. Edited July 13, 2024 by Dr. Evil
bcooney Posted July 13, 2024 Posted July 13, 2024 I explicitly close external data sources in last window closed. “My loginScript navigates to login layout where User can login as different user, or quit the particular solution.” I’ve never liked this type of thing. Then again, I don’t use local accounts.
Dr. Evil Posted July 13, 2024 Author Posted July 13, 2024 1 hour ago, bcooney said: I’ve never liked this type of thing. Then again, I don’t use local accounts. Hi bcooney!.. whats your preferred approach for handling user/privilege sets? I have to admit, my database is a single-user "me" at the moment, but do plan on bringing in an account manager. At the moment, i have a full access admin account that i use when developing the file... and a Dr.Evil Account for using the file... then of course I have a "Manager" account that has limited access to certain data/layouts. Appreciate your expertise!
bcooney Posted July 15, 2024 Posted July 15, 2024 That seems fine. I work with many solutions that consist of many files. We use external authentication.
Recommended Posts
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