November 11, 200520 yr 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.
November 12, 200520 yr 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]
November 22, 200520 yr 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
November 22, 200520 yr 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!)
November 23, 200520 yr Hi xochi, sorry i dun really understand.. (Get (ApplicationVersion) ; "Web")] <-- what is it getting? checking for what?? can explain.. Thanks a lot.. Kelvin
November 23, 200520 yr 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.
November 23, 200520 yr 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 =)
December 9, 200520 yr 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, 200520 yr by Guest
January 18, 200620 yr 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.
Create an account or sign in to comment