Smiley Posted August 17, 2016 Posted August 17, 2016 Hi in my milking solution we now have table for productions , where the overseer of the production can report how their schedule went. until now we had created a production for the overseer to complete. What i want is to create a server side script that would create a recurring production every day at a soecified time. How would i create such a script for server side , i havw create many scrips before but never really worked with server side scripts. I would appreciate if someone could help me out on this.
Wim Decorte Posted August 17, 2016 Posted August 17, 2016 You create the script like any other script, but select "server" in the compatibility view (top right of the script window); that will show you whether you are using script steps that don't work on server. Also keep in mind that a server-side script schedule also runs any OnOpen and OnClose scripts so vet those too to make sure they are compatible, or make them exit right away when it runs on the server (use the Get(ApplicationVersion) for that. It will have the word "server" in when the script is executed on the server.
Smiley Posted August 17, 2016 Author Posted August 17, 2016 (edited) what i want that if recurring is checked then it should run a shceduled server side script , how would i specify that? Edited August 17, 2016 by Smiley
Wim Decorte Posted August 17, 2016 Posted August 17, 2016 You set up the script schedule on FMS, in the admin console. I imagine that the script would start by finding any records that are marked as 'recurring' and work with those.
Recommended Posts
This topic is 3272 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 accountSign in
Already have an account? Sign in here.
Sign In Now