I am creating a spreadsheet to document rental data.
I have client information on one sheet (Clients
), and rental info on an other sheet:
Rental
.
[ID] [Name] [Phone] [Product Code] [Product Name] [Price]
Clients
:
[Name] [e-mail] [Phone]
The unique identifier for the clients are their phone number.
To be user friendly, on the Rental
sheet the name of the client is used to by receptionist to log the rented equipment, and the unique ID (phone number) is used as a hidden data in the record.
When there are multiple clients with identical names, I use a popup window with HtmlService.createTemplateFromFile
and SpreadsheetApp.getUi().showModalDialog
where the receptionist can click on the phone number of the actual client in question.
I am stuck at the part, where I look up the list of phone numbers from the sheet Clients
based on the data in getRange(SpreadsheetApp.getActiveSpreadsheet.getActiveRange.getRow(),2
(the 2nd column of the active row on the Rental
sheet.
I can't use the built-in functions of sheets like Filter or query form the API script.
I really want to avoid migrating the whole project to google sql database if possible.
Any suggestions or pointers are appreciated.