WOW is able to handle common tasks generically using the concept of “usage” and UsageId’s. Basically, UsageId’s tell WOW how a field or operation is being used. Once WOW knows how a field is being used, WOW can dynamically adjust it’s behavior to accommodate. An example is a scenario where a database field holds a password and you want to mask out the value. By setting the field’s UsageId to -80 WOW will recognize and handle the masking. Another example is a Social Security Number field where WOW will validate the value upon insert and update. SSN is identified with -110. In most scenarios, when a field class is set on a field descriptor, WOW will automatically set the UsageId
Certain functionality also requires that the user specify a field as being a certain UsageId. For instance, when securing sql operations, the security level field descriptor of the current user must be “-160”. This is a unique id that WOW recognizes and will use when evaluating operation security. Various other operations and features require the specification of usageiId as well. Refer to the following table when setting UsageIds.
UsageIds highlighted in gray are for WOW internal use only.
|
UsageId |
Description |
|
-2 |
Owner ID Field |
|
-3 |
Global Value Field |
|
-5 |
Security Type - Determines the row’s security level |
|
-6 |
Secured Type Name - Object name being looked up for security |
|
-7 |
Secured Type ID - Contains security entity ID |
|
-10 |
Address1 Field |
|
-20 |
Address2 Field |
|
-30 |
City Field |
|
-40 |
Email Field |
|
-50 |
Fax Number Field |
|
-60 |
First Name Field |
|
-70 |
Last Name Field |
|
-80 |
Password Field |
|
-90 |
Phone Number Area Code Field |
|
-100 |
Phone Number Field |
|
-110 |
Social Security Number Field |
|
-120 |
State Field |
|
-130 |
User ID Field |
|
-140 |
Zip Code Field |
|
-150 |
Zip Code Suffix Field |
|
-155 |
Theme ID Field |
|
-160 |
Indicates this field holds the current user’s security level which must be a numeric field and have values from 0 – 9. |
|
-165 |
Replacement Libraries Field |
|
-170 |
URL Reference Field |
|
-180 |
Tracking Number Field |
|
-190 |
File MIME Type Field |
|
-200 |
File Filename Field |
|
-210 |
File Size Field |
|
-220 |
Application ID Field |
|
-230 |
Flat File Reference Field |
|
-240 |
Radio Button Columns Field |
|
-245 |
Use Field Value for Style |
|
-250 |
Row ID |
|
-260 |
Company Name |
|
|
|