Hi everyone!
I have daily reports (stored in a table “Daily reports”, DR), that include daily progress on some metrics. Each metric is an instance from a table “Metrics” (M), and daily progress on metrics is stored in “Progress updates” (PU) table. PU table has columns: “metric” (relation to M), “measurement A”, “measurement B”, etc. It allows me to gather historical data on each metric from different users.
Like this:
Report
- date
- Reporter
- Report on metrics (multi select relation with PU)
** Update on metric A (relation to M) | measurement A | Measurement B
** Update on metric B (relation to M) | measurement A | Measurement B
I would like to add a button to the DR table that adds a metric C (a row in M) and a new progress update (a row in PU), referencing metric C, and also add it to the current daily report.
From the user point of view it will add a new row in their daily report they are editing:
** Update on metric C (relation to M) | measurement A | Measurement B
I tried RunActions like this:
Action 1: create a row in M
Action 2: create a row in PU and fill the “metric” column with the most recent entry from the M table
But it didn’t work. It appears that action 1 and action 2 are executed simultaneously.
Is it possible to somehow reference the output of Action 1 in Action 2 while using RunActions function? Or is there a better way for achieving the same result?