raingirl Posted November 11, 2005 Posted November 11, 2005 If you hide the status bar, how do you script the logout process. I don't see any way to do this other than to just have the session time-out after 5 minutes.
CyborgSam Posted November 12, 2005 Posted November 12, 2005 Put a button on the layout and use the script step "Exit Application". If the solution is also used in FileMaker, add an if test to the script so FileMaker users don't have their applicaiton exited: If [PatternCount(Get (ApplicationVersion) ; "Web")] Exit Application Else Close File [Current File]
Rushhour Posted November 22, 2005 Posted November 22, 2005 Hi.. Sorry just 1 doubtand tring to learn more... For the script, we can just do it with Exit Application right? why we need If [PatternCount(Get (ApplicationVersion) ; "Web")] ?? Thank you.. Kelvin
xochi Posted November 22, 2005 Posted November 22, 2005 The extra test is so that you can test the button from Within Filemaker (not IWP) without it quitting filemaker altogether. If you are only using this layout for IWP you can leave it out (but I can bet you will regret it!)
Rushhour Posted November 23, 2005 Posted November 23, 2005 Hi xochi, sorry i dun really understand.. (Get (ApplicationVersion) ; "Web")] <-- what is it getting? checking for what?? can explain.. Thanks a lot.. Kelvin
xochi Posted November 23, 2005 Posted November 23, 2005 Get(ApplicationVersion) returns a string that is different depending on whether the script is being run from within FileMaker itself, or via someone accessing the database via IWP. The strings are: Pro (version) for FileMaker Pro. ProAdvanced (version) for FileMaker Pro Advanced. Runtime (version) for FileMaker Runtime. Web (version) for FileMaker Web Client. PatternCount(..., "Web") will return the # of times the letters "Web" occur in that string. The IF statement will be True if PatternCount returns 1 or greater. So, put these together, and the gist is this: the script step first checks to see if you are using regular fileMaker, or accessing via IWP. If IWP, then it goes ahead and does the Exit Application step (which under IWP actually has the effect of logging out the current user). If you are not under IWP (i.e. you are just using the database via FileMaker itself) then it just closes the file (which has basically the same result). FYI, FileMaker has an EXCELLENT help file -- you can reach it via the Help menu.
Rushhour Posted November 23, 2005 Posted November 23, 2005 Hi xochi I love you!!! Your explanation is superb~ Really thanks for your time.. Sorry as this is only my 3rd week playing with filemaker. Thanks a lot Kelvin =)
Ross Thompson Posted December 9, 2005 Posted December 9, 2005 (edited) I have found that if you have a two-file solution, and both have been opened in the session, Exit Application does not log the user out of both files. Strange behavior results. If you add a "Close Window" step to close the virtual window of the other file, it works. Also, login should be restricted to the main file and the other(s) should not appear on the IWP home page. Edited December 9, 2005 by Guest
carlsson Posted January 18, 2006 Posted January 18, 2006 If the "Exit application" isn't working, what can you do instead? When I am trying to do an Exit Application, nothing happens... We are on FM Server Advanced with FM 7.
Recommended Posts
This topic is 7153 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