I would like users to be able to
Is there a way to do this?
Thank you in advance!
Scripts from a value list is done with an OnObjectModify global text field, that fires a processing script for each value in your list.
IE value list: script 1, script 2, script 3 - user selects "script 3" in global field, trigger fires:
If (table::global = "script 1")
perform script - script 1
else if (table::global = "script 2")
perform script - script 2
else if (table::global = "script 3")
perform script - script 3
As for pre-selecting a date and time for a script to fire, you'd only be able to do this via an OnTimer script, which has some caveats (IE trying to run other scripts).
There might also be a plug-in option, or something you can put together with a robot machine, or the new "perform script on server".
Picking up on your use of "layouts" in the post topic: keep in mind that OnTimer events are not tied to the layout but the window. So once you install an OnTimer, the user can switch layouts and that will not affect the OnTimer.
So, can time-triggered scripts NOT be run if a client window isn't open?How about on fmServer13?
Can I set a timer (it's 5 o'clock - run a report and save it/send it, etc) on FMServer13 somehow to run as the server runs, rather than if a client window is open
If you want to run scripts at specifc times on the server, then use the Schedule section of the Server admin console to set this up. It will let you set up a script to run at intervals, or at a specific time. You can also run the schedule manually.
Ontimer scripts are installed in a window. They will run until the window is closed or you run the Install Ontimer Script step with no arguments. You can install a script and have it run at a specific time. Below are examples from the help section of FileMaker Pro.
Install OnTimer Script [“Clock”; Interval: 60]
Set Field [Clock::Time; Get ( CurrentTime )]
OnTimer scripts are not able to be run on FMS.
So, what scripts can be fired from the server, with all clients closed, at specified times, every day?
I program in coldfusion, and it offers "every day at X time, call a template (which has essentially a script on it) to do pre determined things....
Server allows you to schedule FileMaker scripts or command line programs. Scheduling options are fairly flexible. There are some limits to what can be handled by the server, and things behave a little differently, e.g., don’t plan on user interaction.
email@example.com wrote: So, what scripts can be fired from the server, with all clients closed, at specified times, every day?I program in coldfusion, and it offers "every day at X time, call a template (which has essentially a script on it) to do pre determined things....
If you are doing reports it sounds exactly like you want to schedule a server script. You can Email the report results to whomever you want. Server scheduling is as flexible as you can get.
Schedule it via the server admin console, and when creating the script make sure you only use server compatible script steps (In FMPro Advanced you can make only the server steps show if you wish).
Retrieving data ...