Solved

enter key closes the current window

Posted on 2006-11-29
8
267 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
 

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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now