Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

I have a multiple-file solution that uses external scripts. In one example, I have a portal in the 'Main' database that shows records from the 'People' database. Each line of the portal has a Go button that executes the following script:


Commit Records/Requests [No dialog]

Go To Related Record [show only related records; From Table: "People"; External; Using layout: "Data Entry" (People)]

Select Window [Name: "People"]

My problem is that if the external file (in this case, People) hasn't been accessed before, the Web browser loads a new URL with People in it instead of Main, and the external script does not function correctly. Subsequent attempts work fine. In addition, whenever the URL is changed, my previously locked sidebar opens. I don't have any script steps to open the sidebar, let alone in a startup script.

Why does IWP behave like this? Is there any way to keep the sidebar hidden and locked, other than consolidating my files?

TIA.

Posted

The Commit Record/Request step at the beginning causes the focus of the portal row to be lost. Get rid of it. Also try the script without the Select Window step.

Posted

That didn't really work. The new virtual window opens correctly, and it does so without opening the status area (sidebar), but the record that appears is the first one in the People database, not the related record. Any other ideas?

I also tried a method using external scripts, but those work even less. Despite the fact that the People database is shared and uses the same permissions, running a script in IWP that has a "perform script [external]" step just causes the browser window to blink.

Posted

I think what's happening is that whenever IWP encounters a Go to related record script step, it loads the other database into the URL, which causes that file's Startup script to run, thus overriding any script steps that had come after the go to related record step.

Does that sound correct?

Posted (edited)

A little experiment I set up:

Two files, both hosted on IWP, with IWP privileges set correctly. One named "Main", one named "People".

People contains two layouts, "ONE" and "TWO". It has a startup script:

Show/Hide Status Area [Lock; Hide]

[Go to Layout: "ONE"]

It also has a script called "GO TO TWO":

[Go to Layout: "TWO"]

A single button was placed on the only layout of the Main database. The button ran a script called "DO EXTERNAL SCRIPT", which I changed to do the following three sets of steps, and noted the results:

Perform Script ["GO TO TWO" from file: "People"]

Perform Script ["GO TO TWO" from file: "People"]

Select Window [Name: "People"]

Select Window [Name: "People"]

Perform Script ["GO TO TWO" from file: "People"]

Select Window [Name: "People"]

Using the first script, the browser window just blinked.

Using the second script, People opened, but stayed at Layout ONE.

Using the third script, People opened, but stayed at Layout ONE.

None of these work correctly - they don't go to layout TWO. This suggests that the startup script overrides any external script that is called. Can that possibly be correct?

Edited by Guest
Results were incorrect

This topic is 6450 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.