enter key closes the current window

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
kauakeaAsked:
Who is Participating?
 
lesouefConnect With a Mentor Commented:
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
 
lesouefCommented:
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
 
kauakeaAuthor Commented:
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
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
kauakeaAuthor Commented:
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
 
lesouefCommented:
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
 
kauakeaAuthor Commented:
i would like to control the program through scripts if i can.
0
 
lesouefCommented:
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
 
lesouefCommented:
but then there is no way to exit as you enter a loop...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.