Defining the Number of Rows (SortByWrapper Element)

The SortByWrapper element is used to set the number of disbursement lines appearing on a generated page. The element iterates over the number of payments and then totals them together; attributes on the element then define how the totals are presented on the generated output.

A use case for this behavior is a requirement for a total of fifteen rows of Payoffs and Payments to be included on page 3 of Closing Disclosures, even if the transaction has less than fifteen disbursements, to comply with TILA/RESPA regulations.
Note: If the /Txn/Notes/Note[1]/DisbursementToOthersAmount is passed in the transaction data, the payments lines are set to show 15 lines total by default. The SortByWrapper element mimics that behavior for situations where DisbursementToOthersAmount is not passed in the transaction data.

The SortByWrapper element is available as a child element on a table body (tbody) element using the Add Child Element option or can be added before or after a row element (row) using the Insert Element After/Before options. The element can also be added as a child to an Iterator element.

The SortByWrapper element comprises five attributes; three attributes that can be used to determine how to present the payment lines and two attributes defining how to sum entries in the table.

Note: The BeginSumIndex, MinIndex, and MaxIndex are based off the iterator index, not the overall index.