Issue report by Fred
Product
FileMaker ProVersion
13.0v3 and earlierOperating system version
Mac OS X + WindowsDescription of the issue
Perform a script from a FileMaker external data source can cause the OnFirstWindowOpen trigger failure.Steps to reproduce the problem
STEP 1- Create two files, FileA and FileB.
- Create a startup script on FileB.
- Create another script on FileB to be called from FileA.
- From FileA, create an external data source and add FileB as such.
- On FileA, add a table from FileB on Relationship graph.
- On FileA, create a script that performs the script from FileB as a subscript.
- Close both Files
STEP 2
- Open FileA (FileB is closed)
- Check the Windows menu Show Window sub-menu. FileB is hidden and indicated between brackets
STEP 3
- Perform the script from FileA (which execute the subscript from FileB)
- Check the Windows menu Display Window. FileB is hidden BUT NOT INDICATED BETWEEN BRACKETS ANYMORE.
STEP 4
- Open FileB
Expected result
The startup script from FileB must be executed on step 4 or, at least, it had to be on step 3.Actual result
The startup script from FileB was never executed, even if the enduser is now browsing on FileB.Consequence : globals not loaded, incorrect window's size, and more...
Exact text of any error message(s) that appear
-Configuration information
Irrelevant.Workaround
Complete the master script on FileA to detect if yes or no the FileB is already open. If not, close FileB at the end of execution. Thus, FileB will be shown between brackets and the startup script will be executed on next opening.That is to define, for instance, $closeB variable with this formula :
IsEmpty ( WindowNames ( "FileB" ) )