Jump to content

This topic is 6953 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

Posted

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]

  • 2 weeks later...
Posted

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

Posted

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

Posted

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.

Posted

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 =)

  • 3 weeks later...
Posted (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 by Guest
  • 1 month later...
Posted

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.

This topic is 6953 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 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.