Jump to content

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

Recommended Posts

  • Newbies
Posted

I have a simple layout (MembershipMasterFind) that presents the user with a Last Name field as well as a few control buttons. The script below works perfectly to "get" the member's last name and then present a new layout (MembershipMasterAddress) to allow editing. When working locally, you can enter the last name, either press Enter or click my "Find Member" button.

However, trying to duplicate this through IWP fails. If I press Enter, the prior text is pushed up and I am on "line 2" of the last name field. If I instead click the "Find Member" button, I get to the 2nd layout with blank fields.

To make it work correctly through IWP I have to enter the last name and then click Find on the FileMaker control bar on the left.

Can someone help me understand what is needed to it will work in IWP? Here is my script:

Show All Records

Goto Layout ["MembershipMasterFind"]

Enter Find Mode [Pause]

Perform Find []

Goto Layout ["Membership Master Address"]

Posted

Dear Dude,

The last I knew FMPro's ScriptMaker was single-threaded and did not queue subsequent, near-simultaneous event requests. Do you know something I don't know?

I know that when a ScriptMaker event uses a pause, if another request is made during that pause, a single-threaded ScriptMaker will allow the subsequent request to run without completing the first request. Now what will the consequences of that be to your web site?

Posted

With FMP 7's IWP, scripts run through to completion, THEN the results are returned to the browser. So script steps like Show Dialog are not compatible, and Pause steps are ignored AFAIK. So you script is running, but the pause in Find mode is not being honored.

Time to rethink your find process for the web. Maybe two steps: 1) enter find mode. Then 2) Perform the find. Separate scripts.

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