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.

FM11 Schedules to run a script

Featured Replies

I'm doing something new so pardon me if I don't have all the details.

 

My Company would like to get daily snapshots, for example, how many orders are in-house.  Then you can graph and track the trend: are the number of orders going up or going down.

 

My understanding is that the server (Filemaker 11 server standard) can utilize the "Schedule" feature to run the script.  

"created a schedule",

selected my database and entered username/password.  

Selected the script to run.  

No timelimit,

Set the frequency (currently every 1 minute since i'm testing it)

 

My script:

Goto TrendTable layout

make a New Record

Insert Current Date into DateField

Insert Current Time into TimeField

Set Field SOCount = Count(SalesOrderDatabase::SalesOrderNumber)

 

When I run the script it works fine.

When I run the Schedule to run the script, the server reports "Filemaker Script Error"  I set up a notification Email, and it tells me "Schedule "Timer Test" completed; last scripting error (103)."

 

First: am I on the right track?

and 2nd: where is the problem? is it because I'm trying to get information from a related table?

 

Thanks in advance.

Scott

103 = Relationship is missing.  Looks like your script does not establish the proper context.

Remember that a scheduled script will run the complete on-open routine when it opens the file, not just your script.  So I'm guessing that something goes wrong in the on-open scripts.

  • Author

Welp, i'm stupid.  I didn't set the "go to layout" step.  it was "go to layout [original]" and not the layout I wanted.  A R G.  once I set the layout that I wanted it worked properly.

 

But thanks for your insight.  It does help.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.