Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4209 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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!

Posted

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.

This topic is 4209 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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