Jump to content

PSOS concerns


Rick Whitelaw
 Share

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

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This topic is 2824 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
 Share

×
×
  • Create New...

Important Information

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