AddColumn (type, name, reference, isText, displayType, defaultValue, join)
Adds a column on the sublist of the Invoice Payment Processing page to display field values from the records searched.
Parameters
-
type
{string} [required] – The field type of the column. Valid arguments are listed below.-
text
-
integer
-
date
-
currency
-
-
name
{string} [required] – The name of the column displayed on the sublist of the Invoice Payment Processing page. -
reference
{string} [required] – The internal ID name of the column you want to add on the sublist. Thereference
argument can be a standard or custom entity field. Thereference
argument can also be a standard or custom transaction field. -
isText
{Booleantrue
|false
} [optional] – If value istrue
, the column displays the text or readable value of the field. If the value isfalse
, the column displays the id of the field value. -
displayType
{string} [optional] – The display type of the column added to the sublist on the Invoice Payment Processing page. Valid arguments are listed below.-
normal
-
hidden
-
-
defaultValue
{string} [optional] – The default value of the column that is displayed on the sublist automatically when the Invoice Payment Processing page loads. -
join
{string} [optional] – The join id for the search return column.
Throws
-
EP_API_INVALID_COLUMNTYPE_VALUE
– Thrown when column type has invalid values added. Refer to the valid column type values. -
EP_API_INVALID_COLUMNISTEXT_VALUE
– Thrown when isText value is not Boolean. -
EP_API_INVALID_COLUMNDISPLAYTYPE_VALUE
– Thrown when displayType value is invalid. Refer to the valid displayType column values. -
EP_API_INVALID_COLUMNDISPLAYTYPE_VALUE
– Thrown when displayType value is invalid. Refer to the valid displayType column values. -
EP_API_MISSING_COLUMN_FIELDS
– Thrown when a required argument is missing [type, name, reference].
Example
epPaymentSelectionForm.AddColumn('text','ApprovalStatus', 'approvalstatus', true);