Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create a Button to automatically open another FM file

Status
Not open for further replies.

pt2huynh

Programmer
Feb 20, 2004
12
CA
Hi everyone,

Can anybody show me how to create a buttong to automatically open another FM file? Thanks first.
 
Just create a button that executes a script containing the Open File script step.
Is tat what you were asking?

Cheers,
Paul J.
 
I created a filemaker doc that is simply a set of buttons to open all my other DBs, using the script mentioned in the previous post.

What I want to know is how to make FM not only open the other file, but bring it to the front, so I don't have to click on its window to work on it. Also, it'd be nice to figure out how to toggle between open databases using these buttons.

Is that simply beyond the scope of Filemakers capabilities?

---/---
Nathan Pyritz
 
Nathan,
If your script is -
Open file (File-A)
Perform Script (external script) "Gogo"
where 'Gogo' is a script in File-A which consists of -
Go to layout (whatever)
the file will come to the front.


Cheers,
Paul J.
 
u can have all the scripts "internal"= in one file.

create an "opener" scrip that will be executed on file being opened.(or assign it to the button...)
To set the script to run immeditaly after the file is opened:
Edit--Preferences---Document
[ when opening run "opener script" script]
-opener
Open File [1]maximised
Open File[2]maximised
Open File[3]maximised
....



this script will open the rest of the files.
so any time YourFile.fp5 is opened it will run 1 script ("opener") that will trigger opening of the other files.
Last file opened will be "up front"/active
HTH
All the best!

> need more info?
:: don't click HERE ::
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top