Okay, so the setup here might be a little bit long, but I'll try and get to the punch line.
Essentially, I'm trying to enhance QuickBase in order to accommodate tracking of compensation history for employees. Approval for comp changes is done on a quarterly basis, for employees with an anniversary date that falls in that quarter. The idea is that managers would pull up a report with all relevant reviewees for that quarter, enter in their proposed comp changes, and then that would go on to the approvers for confirmation.
To accomplish this, we have an "Employees" table related to a "Comp Records" table, one to many. An example of a Comp Record would be Bob's Q1/2015 review, his Q1/2016 review, his Q3/2016 merit increase, and his Q1/2017 review, etc.
My hope is that the act of filling in proposed compensation changes is a matter of doing a grid-edit of comp records, fill in the proposed "new salary", and hit save. Sounds easy enough.
It's easy enough to create a report around "Employees" that shows all employees with an anniversary date in the coming quarter. It's easy enough to create a report of all "Comp Records" for a given time period, for a given location, or for a given approver.
However, the problem is that if there are (for example) 20 people up for review in Q2, we'd need to generate 20 blank "Comp Records" for the appropriate dates, for those specific Employees. In other words, I don't necessarily want people to have to go in and hit "New Comp Record", pick an employee name, fill in the information, and hit save, 20 times.
I know the HTTP API has an Add Record function which I've seen other people drive via a button within QuickBase. That doesn't seem to handle it for more than one Employee at a time.
I've also seen that it's possible to host pages within QB and embed javascript on those pages in order to do the dirty work. That seems more likely a solution, but I'm not entirely sure how to go about using this.
Is there a way to use JS to query from QB "all Employee IDs for Employees that have an anniversary date in the coming quarter" and then loop through that list using Add Record to add Comp Records for each employee? I think an example of this is really the core of what I'm looking for.
In that case, I would end up with a button something to the effect of "Start Q2 Comp Reviews", click it one time to add the appropriate blank records, then let managers start filling in their proposed changes. That seems like a pretty reasonable experience.
If there's a more graceful overall solution, I'm also open to that. Any help is much appreciated :)