Solved

enter key closes the current window

Posted on 2006-11-29
8
280 Views
Last Modified: 2010-04-27
i am running fm 8 server with 4 workstations running 8.5 on xp.

i have a layout where the fields behaviour goto next field is set for the tab key
the  return key  and enter key are unchecked or disabled.
i open a new window for them to work in the layout. i have a close button on the layout that closes the current window.

i have an inconsistent problem.

my users are saying that when they hit the enter or return key, sometimes the current window will close and they are returned to the main layout. other times they are closed out of the database.

sometimes when they hit the close button they are closed out of the database and not just the current window.

i have not been able to duplicate the problem.

any suggestions as to why this behaviour occurs
thanks
0
Comment
Question by:kauakea
  • 5
  • 3
8 Comments
 
LVL 28

Expert Comment

by:lesouef
ID: 18043759
difficult to say without the file...
however a few clues:
- in the layout tab order, have you excluded buttons or not? if a button is the default position, hitting enter will trigger it.
- do you use a closing script in file options?
0
 

Author Comment

by:kauakea
ID: 18043961
in the tab order i specify fields only
i run a script with the close button that verifies that it is not the main screen using "if(scriptparameter) not equal main" and then issue a close current window command if the result is true else i return to the main layout.
0
 
LVL 28

Accepted Solution

by:
lesouef earned 500 total points
ID: 18044051
that won't work if you did exactly this. you close the current window (and then where are you?) then switch to the main layout. But in which window are you when you do this? you don't know, it's the last opened one, so you end up with the main layout in any of the other windows. On top what happens if the user closes the window without your script, but using the windows or finder close icon?
instead of swithing to the main layout, you should activate the main window
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

Author Comment

by:kauakea
ID: 18048536
would it be something like this work? and is it possible to disable all other ways of closing the window.
if [get(windowname) ≠ "w&n"
   close window[current window]
   select window[name:"w&n"; current file]
   exit script
end if
go to layout["homeowner"(homeowner information)]
0
 
LVL 28

Expert Comment

by:lesouef
ID: 18048626
that should work for any window except for the w&n, where it will switch to the layout, but still exits if this is the last window opened.
btw, what's the problem to have the user being able to exit?
0
 

Author Comment

by:kauakea
ID: 18048663
i would like to control the program through scripts if i can.
0
 
LVL 28

Expert Comment

by:lesouef
ID: 18048743
another way is to have the closing script (in file options) to open a new window, when you close, it opens a new window...
0
 
LVL 28

Expert Comment

by:lesouef
ID: 18048781
but then there is no way to exit as you enter a loop...
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Pop up windows can be a useful feature of any Filemaker database.  Though best used sparingly, they can be employed in a multitude of different ways, for example;  as a splash screen at login, during scripted processes to control user input, as pick…
Having just upgraded from Filemaker 11 to Filemaker 12 over the weekend, we thought we would add some tips for others making the same move.  In general, our installation went without incident. Please note that this is not a replacement for Chapter 5…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question