Page History
...
- The URL of our company web site is www.mycompany.com (but it may change later).
...
For example, take the simple "The URL of our company web site is www.mycompany.com (but it may change later)" requirement. To make the company web site URL a soft coded value in your Framework you would do the following:
...
You would define a Framework level custom property named COMPANYURL. It would most likely be of type Alphanumeric with a maximum length of 256. It would not be changeable by on site Administrators and have a default value of www.mycompany.com.
As a DEVELOPER
You would retrieve the value of custom property COMPANYURL into your programs to avoid hard coding of the company URL.
...
You would have nothing to do. You may notice that every time you create a user profile it has a property called "Company Web Site" associated with it that has value www.mycompany.com but you would not be able to change it. Only the Framework DESIGNER would be able to change the value.
...
You might define an application level custom property named ALLOWSTATES. It might be defined as a fixed alphanumeric list like this:
| Value | Caption to Display to User |
|---|---|
ALL | Allow all States |
CA | California Only |
NY | New York Only |
MN | Minnesota Only |
As a DEVELOPER
You would retrieve the value of ALLOWSTATES into your programs and use it to control how your program behaves.
...
These simple examples demonstrate the essence of custom properties. They of course have considerably more capability than this. For example you can specify the type as Alphanumeric, Numeric or Boolean and have multiple selection lists.
See also Frequently Asked Questions about Custom Properties and Things to be careful with when using Custom Properties.
Defining Custom Properties
When defining a new property, these options are displayed:
Value(s) can be changed by Administrator