Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 8227 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a startup script. I hate to bore you with all the steps, so I won't (if this is not enough info, I will post the script).

It opens another file, checks if a field is empty, if so then I would like it to maximize the related file. Basically the main file contains client records, and the related file contains producer records. If there is not a last name for producers, it shows a message that says "there are no defined producers." Then I want it to toggle the related file maximized so that they can create a producer record. The problem is that it wont. No matter what I try, the main file eventually ends up maximized. I have tried a toggle window script step, unchecking the "open minimized" box, and even calling an external script that toggles the window maximized in the related file. I can see it actually resize and become maximized, but the main file eventually comes to the front.

I have checked and re-checked my scripts, and i think I have it right. But I guess not. Is there anything built into FM that always brings the main file forward after startup no matter what?

Please help!

Ken

Posted

Thanks for the help, but I already have something akin to that. And, as I said, when the external script is called to maximize the related file, it will resize to maximized, then the main file will reappear.

I must stress that I have this problem ONLY with startup. I have buttons that toggle files during regular operation with no problem. I must just be missing something. Sorry.

Ken

Posted

The key here may be that you need to end the chain of scripting in the related file, NOT the main file. If your startup script terminates in the main file you will come back to this file. You might need a "halt" script step in your related file.

-bd

Posted

Thanks for the insight, liveoak. I will most certainly try this when I get in the office on Monday. So what youre saying is that scripts that occur and end in a file will call this file to come to the front? And what I have to do is put a "halt script" step in my external script when the action is performed? It makes perfect sense, since the related file does appear as it should at the end of the script, but is finally overlapped by the main file window.

Thanks much.

Ken

Posted

Another thing: I've found that in Windows (the operating system) that all the database windows need to be kept either maximised or minimised. Making one window "restored" has the effect of un-maximising all the other maximised database windows.

Posted

You know what? I noticed the same thing Vaughan. It drives me nuts (actually, it does alot worse, but I won't mention it here). I makes no sense and makes it look stupid.

Thanks, Oak for the info. I did as you said and it works like a charm.

Ken

This topic is 8227 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.