My app has multiple tables that all display different data from the same source. It would make things SO much easier and greatly reduce the amount of code needed, to be able to reference a currentTable variable rather than using IF/ELSE and triggeredById to reference the source of the data for the query.
I could replace the entire switch statement with formData = currentTable.data if it existed.
I think get what you are looking for, but couldn't you trigger the query with additional scope based on where it is triggered from (I am assuming you are triggering from multiple tables on Save or something like that) to solve this? So for each (for example) Save event, you would have a script like yourQuery.trigger({additionalScope: {tableData: tableX.data}}) (and yourQuery would need to be updated to let formData = tableData).