March 9, 201510 yr 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.
March 10, 201510 yr 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.
March 10, 201510 yr 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.
March 10, 201510 yr Author 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.
Create an account or sign in to comment