• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 288
  • Last Modified:

Window problem

I have created an application in Filemaker.7 and it appesr to be doing something unusual.

I have a script to open a new window so that a new product details can be entered. The small window appears but the main layout which contained the button to open the new window disappears completely from the screen even though it has not been closed. The new Window is opened using the newwindow script command.

Any suggestions would be much appreciated as it is driving me mad.

One funny thing that is hapenning that might be a pointer to the problem is that when the file is first opened a small window appears very quickly and then the main layout appears over the top. There is no way to get to see this small window as closing th emain layout removes everything.

Thanks in advance for the help.

Richard Hurley
0
RICHARDH
Asked:
RICHARDH
  • 9
  • 8
1 Solution
 
billmercerCommented:
It sounds like your file is automatically running a script when it opens and when it closes.

Go to File|File Options, and look at the Open/Close tab. Here you'll see an option to run a script automatically when the file is opened, and another one th run a script when the file is closed. Unchecking these may let you see the small window that first opens, and from there you may be able to figure out what else is going on.

Are there multiple files for this application, or is everything contained in one single file?




0
 
RICHARDHAuthor Commented:
HI there and thanks for the suggestion.

In answer to your questions there is no script being called at the open or close stage of the application as I checked for this. Secondly, the application consists of a number of tables all stored in the same file.

Looking forward to any other suggestions that you might have.

Richard
0
 
billmercerCommented:
Well that is certainly very strange... It sounds too deliberate to be some sort of corruption, but anything's possible I suppose.

When did this problem first appear? Has it always done this, or did it start after some change you made?
Does it make a difference if you open the file through the File Open dialog versus double-clicking on it?

Make a backup copy of the file, and then try running a Recover on it to see if that fixes the problem. If it does, then the problem was probably some sort of corruption.
If you post the script that you're using to open the window that might help.





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.

 
RICHARDHAuthor Commented:
I have tried the backup and the recovery option and its still does not work.

The script I am using to open the window is as follows:

New Window [Name: "new Item";Height:270; Width:400; Top:190;Left:270]
Show/Hide StatusArea[Toggle]
Show/Hide TextRuler[Toggle]
Go to Layout ["Window1"(catering)]
New Record/Request
SetField[Catering::Supplier;Catering::set_supplier]

Window1 is a layout I have designed to be displayed in the small window when it is opened.

I cannot understand why the large parent window disappears and then re-appears in the small window at the end.

Thanks in advance for any help.
0
 
billmercerCommented:
This is what would happen if your parent window is being closed before the small window, and you then switch layouts. This really seems like a script error of some sort, though I don't see anything in that script that should cause this.

Is this script being called by another script?
Are you using any third-party plug-ins for FileMaker?

If you have the developer version of FileMaker, you can go into script debug mode and watch what happens as your scripts run. Without the developer version, it's a lot more trouble but you can get a similar effect by inserting a bunch of "show custom dialog" steps that say where you are in the script, then you can watch your script run one step at a time. Maybe this will help identify what's really happening.
0
 
RICHARDHAuthor Commented:
In answer to your questions...
1. The script is not being called by another script.
2. No Plugins are being used.

I agree with what you say in that it makes no sense at all, it should not be hapenning. Any other suggestions would be very much appreciated.

Regards

Richard
0
 
billmercerCommented:
That's really just weird.
Can you post a clone of the file in a place where we can retrieve it and try it for ourselves? Short of that, I can't think of anything else to try. You may need to contact FileMaker techical support. 800-325-2747 is the number.
0
 
RICHARDHAuthor Commented:
Is there a simple way of sending you the filemaker file to take a look at. It is about 500k.

Thanks for all your time.

Regards

Richard
0
 
billmercerCommented:
You'll need to upload it to a location where any of the experts here can retrieve it. If you don't have your own web server or FTP server where you can put it, you can go to this page and upload it.

http://www.milleniumhandandshrimp.com/upload.html 

Then copy the link it gives you and post it here.
0
 
RICHARDHAuthor Commented:
HI there,

Have uploaded the file to...

http://www.milleniumhandandshrimp.com/upload/Nov 9th 2004.fp7

To find the bug, click on Truffles, then go Create New Invoice and complete with dummy data. Click on Enter Invoice Details and then try to add a New Item by clicking on the button.

Thanks for the help it really is appreciated.

Regards

Richard.H
0
 
billmercerCommented:
Well, the bad news is, I can't reproduce your problem on my system. I'm able to add items to the invoice, and the main window doesn't disappear. The good news is, that means it's not a corrupted file or a bug in your script. I did notice that your "Close" script, says Close Window [Current Window]. You might try changing this to specify the exact name of the window you want to close, and see if that changes what happens. It could be that somehow the software is switching to the other window before the Close Window step executes, thus closing the main window.

At this point the best explanation I can come up with is that there's some other software on your computer which is causing this, possibly some sort of trojan, or maybe some kind of remote management or process monitoring. It could also be a wonky FileMaker installation. It could even be a hardware problem (Some sort of weird USB conflict could cause spurrious keyboard events or mouse clicks maybe)
- Try starting in Safe mode, and see if the problem still happens.
- Try the same file on a different workstation, preferably one that's configured differently.  
- Completely uninstall and reinstall Filemaker

If none of these solves the problem, then your next step will probably have to be FM tech support.
0
 
RICHARDHAuthor Commented:
Thanks for your help but this makes things even more confusing.

I have run the application on three different computers at two places and get the same problem on both. So am not sure what the problem can possibly be.

The only thought I have at this stage is that I am using version 7.2 can you tell me what version you have tested it on.

Thanbks for the help

Richard
0
 
billmercerCommented:
There is a newer patch available, v3, but I have not installed it yet. However I realized I ran your file with FileMaker Developer. When I ran the same file on the regular FileMaker Pro 7 v2 client, I did see some strange behavior. When I clicked on the Add Item button, the main window resized itself to be the same size and position as the new window. It's almost as if the script steps are being executed in the wrong order. I'm pretty sure this is a bug in FileMaker Pro. You should install the v3 patch, and if that does not solve the problem,  you will definitely need to contact FileMaker support.

A couple of suggestions:
In your script, you use the [Toggle] option with the show/hide steps. This means the rulers and status area tend to flip on and off as you run your script, causing the windows to jump around on the screen. This might be triggering the problem. Try specifying  On or OFF rather than using the Toggle option.

Also, instead of saying Close Window [Current Window], you really ought to specify the name of the window to close. That will prevent the script from accidentally closing the wrong window, which could be what's happening in your case.
It's worth trying certainly.


0
 
RICHARDHAuthor Commented:
HI there,

Just to let you know that I have found a solution to the problem. It turns out that the problem is with Windows and not filemaker in that you cannot have another window open on the screen if you have a primary window that has been maximised. The solution therfore is to make the main window the size of the screen minus one pixel. The small window then opens perfectly and on closure returns control to the original window.

Found this answer in a book on Filemare.7, under troubleshooting windows. Thought you might like to know the solution.

Thanks for all your help, it has been much appreciated.

Regards

Richard.
0
 
billmercerCommented:
That's definitely one for the books, as they say. Sorry we weren't able to help you, but I'm glad you found the answer.

Richard, since you found the solution yourself, you should probably post a message in the support area requesting a PAQ/Refund. If you just leave the question open, you might not get the points refunded to you.
0
 
RICHARDHAuthor Commented:
HI Bill and thanks for the comment.

Rather than try and get the points refunded, perhaps I could ask you another question and then give you the points for that one.

In the application I have a large portal being displayed containing a lot of records. I want the user to be able to find a particular record within the portal, make some alterations to it and then return to the original portal list. Is this possible. I suppose it must be some form of find command, but am not sure where to put the button and how to write the script.

Many thanks for all your help.

Regards

Richard.
0
 
billmercerCommented:
I think officially you're supposed to make a new question, but this one's really easy to answer.

In the portal layout, create a small button that fits inside the top portal row area. Make this button call the Go To Related Record script step. You can specify a particular layout you want it to use when it jumps. On that layout, include another button called "DONE" or something, that jumps back to the original layout. There's also an option to show only the related records, which can be handy.

Now when browsing, you'll see a button next to each portal row. Click it, and it jumps you immediately to that record in the related table. Do what you want on that layout, and then click DONE and you return to where you started. Very easy, and doesn't require creating a separate script.

If you want more control, you can write a script to do additional things before or after jumping to the related record, like checking values, prompting the user, and so forth. Then have the portal button run that script.
 

0

Featured Post

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.

  • 9
  • 8
Tackle projects and never again get stuck behind a technical roadblock.
Join Now