Using linux environment variables
A lot of Linux users have grown to love environment variables, they make coding faster with less keystrokes. The following code will show you how to call $HOME and display it in lblPath.
There are two things to remember. Packages.java.lang is required and the leading $ for your environment variable is not required for System.getenv().
importPackage(Packages.java.lang); temp = System.getenv("HOME"); reportContext.getDesignHandle().findElement("lblPath").text = temp<br />
There are two things to remember. Packages.java.lang is required and the leading $ for your environment variable is not required for System.getenv().
Warning
No formatter is installed for the format ipb
0
Categories
- All Categories
- 107 Developer Announcements
- 53 Articles
- 104 General Questions
- 141 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 898 Cloud Fax and Notifications
- 76 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 117 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management