in displayCustomer we see var data = this.customerDS.data(); and later this.customerModel.CustNum = data[this.customerIdx].CustNum;

in displaySalesRep we see var view = this.salesrepDS.view(); and later this.salesrepModel.SalesRep = view[0].SalesRep;

Was this just because the customer record needed to be manipulated by setting the customerInx value or for some other reason.