Accessing iHub environment information : getServerWorkingDirectory( )
 
getServerWorkingDirectory( )
Retrieves the path to the folder in the file system where temporary files are stored.
JavaScript syntax
getServerWorkingDirectory()
Java syntax
public String getServerWorkingDirectory()
Usage
Use to read or write information from and to the file system.
Returns
The full path to the iHub working directory.
JavaScript example
reportContext.getAppContext().get("ServerContext").getServerWorkingDirectory();
Java example
IServerContext scontext;
scontext = (IServerContext) reportContext.getAppContext().get("ServerContext");
scontext.getServerWorkingDirectory();