Rick Whitelaw Posted March 9, 2015 Posted March 9, 2015 I've been checking out PSOS but have yet to use it. I suppose any concerns about whether a file is local or hosted could be resolved with something along the lines of: If(Get(HostName)) PSOS etc. Else Perform Script etc. That way if a file isn't hosted the script would run locally. However there doesn't seem to be a way to DeBug a PSOS designated script. Is it safe to say that if a script shows compatibility with Server (and all the contexts are made clear as required) that the script will run on the server? I've yet to do safe testing on a number of routines I believe would be better handled server side and am uncertain how to proceed. I inadvertently double posted. Whoever's on tonight please delete the duplicate. Thanks, Rick.
David Jondreau Posted March 10, 2015 Posted March 10, 2015 You can debug, it's just more work. Use a new table, call it ErrorLog. After each step you want to test, toss in an If[ Get ( lastError ) ] with a Perform Script[]. That Perform Script goes to the table, creates a new record, and writes the error. Then you can continue with the script or Exit as you wish. I would absolutely test PSOS scripts.
Wim Decorte Posted March 10, 2015 Posted March 10, 2015 I've been checking out PSOS but have yet to use it. I suppose any concerns about whether a file is local or hosted could be resolved with something along the lines of: If(Get(HostName)) PSOS etc. Else Perform Script etc. A script running on PSoS will return this: PatternCount ( Get ( ApplicationVersion ) ; "server" ) = 1 Same a scheduled script.
Rick Whitelaw Posted March 10, 2015 Author Posted March 10, 2015 Thanks Wim, Since the main script is initiated on the client, I was looking at the above to determine if the file was hosted or not.
Recommended Posts
This topic is 3758 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