AddColumn (type, name, reference, isText, displayType, defaultValue, join)
Adds a column on the sublist of the Bill 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 Bill 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 Bill 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 Bill Payment Processing page loads. -
join
{string} [optional] – The join id for the search return column.
Returns
-
void
Throws
-
EP_MISSING_FIELDS
– Thrown when a required argument is missing. Logs “Please enter required column parameters: type, name, reference.” -
EP_INVALID_VALUE
– Thrown when an invalid argument is passed.
Example
var epPaymentSelectionForm = new EPPaymentSelectionForm();
epPaymentSelectionForm.AddColumn('text', 'Custom Name', 'custbody_custom_name');
epPaymentSelectionForm.AddColumn('text', 'Approval Status', 'approvalstatus', true);
epPaymentSelectionForm.AddColumn('text', 'Email', 'email', '', '', '', 'vendor');