D17339
04/23/2020, 8:44 AMNickSuite
04/23/2020, 10:10 AMNElliott
04/23/2020, 10:24 AMSandii
04/23/2020, 2:09 PMD17339
04/23/2020, 4:53 PMSandii
04/23/2020, 4:57 PM//listens fieldChanged
function handlePageChange(rec, context) {
var currPage = Number(rec.getValue(context.fieldId));
var multiplier =100;
var minRow = (currPage - 1) * multiplier;
var maxRow = (currPage * multiplier) - 1;
var lineCount = rec.getLineCount('custpage_sublistid');
for (var i = 0; i < lineCount; i++) {
(i >= minRow && i <= maxRow)
? updateRowDisplay(i, '')
: updateRowDisplay(i, 'none');
}
}
//listens handlePageChange
function updateRowDisplay(line, displayType) {
jQuery('#custpage_sublistidrow' + line).css('display', displayType);
}
something like that on your client, obviously need more in the fieldChanged,
you also need to handle some pagination on pageInit to hide lines after the first 100 (or whatever 'multiplier' you use)