Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

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.

Posted

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.

Posted

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.

Posted

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.

This topic is 3545 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
×
×
  • Create New...

Important Information

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