wm.tn.dictionary:getContactTypes
Retrieves the contact types defined for the trading network.
Input Parameters
None.
Output Parameters
contactTypes | Object A java.lang.Hashtable that contains the contact types. The Hashtable is keyed by the String contact type descriptions, and the values are the Short contact type codes. |
contactTypesByID | Object A java.lang.Hashtable that contains the contact types. The Hashtable is keyed by the Short contact type codes and the values are the String contact type descriptions. |
descriptions | String List A sorted list of all contact type descriptions, returned as a string[]. The list is sorted in ascending alphabetical sequence. |
Usage Notes
The three output variables contain the same data presented three different ways.
1. If you have the contact type description and you need its ID, use the Hashtable returned in contactTypes.
2. If you have the contact type ID and you need its description, use the Hashtable returned in contactTypesByID.
3. To present the contact types sorted in alphabetical order, use the list returned in descriptions. Then use the Hashtable in contactTypes to look up the corresponding ID for any String in the descriptions list.