none of your scripts are correct

they are ignoring the main script which I am trying to fix 
this is the script which needs the pagination function added to it/\*\*
 \* @NApiVersion 2.x
 \* @NScriptType Suitelet
 \* @NModuleScope SameAccount
 \*/

define(['N/ui/serverWidget', 'N/search'], function(ui, search) {
 function onRequest(context) {
 if (context.request.method === 'GET') {
 var form = ui.createForm({
 title: 'Sales Orders Search',
 });
 var customerGroupField = form.addField({
 id: "custgroup\_filter",
 type: ui.FieldType.SELECT,
 label: "Customer Group",
 source: "customerGroup",
 });
 customerGroupField.isMandatory = false;

 // Add customer filter
 var customerField = form.addField({
 id: "customer\_filter",
 type: ui.FieldType.SELECT,
 label: "Customer",
 source: "customer",
 });
 customerField.isMandatory = false;

 // Add start date filter
 var startDateField = form.addField({
 id: "start\_date\_filter",
 type: ui.FieldType.DATE,
 label: "Start Date",
 });
 startDateField.isMandatory = false;

 // Add end date filter
 var endDateField = form.addField({
 id: "end\_date\_filter",
 type: ui.FieldType.DATE,
 label: "End Date",
 });
 endDateField.isMandatory = false;

 // Add saved search filter
 var savedSearchField = form.addField({
 id: "saved\_search\_filter",
 type: ui.FieldType.SELECT,
 label: "Saved Search",
 source: "search",
 });
 form.addSubmitButton({
 label: 'Search',
 });
 context.response.writePage(form);
 } else {
 var salesOrderSearch = search.create({
 type: search.Type.SALES\_ORDER,
 columns: [
 'tranid',
 'entity',
 'trandate',
 'status',
 ],
 });
 var filters = [];
 var createdDate = context.request.parameters.created\_date;
 var status = context.request.parameters.status;
 var customer = context.request.parameters.customer;
 var customerGroupId = context.request.parameters.customer\_group;
 if (createdDate) {
 filters.push(['createddate', 'onorafter', createdDate]);
 }
 if (status) {
 filters.push(['status', 'anyof', status]);
 }
 if (customer) {
 filters.push(['entity', 'anyof', customer]);
 }
 if (customerGroupId) {
 salesOrderSearch.filters.push(['custbody\_customer\_group', 'anyof', customerGroupId]);
 }
 salesOrderSearch.filters = filters;
 var searchResult = salesOrderSearch.run();
 var form = ui.createForm({
 title: 'Sales Orders Search',
 });
 var sublist = form.addSublist({
 id: 'salesorders',
 label: 'Sales Orders',
 type: ui.SublistType.LIST,
 });
 sublist.addField({
 id: 'sales\_order\_id',
 label: 'Sales Order ID',
 type: ui.FieldType.TEXT,
 });
 sublist.addField({
 id: 'customer\_name',
 label: 'Customer Name',
 type: ui.FieldType.TEXT,
 });
 sublist.addField({
 id: 'created\_date',
 label: 'Created Date',
 type: ui.FieldType.TEXT,
 });
 sublist.addField({
 id: 'status',
 label: 'Status',
 type: ui.FieldType.TEXT,
 });
 var i = 0;
 searchResult.each(function(result) {
 sublist.setSublistValue({
 id: 'tranid',
 line: i,
 value: result.getValue({
 name: 'tranid',
 }),
 });
 sublist.setSublistValue({
 id: 'entity',
 line: i,
 value: result.getText({
 name: 'entity',
 }),
 });
 sublist.setSublistValue({
 id: 'trandate',
 line: i,
 value: result.getValue({
 name: 'trandate',
 }),
 });
 sublist.setSublistValue({
 id: 'status',
 line: i,
 value: result.getText({
 name: 'status',
 }),
 });
 i++;
 return true;
 });
 context.response.writePage(form);
 }
 }
 return {
 onRequest: onRequest,
 };
 });
스크립트 중 어느 것도 올바르지 않습니다.

그들은 내가 고치려고하는 메인 스크립트를 무시하고 있습니다. 
페이지 매김 기능을 추가해야 하는 스크립트입니다 /\*\*
 \* @NApiVersion 2.x
 \* @NScriptType Suitelet
 \* @NModuleScope SameAccount
 \*/

define(['N/ui/serverWidget', 'N/search'], function(ui, search) {
 function onRequest(context) {
 if (context.request.method === 'GET') {
 var form = ui.createForm({
 title: '판매 주문 검색',
 });
 var customerGroupField = form.addField({
 id: "custgroup\_filter",
 유형: ui.FieldType.SELECT,
 label: "고객 그룹",
 source: "customerGroup",
 });
 customerGroupField.isMandatory = false;

 // 고객 필터 추가
 var customerField = form.addField({
 id: "customer\_filter",
 유형: ui.FieldType.SELECT,
 label: "Customer",
 source: "customer",
 });
 customerField.isMandatory = false;

 // 시작 날짜 필터 추가
 var startDateField = form.addField({
 id: "start\_date\_filter",
 유형: ui.FieldType.DATE,
 label: "시작 날짜",
 });
 startDateField.isMandatory = false;

 // 종료 날짜 필터 추가
 var endDateField = form.addField({
 id: "end\_date\_filter",
 유형: ui.FieldType.DATE,
 label: "종료 날짜",
 });
 endDateField.isMandatory = false;

 // 저장된 검색 필터 추가
 var savedSearchField = form.addField({
 id: "saved\_search\_filter",
 유형: ui.FieldType.SELECT,
 label: "저장된 검색",
 source: "검색",
 });
 form.addSubmitButton({
 레이블: '검색',
 });
 context.response.writePage(form);
 } else {
 var salesOrderSearch = search.create({
 유형: search.Type.SALES\_ORDER,
 columns: [
 'tranid',
 'entity',
 '트란다테',
 'status',
 ],
 });
 var filters = [];
 var createdDate = context.request.parameters.created\_date;
 var status = context.request.parameters.status;
 var customer = context.request.parameters.customer;
 var customerGroupId = context.request.parameters.customer\_group;
 if (createdDate) {
 filters.push(['createddate', 'onorafter', createdDate]);
 }
 if (status) {
 filters.push(['status', 'anyof', status]);
 }
 if (customer) {
 filters.push(['entity', 'anyof', customer]);
 }
 if (customerGroupId) {
 salesOrderSearch.filters.push(['custbody\_customer\_group', 'anyof', customerGroupId]);
 }
 salesOrderSearch.filters = filters;
 var searchResult = salesOrderSearch.run();
 var form = ui.createForm({
 제목: '판매 주문 검색',
 });
 var sublist = form.addSublist({
 id: 'salesorders',
 label: '판매 주문',
 유형: ui.SublistType.LIST,
 });
 sublist.addField({
 id: 'sales\_order\_id',
 label: '판매 주문 ID',
 type: ui.FieldType.TEXT,
 });
 sublist.addField({
 id: '고객\_이름',
 label: '고객 이름',
 type: ui.FieldType.TEXT,
 });
 sublist.addField({
 id: 'created\_date',
 label: '생성된 날짜',
 type: ui.FieldType.TEXT,
 });
 sublist.addField({
 id: '상태',
 label: '상태',
 type: ui.FieldType.TEXT,
 });
 var i = 0;
 searchResult.each(function(result) {
 sublist.setSublistValue({
 id: 'tranid',
 line: i,
 value: result.getValue({
 name: 'tranid',
 }),
 });
 sublist.setSublistValue({
 id: 'entity',
 line: i,
 value: result.getText({
 name: 'entity',
 }),
 });
 sublist.setSublistValue({
 id: '트란다테',
 line: i,
 value: result.getValue({
 name: 'trandate',
 }),
 });
 sublist.setSublistValue({
 id: 'status',
 line: i,
 value: result.getText({
 name: 'status',
 }),
 });
 i++;
 참을 반환합니다;
 });
 context.response.writePage(form);
 }
 }
 반환 {
 onRequest: onRequest,
 };
 });