Newbies clayr_f Posted October 27, 2005 Newbies Posted October 27, 2005 I'm having a lot of trouble with scripts in IWP - steps that should work, don't. My big problem right now is my OnOpen script, which is set to run upon opening the file (set in File Options). The gist of the script is: Go to Layout [Main Menu] Enter Browse Mode Go to Record/request [first] Show/Hide Status Area [hide] None of these steps seem to work - when I open the file, it brings me back to whatever layout/mode/record I was in last. And the status bar is ALWAYS there - I have it toggled in different layouts in different scripts and it has never worked. I have one script that runs with limited success - it will take you to the correct layout, and find the right records, but when I try to constrain the found set, or sort the records, it stops working altogether. IWP is set for guest access - with limited access (only three fields are modifiable), but the scripts are set to run with full privleges. I've read through numerous threads in this forum, and haven't seen anyone with a similar problem, so I don't even know where to start - can someone point me in the right direction? link to the file: http://filemaker.cygnusgroup.ca:80/fmi/iwp/cgi?-db=projectList&-loadframes
CyborgSam Posted October 27, 2005 Posted October 27, 2005 Clay-> Welcome to the forums! I tried your db, on the home page the Status Area was hidden and locked, but when I switched to another page it was visible and unlocked. I suspect there's a script somewhere setting this. A good way to diagnose is to put an Halt Script step in suspect scripts, that'll stop all scripts from executing, so you can cleanly isolate where things are going amok.
Newbies clayr_f Posted October 28, 2005 Author Newbies Posted October 28, 2005 It's good to know it works for others - so why not for me? Is it a broswer issue? I've tried safari & firefox on the Mac, and IE & firefox on the PC, and get the same results every time. Is there any reason why If/Then script steps don't work? or a constrain after a find? The find steps that work are: Enter Find Mode Set Field [buildingCode, buildingLookup] <--where the 'lookup' is actually just radio buttons in a global field Commit record/request Perform Find [] But as soon as I add this after, nothing works at all: Enter Find Mode Constrain Found Set [restore] <-- omit Status=Complete Commit record/request Perform Find [] I tried having the find and constrain together before committing, with no luck, so I separated them into two as above, but still nothing. Is there a better way of doing this?
CyborgSam Posted October 29, 2005 Posted October 29, 2005 AFAIK, there's no need to use a Commit Record step after a find. Have you checked the scripts to make sure everything is web-compatible? Perhaps an incompatible step is preventing the other steps from properly executing.
Recommended Posts
This topic is 7234 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 accountSign in
Already have an account? Sign in here.
Sign In Now