November 8, 200421 yr Newbies 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"]
November 9, 200421 yr 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?
November 9, 200421 yr 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.
Create an account or sign in to comment