?
Solved

enter key closes the current window

Posted on 2006-11-29
8
Medium Priority
?
302 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Conversion Steps for merging and consolidating separate Filemaker files The following is a step-by-step guide for the process of consolidating two or more FileMaker files (version 7 and later) into a single file with multiple tables. Sometimes th…
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…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

777 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