load( local!gridSelection: a!gridSelection( pagingInfo: a!pagingInfo( startIndex: 1, batchSize: 10, sort: a!sortInfo( field: "nbr_mrtg", ascending: true ) ) ), local!newGridSelection: local!gridSelection, with( local!spDataDictionary_ds: if( local!gridSelection.pagingInfo.startIndex <> local!newGridSelection.pagingInfo.startIndex, rule!QM_querySPRemedyReceiveSearch( cNbrMrtg: if( count( ri!searchLoanNumbers_txts ) > 1, rule!QM_parseArrayOfLoanNumbersToTextWithQuotes( ri!searchLoanNumbers_txts ), index( ri!searchLoanNumbers_txts, 1, null ) ), cCd_rvw_rsn: ri!reviewReason_txt, cCd_rvw_sts: ri!reviewStatus_txt, cCd_rvw_type: ri!reviewType_int, cResp_party: if( rule!APN_isBlank( ri!responsiblePartyNumberName_txt ), ri!responsiblePartyNumberName_txt, mid( ri!responsiblePartyNumberName_txt, 1, 6 ) ), cId_rmdy_rep: ri!remedyRepName_user, cResp_party_fmly: if( rule!APN_isBlank( ri!responsiblePartyFamilyNumberName_txt ), ri!responsiblePartyFamilyNumberName_txt, mid( ri!responsiblePartyFamilyNumberName_txt, 1, 6 ) ), cStartIndex_int: local!gridSelection.pagingInfo.startIndex, cBatchSize_int: local!gridSelection.pagingInfo.batchSize ), local!spDataDictionary_ds ), a!sectionLayout( label: cons!QM_LABEL_SECTION_SEARCH_RESULTS, firstColumnContents: { a!gridField( label: "", instructions: "", totalCount: local!spDataDictionary_ds.totalCount, columns: { a!gridTextColumn( label: cons!QM_LABEL_COLUMN_FHLMC_LOAN_NUMBER, field: "nbr_mrtg", data: index( local!spDataDictionary_ds.data, "nbr_mrtg", {} ), alignment: "RIGHT" ), a!gridTextColumn( label: cons!QM_LABEL_FIELD_WL_REVIEW_SEQUENCE, field: "rvwSeq", data: index( local!spDataDictionary_ds.data, "rvwSeq", null ), alignment: "RIGHT" ), a!gridTextColumn( label: cons!QM_LABEL_FIELD_REVIEW_TYPE, field: "desc_rvw_type", data: index( local!spDataDictionary_ds.data, "desc_rvw_type", null ), alignment: "RIGHT" ), a!gridTextColumn( label: cons!QM_LABEL_FIELD_REVIEW_STATUS, field: "desc_rvw_sts", data: index( local!spDataDictionary_ds.data, "desc_rvw_sts", null ), alignment: "RIGHT" ), a!gridTextColumn( label: cons!QM_LABEL_FIELD_REVIEW_REASON, field: "desc_rvw_rsn", data: index( local!spDataDictionary_ds.data, "desc_rvw_rsn", null ), alignment: "RIGHT" ), a!gridTextColumn( label: cons!QM_LABEL_FIELD_REMEDY_REQUEST_TYPE_DESCRIPTION, field: "desc_rmdy_type", data: index( local!spDataDictionary_ds.data, "desc_rmdy_type", null ), alignment: "RIGHT" ), a!gridTextColumn( label: cons!QM_LABEL_FIELD_AGE, field: "age", data: index( local!spDataDictionary_ds.data, "age", null ), alignment: "RIGHT" ), a!gridTextColumn( label: cons!QM_LABEL_FIELD_REPURCHASE_ALT_OFFER_TYPE, field: "desc_rpch_altv_ofr_type", data: index( local!spDataDictionary_ds.data, "desc_rpch_altv_ofr_type", null ), alignment: "RIGHT" ), a!gridTextColumn( label: cons!QM_LABEL_FIELD_REPURCHASE_ALT_OFFER_STATUS, field: "desc_rpch_altv_ofr_sts_type", data: index( local!spDataDictionary_ds.data, "desc_rpch_altv_ofr_sts_type", null ), alignment: "RIGHT" ), a!gridTextColumn( label: cons!QM_LABEL_FIELD_REMEDY_REP_NAME, field: "id_rmdy_rep_user", data: if( isNull( index( local!spDataDictionary_ds.data, "id_rmdy_rep_user", null ) ), null, apply( rule!QM_displayFullName( _ ), index( local!spDataDictionary_ds.data, "id_rmdy_rep_user", null ) ) ), alignment: "RIGHT" ), a!gridTextColumn( label: cons!QM_LABEL_FIELD_RESPONSIBLE_PARTY_NUMBER, field: "nbr_ssr_respl_prty", data: property( local!spDataDictionary_ds.data, "nbr_ssr_respl_prty", null ), alignment: "RIGHT" ), a!gridTextColumn( label: cons!QM_LABEL_FIELD_RESPONSIBLE_PARTY_NAME, field: "name_ssr", data: property( local!spDataDictionary_ds.data, "name_ssr", null ), alignment: "RIGHT" ), a!gridTextColumn( label: cons!QM_LABEL_FIELD_RESPONSIBLE_PARTY_FAMILY_NUMBER, field: "resp_fam_number", data: property( local!spDataDictionary_ds.data, "resp_fam_number", null ), alignment: "RIGHT" ), a!gridTextColumn( label: cons!QM_LABEL_FIELD_RESPONSIBLE_PARTY_FAMILY_NAME, field: "name_ssr", data: property( local!spDataDictionary_ds.data, "name_ssr", null ), alignment: "RIGHT" ) }, identifiers: index( local!spDataDictionary_ds, "identifiers", {} ), value: local!gridSelection, saveInto: { local!gridSelection }, selection: true ) }, isCollapsible: true ) ) )