Based on the property definition below, what are the possible values returned by the transaction
Type property?
<property name = “transactionType” data-type= “enumerated”>
<attribute name = “useCodeForValue” value = “true”/>
<option value = “credit” code = “999”/>
<option value = “debit” code “998”/>
<option value = “purchase” code = “997”/>
</property>
A.
1, 2, or 3
B.
999, 998, or 997
C.
credit, debit, or purchase
D.
999, 998, and 997 are reserved numbersinATG and hence cannot be usedinenum.
E.
Credit, debit, and purchase are reserved namesinATG and hence cannot be usedinenum.
Explanation:
Example:
property name=”gender” datatype=”enumerated”> <attribute name=”useCodeForValue” value=”false”/> <option value=”male”
code=”0″/> <option value=”female” code=”1″/></property>
In the above property example, with useCodeForValue set to false, then if you get
the gender property, the string male or female is returned. With useCodeForValue set to true, then
the integer code 0 or 1 would be returned instead.
Note: Enumerated Properties
Properties of repository items can have a data type of enumerated. Enumerated properties are
string properties constrained to a predefined list of valid values and stored as integer codes in the
database.
ATG Repository Guide, Enumerated Properties