ChangeFieldMap

$s->ChangeFieldMap( name=>value, ...)

ChangeFieldMap() is a hash list that maps standard field names (for example, Owner) to a local name that you specify in value. The name is usually the name of a field in the SAMPL defect record type, but you can use any name that needs mapping in a query. The field map names are used in query or result set lists as variables. For example:

$s->ChangeFieldMap(OWNER => "Owner",
                       STATE => "State",
                       ID => "id", #Note: ID shouldn't need to change
                       HEADLINE => "Headline",
                       PRIORITY => "Priority",  
                       SEVERITY => "Severity",
                       RATL_MASTERSHIP => "ratl_mastership",

                       # Other mappable names
                       QUERY_STATES => "Submitted,Assigned,Opened",
                       MODIFY => "modify"
                       );

The value for <OWNER> is translated to the local value that you provide in the OWNER=>"Owner" pair.

Tip: If you use multiple record types, the field names in the mapping must be present in all record types.