Skip 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.

Scheduling script to lookup webpage value from web viewer

Featured Replies

This one has me stumped.

 

I'm trying to use a web viewer in FileMaker 11 to look up a value from a website. I then use that value to find a record set and email the results. It works when I do it on the client, but when I run it on the server as s scheduled script it does not get the value. I also tried doing it with a startup file to trigger the script from a Windows Schedule and that failed as well.

 

In order to simplify it, I set the script to just lookup the value and email it to me. Current script:

 

Set Error Capture [ On ]
Go to Layout [ “Tasks | processing” (Tasks) ]
Refresh Window
[ Flush cached join results; Flush cached external data ]
Set Variable [ $count ]
Loop
Set Variable [ $count; Value:$count+1 ]
Exit Loop If [ $count = 50000 ]
End Loop
Set Variable [ $GDD; Value:GetLayoutObjectAttribute ( "web"; "content") ]
Send Mail [ Send via SMTP Server; To: "[email protected]"; Subject: "Task " & Tasks::pk_task ID & " for " & Get ( CurrentDate ); Message: "Current Degree Days: " & $GDD

 

The loop is to allow time for the page to render. I've tried upping it to as much as 1 million and still no luck.

 

Again, this works when I run it from the client, both on my computer and on the server, but not when I'm scheduling it.

 

Anybody see what I'm doing wrong or have an alternate suggestion? I really need this to be automated and run overnight.

 

Thanks!

SetWebViewer is not a Server compatible script step. There is no GUI on a server side script...

 

You will need a copy of FileMaker Pro to run that script - I use simple files that are launched by Task Scheduler and call the relevant script.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.