Check if Scriptcase development server or deployed environment

Check if the software runs on a Scriptcase development environment or deployed server

Sometimes it is necessary to change parameters, depending on the environment the software is running on: Scriptcase Development or a server with the deployed application.

Example: Accessing files which have been uploaded, cause the absolute and the relative path is different.

Obviously the app could check the IP adress or the URL of the server it is running on.

Carlos (Scriptcase) has shown a much more sophisticated way during a Webinar.

He suggested to check the session variables of Scriptcase to check the path of the current environment:

 

Posted in Scriptcase Sniplets Tagged with: , , , , , , ,