Jump to content
Server Maintenance This Week. ×

Find script not working in IWP with external FM Database?


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

Recommended Posts

I am trying to figure out why this doesn't work in IWP..I'm using Filemaker version 11...but I tried converting to version 12 to test it out and it still didn't work

 

I am going to assume that the problem is the first script is calling on a scrip in a related database and the layout that is being loaded is from the related database. For some reason that's halting the script....

 

Here's what I'm doing:

 

Perform Script ["GoToEvent"from file:"ipr"; Parameter:Get(ScriptParameter)]

 

That runs the script "GoToEvent" from anther filemaker database and opens up the layout titled "Event Details Admin Sui"

 

It works within FM but not on IWP. What ends up happening is the layout "Event Details Admin Sui" loads but it loads to the first record. Not the record being called by the find request in the scrip....Any suggestions or workarounds? I'm REALLY hoping theres a way to make this work without having to integrate both databases.

 

Thanks!!!

 

Here's the "GoToEvent" Script

New Window[]

Go to Layout ["Event Details Admin Sui" (SampleEvents)]

Show/Hide Status Area [Hide]

Adjust Window [Resize to Fit]

Enter Find Mode[]

Set Field [sampleEvents::Event ID; Get(ScriptParameter)]

Perform Find[]

Set WIndow Title [Current Window; New Title: SampleEvents::Zulu Summary]

Set Variable [$from_suical; Value:1]

 

 

Link to comment
Share on other sites

Adjust Window is incompatible with IWP. (You can see this by turning on the Instant Web Publishing filter in the script editor.)

 

Your script subsequently stops, however if you add Set Error Capture [On] at the beginning of the script then IWP will continue.

 

Please refer to the IWP guide for more details on script limitations and how to handle them.

Link to comment
Share on other sites

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