Similarly, following are methods for examining fields in the Ispec:
getFieldLength(X) and isFieldReadOnly(X) return the length of field X and whether or not the field X is read-only. These methods do not throw exceptions. Use these methods for languages that do not support Java exceptions, for example, Javascript and VisualBasic.
getFieldType(X), getFieldDecimalPlaces(X), and getFieldFormat(X) return the type of data in field X, the number of decimal places in field X, and the format of the data in field X. For example, the format returned for a 10 character numeric field, with two decimal places and thousands separators, would be: NN,NNN,NNN.NN. These methods do not throw exceptions. Use these methods for languages that do not support Java exceptions, for example, Javascript and VisualBasic.
getLength(X) and isReadOnly(X) perform a similar function to getFieldLength(X) and isFieldReadOnly(X) , but do throw exceptions. Use these methods with languages that support Java exceptions.
getType(X), getDecimalPlaces(X), and getFormat(X) perform a similar function to getFieldType(X), getFieldDecimalPlaces(X), and getFieldFormat(X) , but do throw exceptions. Use these methods with languages that support Java exceptions.
Refer to IspecModel in the Agile Business Suite Component Enabler Class Reference Summary for more information on the parameters, methods, and syntax of IspecModel.