Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

Recommended Posts

Posted

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!

 

 

Posted
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".

 

Posted (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 by Dr. Evil
Posted

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.

Posted
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! 

Posted

That seems fine. I work with many solutions that consist of many files. We use external authentication. 

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.