Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

non-functioning scripts

Featured Replies

  • Newbies

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

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.

  • Author
  • Newbies

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?

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.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.