Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

enter key closes the current window

Posted on 2006-11-29
8
Medium Priority
?
321 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 2000 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

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…
Problem: You have a hosted FileMaker database and users are tired of having to use Open Remote or Open Recent to access the database. They say, "can't you just give us something to double-click on rather than have to go through those dialogs?" An…
Integration Management Part 2
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?

581 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